blob: 314e5d71e41333c77f78aa88d8d275e384add4f8 [file] [log] [blame]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -06003# Generated by GNU Autoconf 2.59 for libpng 1.2.9beta10.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004#
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06005# Report bugs to <png-mng-implement@lists.sourceforge.net>.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006#
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007# Copyright (C) 2003 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
Glenn Randers-Pehrson5b5dcf82004-07-17 22:45:44 -050013
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060024DUALCASE=1; export DUALCASE # for MKS sh
Glenn Randers-Pehrson5b5dcf82004-07-17 22:45:44 -050025
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060026# Support unset when possible.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060028 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600223 test -d ./-p && rmdir ./-p
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600231
232# Sed expression to map a string onto a valid variable name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600276$*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600311 for dir in $PATH /usr/ucb; do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600312 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600321 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='libpng'
425PACKAGE_TARNAME='libpng'
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -0600426PACKAGE_VERSION='1.2.9beta10'
427PACKAGE_STRING='libpng 1.2.9beta10'
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -0600428PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600429
430ac_unique_file="pngget.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -0600468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP CPP SED ac_ct_SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS POW_LIB HAVE_LD_VERSION_SCRIPT_TRUE HAVE_LD_VERSION_SCRIPT_FALSE PNGLIB_VERSION PNGLIB_MAJOR PNGLIB_MINOR pkgconfigdir binconfigs compatlib LTLIBOBJS'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600827 localstatedir libdir includedir oldincludedir infodir mandir
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -0600878 if test ! -r "$srcdir/$ac_unique_file"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -0600884if test ! -r "$srcdir/$ac_unique_file"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -0600893(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -0600957\`configure' configures libpng 1.2.9beta10 to adapt to many kinds of systems.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600982 [$ac_default_prefix]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600984 [PREFIX]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001015System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022 case $ac_init_help in
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -06001023 short | recursive ) echo "Configuration of libpng 1.2.9beta10:";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001024 esac
1025 cat <<\_ACEOF
1026
1027Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
1032 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001040 --disable-libtool-lock avoid locking (might break parallel builds)
1041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001050 --with-pkgconfigdir Use the specified pkgconfig dir (default is
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001051 libdir/pkgconfig)
1052 --with-binconfigs Generate shell libpng-config scripts as well as
1053 pkg-config data [default=yes]
1054 --with-libpng-compat Generate the obsolete libpng.so library
1055 [default=yes]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001056
1057Some influential environment variables:
1058 CC C compiler command
1059 CFLAGS C compiler flags
1060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061 nonstandard directory <lib dir>
1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063 headers in a nonstandard directory <include dir>
1064 CPP C preprocessor
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001065 CXX C++ compiler command
1066 CXXFLAGS C++ compiler flags
1067 CXXCPP C++ preprocessor
1068 F77 Fortran 77 compiler command
1069 FFLAGS Fortran 77 compiler flags
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001070
1071Use these variables to override the choices made by `configure' or to help
1072it to find libraries and programs with nonstandard names/locations.
1073
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06001074Report bugs to <png-mng-implement@lists.sourceforge.net>.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001075_ACEOF
1076fi
1077
1078if test "$ac_init_help" = "recursive"; then
1079 # If there are subdirs, report their specific --help.
1080 ac_popdir=`pwd`
1081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082 test -d $ac_dir || continue
1083 ac_builddir=.
1084
1085if test "$ac_dir" != .; then
1086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087 # A "../" for each directory in $ac_dir_suffix.
1088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089else
1090 ac_dir_suffix= ac_top_builddir=
1091fi
1092
1093case $srcdir in
1094 .) # No --srcdir option. We are building in place.
1095 ac_srcdir=.
1096 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=.
1098 else
1099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100 fi ;;
1101 [\\/]* | ?:[\\/]* ) # Absolute path.
1102 ac_srcdir=$srcdir$ac_dir_suffix;
1103 ac_top_srcdir=$srcdir ;;
1104 *) # Relative path.
1105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001108
1109# Do not use `cd foo && pwd` to compute absolute paths, because
1110# the directories may not exist.
1111case `pwd` in
1112.) ac_abs_builddir="$ac_dir";;
1113*)
1114 case "$ac_dir" in
1115 .) ac_abs_builddir=`pwd`;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 esac;;
1119esac
1120case $ac_abs_builddir in
1121.) ac_abs_top_builddir=${ac_top_builddir}.;;
1122*)
1123 case ${ac_top_builddir}. in
1124 .) ac_abs_top_builddir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_srcdir=$ac_srcdir;;
1131*)
1132 case $ac_srcdir in
1133 .) ac_abs_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_top_srcdir=$ac_top_srcdir;;
1140*)
1141 case $ac_top_srcdir in
1142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145 esac;;
1146esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001147
1148 cd $ac_dir
1149 # Check for guested configure; otherwise get Cygnus style configure.
1150 if test -f $ac_srcdir/configure.gnu; then
1151 echo
1152 $SHELL $ac_srcdir/configure.gnu --help=recursive
1153 elif test -f $ac_srcdir/configure; then
1154 echo
1155 $SHELL $ac_srcdir/configure --help=recursive
1156 elif test -f $ac_srcdir/configure.ac ||
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001157 test -f $ac_srcdir/configure.in; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001158 echo
1159 $ac_configure --help
1160 else
1161 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162 fi
1163 cd $ac_popdir
1164 done
1165fi
1166
1167test -n "$ac_init_help" && exit 0
1168if $ac_init_version; then
1169 cat <<\_ACEOF
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -06001170libpng configure 1.2.9beta10
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001171generated by GNU Autoconf 2.59
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001172
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001173Copyright (C) 2003 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001174This configure script is free software; the Free Software Foundation
1175gives unlimited permission to copy, distribute and modify it.
1176_ACEOF
1177 exit 0
1178fi
1179exec 5>config.log
1180cat >&5 <<_ACEOF
1181This file contains any messages produced by compilers while
1182running configure, to aid debugging if configure makes a mistake.
1183
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -06001184It was created by libpng $as_me 1.2.9beta10, which was
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001185generated by GNU Autoconf 2.59. Invocation command line was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001186
1187 $ $0 $@
1188
1189_ACEOF
1190{
1191cat <<_ASUNAME
1192## --------- ##
1193## Platform. ##
1194## --------- ##
1195
1196hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1197uname -m = `(uname -m) 2>/dev/null || echo unknown`
1198uname -r = `(uname -r) 2>/dev/null || echo unknown`
1199uname -s = `(uname -s) 2>/dev/null || echo unknown`
1200uname -v = `(uname -v) 2>/dev/null || echo unknown`
1201
1202/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1203/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1204
1205/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1206/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1207/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1208hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1209/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1210/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1211/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1212
1213_ASUNAME
1214
1215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216for as_dir in $PATH
1217do
1218 IFS=$as_save_IFS
1219 test -z "$as_dir" && as_dir=.
1220 echo "PATH: $as_dir"
1221done
1222
1223} >&5
1224
1225cat >&5 <<_ACEOF
1226
1227
1228## ----------- ##
1229## Core tests. ##
1230## ----------- ##
1231
1232_ACEOF
1233
1234
1235# Keep a trace of the command line.
1236# Strip out --no-create and --no-recursion so they do not pile up.
1237# Strip out --silent because we don't want to record it for future runs.
1238# Also quote any args containing shell meta-characters.
1239# Make two passes to allow for proper duplicate-argument suppression.
1240ac_configure_args=
1241ac_configure_args0=
1242ac_configure_args1=
1243ac_sep=
1244ac_must_keep_next=false
1245for ac_pass in 1 2
1246do
1247 for ac_arg
1248 do
1249 case $ac_arg in
1250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252 | -silent | --silent | --silen | --sile | --sil)
1253 continue ;;
1254 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 esac
1257 case $ac_pass in
1258 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1259 2)
1260 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1261 if test $ac_must_keep_next = true; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001262 ac_must_keep_next=false # Got value, back to normal.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001263 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001264 case $ac_arg in
1265 *=* | --config-cache | -C | -disable-* | --disable-* \
1266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1268 | -with-* | --with-* | -without-* | --without-* | --x)
1269 case "$ac_configure_args0 " in
1270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 esac
1272 ;;
1273 -* ) ac_must_keep_next=true ;;
1274 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001275 fi
1276 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1277 # Get rid of the leading space.
1278 ac_sep=" "
1279 ;;
1280 esac
1281 done
1282done
1283$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1284$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1285
1286# When interrupted or exit'd, cleanup temporary files, and complete
1287# config.log. We remove comments because anyway the quotes in there
1288# would cause problems or look ugly.
1289# WARNING: Be sure not to use single quotes in there, as some shells,
1290# such as our DU 5.0 friend, will then `close' the trap.
1291trap 'exit_status=$?
1292 # Save into config.log some information that might help in debugging.
1293 {
1294 echo
1295
1296 cat <<\_ASBOX
1297## ---------------- ##
1298## Cache variables. ##
1299## ---------------- ##
1300_ASBOX
1301 echo
1302 # The following way of writing the cache mishandles newlines in values,
1303{
1304 (set) 2>&1 |
1305 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 *ac_space=\ *)
1307 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001308 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001310 ;;
1311 *)
1312 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001313 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001314 ;;
1315 esac;
1316}
1317 echo
1318
1319 cat <<\_ASBOX
1320## ----------------- ##
1321## Output variables. ##
1322## ----------------- ##
1323_ASBOX
1324 echo
1325 for ac_var in $ac_subst_vars
1326 do
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1329 done | sort
1330 echo
1331
1332 if test -n "$ac_subst_files"; then
1333 cat <<\_ASBOX
1334## ------------- ##
1335## Output files. ##
1336## ------------- ##
1337_ASBOX
1338 echo
1339 for ac_var in $ac_subst_files
1340 do
1341 eval ac_val=$`echo $ac_var`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001342 echo "$ac_var='"'"'$ac_val'"'"'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001343 done | sort
1344 echo
1345 fi
1346
1347 if test -s confdefs.h; then
1348 cat <<\_ASBOX
1349## ----------- ##
1350## confdefs.h. ##
1351## ----------- ##
1352_ASBOX
1353 echo
1354 sed "/^$/d" confdefs.h | sort
1355 echo
1356 fi
1357 test "$ac_signal" != 0 &&
1358 echo "$as_me: caught signal $ac_signal"
1359 echo "$as_me: exit $exit_status"
1360 } >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001361 rm -f core *.core &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001362 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 exit $exit_status
1364 ' 0
1365for ac_signal in 1 2 13 15; do
1366 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367done
1368ac_signal=0
1369
1370# confdefs.h avoids OS command line length limits that DEFS can exceed.
1371rm -rf conftest* confdefs.h
1372# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373echo >confdefs.h
1374
1375# Predefined preprocessor variables.
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_NAME "$PACKAGE_NAME"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_VERSION "$PACKAGE_VERSION"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_STRING "$PACKAGE_STRING"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399_ACEOF
1400
1401
1402# Let the site file select an alternate cache file if it wants to.
1403# Prefer explicitly selected file to automatically selected ones.
1404if test -z "$CONFIG_SITE"; then
1405 if test "x$prefix" != xNONE; then
1406 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1407 else
1408 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 fi
1410fi
1411for ac_site_file in $CONFIG_SITE; do
1412 if test -r "$ac_site_file"; then
1413 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1414echo "$as_me: loading site script $ac_site_file" >&6;}
1415 sed 's/^/| /' "$ac_site_file" >&5
1416 . "$ac_site_file"
1417 fi
1418done
1419
1420if test -r "$cache_file"; then
1421 # Some versions of bash will fail to source /dev/null (special
1422 # files actually), so we avoid doing that.
1423 if test -f "$cache_file"; then
1424 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1425echo "$as_me: loading cache $cache_file" >&6;}
1426 case $cache_file in
1427 [\\/]* | ?:[\\/]* ) . $cache_file;;
1428 *) . ./$cache_file;;
1429 esac
1430 fi
1431else
1432 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1433echo "$as_me: creating cache $cache_file" >&6;}
1434 >$cache_file
1435fi
1436
1437# Check that the precious variables saved in the cache have kept the same
1438# value.
1439ac_cache_corrupted=false
1440for ac_var in `(set) 2>&1 |
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001441 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001442 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1443 eval ac_new_set=\$ac_env_${ac_var}_set
1444 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1445 eval ac_new_val="\$ac_env_${ac_var}_value"
1446 case $ac_old_set,$ac_new_set in
1447 set,)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,set)
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1453echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1455 ,);;
1456 *)
1457 if test "x$ac_old_val" != "x$ac_new_val"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001458 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001459echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001460 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001461echo "$as_me: former value: $ac_old_val" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001462 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001463echo "$as_me: current value: $ac_new_val" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001464 ac_cache_corrupted=:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001465 fi;;
1466 esac
1467 # Pass precious variables to config.status.
1468 if test "$ac_new_set" = set; then
1469 case $ac_new_val in
1470 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1471 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1472 *) ac_arg=$ac_var=$ac_new_val ;;
1473 esac
1474 case " $ac_configure_args " in
1475 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1476 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477 esac
1478 fi
1479done
1480if $ac_cache_corrupted; then
1481 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1482echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1483 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1484echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1485 { (exit 1); exit 1; }; }
1486fi
1487
1488ac_ext=c
1489ac_cpp='$CPP $CPPFLAGS'
1490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1492ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001520am__api_version="1.9"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001521ac_aux_dir=
1522for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1523 if test -f $ac_dir/install-sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install-sh -c"
1526 break
1527 elif test -f $ac_dir/install.sh; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/install.sh -c"
1530 break
1531 elif test -f $ac_dir/shtool; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/shtool install -c"
1534 break
1535 fi
1536done
1537if test -z "$ac_aux_dir"; then
1538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1539echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1540 { (exit 1); exit 1; }; }
1541fi
1542ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1543ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1544ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545
1546# Find a good install program. We prefer a C program (faster),
1547# so one script is as good as another. But avoid the broken or
1548# incompatible versions:
1549# SysV /etc/install, /usr/sbin/install
1550# SunOS /usr/etc/install
1551# IRIX /sbin/install
1552# AIX /bin/install
1553# AmigaOS /C/install, which installs bootblocks on floppy discs
1554# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1555# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1556# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001557# OS/2's system install, which has a completely different semantic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001558# ./install, which can be erroneously created by make from ./install.sh.
1559echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1560echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1561if test -z "$INSTALL"; then
1562if test "${ac_cv_path_install+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566for as_dir in $PATH
1567do
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 # Account for people who put trailing slashes in PATH elements.
1571case $as_dir/ in
1572 ./ | .// | /cC/* | \
1573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001575 /usr/ucb/* ) ;;
1576 *)
1577 # OSF1 and SCO ODT 3.0 have their own names for install.
1578 # Don't use installbsd from OSF since it installs stuff as root
1579 # by default.
1580 for ac_prog in ginstall scoinst install; do
1581 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1583 if test $ac_prog = install &&
1584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585 # AIX install. It has an incompatible calling convention.
1586 :
1587 elif test $ac_prog = install &&
1588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1589 # program-specific install script used by HP pwplus--don't use.
1590 :
1591 else
1592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1593 break 3
1594 fi
1595 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001596 done
1597 done
1598 ;;
1599esac
1600done
1601
1602
1603fi
1604 if test "${ac_cv_path_install+set}" = set; then
1605 INSTALL=$ac_cv_path_install
1606 else
1607 # As a last resort, use the slow shell script. We don't cache a
1608 # path for INSTALL within a source directory, because that will
1609 # break other packages using the cache if that directory is
1610 # removed, or if the path is relative.
1611 INSTALL=$ac_install_sh
1612 fi
1613fi
1614echo "$as_me:$LINENO: result: $INSTALL" >&5
1615echo "${ECHO_T}$INSTALL" >&6
1616
1617# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1618# It thinks the first close brace ends the variable substitution.
1619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620
1621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622
1623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624
1625echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1626echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627# Just in case
1628sleep 1
1629echo timestamp > conftest.file
1630# Do `set' in a subshell so we don't clobber the current shell's
1631# arguments. Must try -L first in case configure is actually a
1632# symlink; some systems play weird games with the mod time of symlinks
1633# (eg FreeBSD returns the mod time of the symlink's containing
1634# directory).
1635if (
1636 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1637 if test "$*" = "X"; then
1638 # -L didn't work.
1639 set X `ls -t $srcdir/configure conftest.file`
1640 fi
1641 rm -f conftest.file
1642 if test "$*" != "X $srcdir/configure conftest.file" \
1643 && test "$*" != "X conftest.file $srcdir/configure"; then
1644
1645 # If neither matched, then we have a broken ls. This can happen
1646 # if, for instance, CONFIG_SHELL is bash and it inherits a
1647 # broken ls alias from the environment. This has actually
1648 # happened. Such a system could not be considered "sane".
1649 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1650alias in your environment" >&5
1651echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1652alias in your environment" >&2;}
1653 { (exit 1); exit 1; }; }
1654 fi
1655
1656 test "$2" = conftest.file
1657 )
1658then
1659 # Ok.
1660 :
1661else
1662 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1663Check your system clock" >&5
1664echo "$as_me: error: newly created file is older than distributed files!
1665Check your system clock" >&2;}
1666 { (exit 1); exit 1; }; }
1667fi
1668echo "$as_me:$LINENO: result: yes" >&5
1669echo "${ECHO_T}yes" >&6
1670test "$program_prefix" != NONE &&
1671 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1672# Use a double $ so make ignores it.
1673test "$program_suffix" != NONE &&
1674 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1675# Double any \ or $. echo might interpret backslashes.
1676# By default was `s,x,x', remove it if useless.
1677cat <<\_ACEOF >conftest.sed
1678s/[\\$]/&&/g;s/;s,x,x,$//
1679_ACEOF
1680program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681rm conftest.sed
1682
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001683# expand $ac_aux_dir to an absolute path
1684am_aux_dir=`cd $ac_aux_dir && pwd`
1685
1686test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1687# Use eval to expand $SHELL
1688if eval "$MISSING --run true"; then
1689 am_missing_run="$MISSING --run "
1690else
1691 am_missing_run=
1692 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1693echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694fi
1695
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001696if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1697 # We used to keeping the `.' as first argument, in order to
1698 # allow $(mkdir_p) to be used without argument. As in
1699 # $(mkdir_p) $(somedir)
1700 # where $(somedir) is conditionally defined. However this is wrong
1701 # for two reasons:
1702 # 1. if the package is installed by a user who cannot write `.'
1703 # make install will fail,
1704 # 2. the above comment should most certainly read
1705 # $(mkdir_p) $(DESTDIR)$(somedir)
1706 # so it does not work when $(somedir) is undefined and
1707 # $(DESTDIR) is not.
1708 # To support the latter case, we have to write
1709 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1710 # so the `.' trick is pointless.
1711 mkdir_p='mkdir -p --'
1712else
1713 # On NextStep and OpenStep, the `mkdir' command does not
1714 # recognize any option. It will interpret all options as
1715 # directories to create, and then abort because `.' already
1716 # exists.
1717 for d in ./-p ./--version;
1718 do
1719 test -d $d && rmdir $d
1720 done
1721 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1722 if test -f "$ac_aux_dir/mkinstalldirs"; then
1723 mkdir_p='$(mkinstalldirs)'
1724 else
1725 mkdir_p='$(install_sh) -d'
1726 fi
1727fi
1728
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001729for ac_prog in gawk mawk nawk awk
1730do
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732set dummy $ac_prog; ac_word=$2
1733echo "$as_me:$LINENO: checking for $ac_word" >&5
1734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735if test "${ac_cv_prog_AWK+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738 if test -n "$AWK"; then
1739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1740else
1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742for as_dir in $PATH
1743do
1744 IFS=$as_save_IFS
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_AWK="$ac_prog"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 break 2
1751 fi
1752done
1753done
1754
1755fi
1756fi
1757AWK=$ac_cv_prog_AWK
1758if test -n "$AWK"; then
1759 echo "$as_me:$LINENO: result: $AWK" >&5
1760echo "${ECHO_T}$AWK" >&6
1761else
1762 echo "$as_me:$LINENO: result: no" >&5
1763echo "${ECHO_T}no" >&6
1764fi
1765
1766 test -n "$AWK" && break
1767done
1768
1769echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1770echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001771set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001772if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 cat >conftest.make <<\_ACEOF
1776all:
1777 @echo 'ac_maketemp="$(MAKE)"'
1778_ACEOF
1779# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1780eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1781if test -n "$ac_maketemp"; then
1782 eval ac_cv_prog_make_${ac_make}_set=yes
1783else
1784 eval ac_cv_prog_make_${ac_make}_set=no
1785fi
1786rm -f conftest.make
1787fi
1788if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790echo "${ECHO_T}yes" >&6
1791 SET_MAKE=
1792else
1793 echo "$as_me:$LINENO: result: no" >&5
1794echo "${ECHO_T}no" >&6
1795 SET_MAKE="MAKE=${MAKE-make}"
1796fi
1797
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001798rm -rf .tst 2>/dev/null
1799mkdir .tst 2>/dev/null
1800if test -d .tst; then
1801 am__leading_dot=.
1802else
1803 am__leading_dot=_
1804fi
1805rmdir .tst 2>/dev/null
1806
1807# test to see if srcdir already configured
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001808if test "`cd $srcdir && pwd`" != "`pwd`" &&
1809 test -f $srcdir/config.status; then
1810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1811echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1812 { (exit 1); exit 1; }; }
1813fi
1814
1815# test whether we have cygpath
1816if test -z "$CYGPATH_W"; then
1817 if (cygpath --version) >/dev/null 2>/dev/null; then
1818 CYGPATH_W='cygpath -w'
1819 else
1820 CYGPATH_W=echo
1821 fi
1822fi
1823
1824
1825# Define the identity of the package.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001826 PACKAGE='libpng'
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -06001827 VERSION='1.2.9beta10'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001828
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE "$PACKAGE"
1832_ACEOF
1833
1834
1835cat >>confdefs.h <<_ACEOF
1836#define VERSION "$VERSION"
1837_ACEOF
1838
1839# Some tools Automake needs.
1840
1841ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842
1843
1844AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845
1846
1847AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848
1849
1850AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851
1852
1853MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1854
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001855install_sh=${install_sh-"$am_aux_dir/install-sh"}
1856
1857# Installed binaries are usually stripped using `strip' when the user
1858# run `make install-strip'. However `strip' might not be the right
1859# tool to use in cross-compilation environments, therefore Automake
1860# will honor the `STRIP' environment variable to overrule this program.
1861if test "$cross_compiling" != no; then
1862 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1864set dummy ${ac_tool_prefix}strip; ac_word=$2
1865echo "$as_me:$LINENO: checking for $ac_word" >&5
1866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867if test "${ac_cv_prog_STRIP+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869else
1870 if test -n "$STRIP"; then
1871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1872else
1873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874for as_dir in $PATH
1875do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1883 fi
1884done
1885done
1886
1887fi
1888fi
1889STRIP=$ac_cv_prog_STRIP
1890if test -n "$STRIP"; then
1891 echo "$as_me:$LINENO: result: $STRIP" >&5
1892echo "${ECHO_T}$STRIP" >&6
1893else
1894 echo "$as_me:$LINENO: result: no" >&5
1895echo "${ECHO_T}no" >&6
1896fi
1897
1898fi
1899if test -z "$ac_cv_prog_STRIP"; then
1900 ac_ct_STRIP=$STRIP
1901 # Extract the first word of "strip", so it can be a program name with args.
1902set dummy strip; ac_word=$2
1903echo "$as_me:$LINENO: checking for $ac_word" >&5
1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908 if test -n "$ac_ct_STRIP"; then
1909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1910else
1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912for as_dir in $PATH
1913do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_ac_ct_STRIP="strip"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922done
1923done
1924
1925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1926fi
1927fi
1928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1929if test -n "$ac_ct_STRIP"; then
1930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1931echo "${ECHO_T}$ac_ct_STRIP" >&6
1932else
1933 echo "$as_me:$LINENO: result: no" >&5
1934echo "${ECHO_T}no" >&6
1935fi
1936
1937 STRIP=$ac_ct_STRIP
1938else
1939 STRIP="$ac_cv_prog_STRIP"
1940fi
1941
1942fi
1943INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1944
1945# We need awk for the "check" target. The system "awk" is bad on
1946# some platforms.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001947# Always define AMTAR for backward compatibility.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001948
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001949AMTAR=${AMTAR-"${am_missing_run}tar"}
1950
1951am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1952
1953
1954
1955
1956
1957echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1958echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1959 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1960if test "${enable_maintainer_mode+set}" = set; then
1961 enableval="$enable_maintainer_mode"
1962 USE_MAINTAINER_MODE=$enableval
1963else
1964 USE_MAINTAINER_MODE=no
1965fi;
1966 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1967echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1968
1969
1970if test $USE_MAINTAINER_MODE = yes; then
1971 MAINTAINER_MODE_TRUE=
1972 MAINTAINER_MODE_FALSE='#'
1973else
1974 MAINTAINER_MODE_TRUE='#'
1975 MAINTAINER_MODE_FALSE=
1976fi
1977
1978 MAINT=$MAINTAINER_MODE_TRUE
1979
1980
1981
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -06001982PNGLIB_VERSION=1.2.9beta10
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001983PNGLIB_MAJOR=12
Glenn Randers-Pehrsonb7f95932006-03-05 20:15:20 -06001984PNGLIB_MINOR=9
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001985
1986
1987
1988 ac_config_headers="$ac_config_headers config.h"
1989
1990
1991# Checks for programs.
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997if test -n "$ac_tool_prefix"; then
1998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1999set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2018 fi
2019done
2020done
2021
2022fi
2023fi
2024CC=$ac_cv_prog_CC
2025if test -n "$CC"; then
2026 echo "$as_me:$LINENO: result: $CC" >&5
2027echo "${ECHO_T}$CC" >&6
2028else
2029 echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6
2031fi
2032
2033fi
2034if test -z "$ac_cv_prog_CC"; then
2035 ac_ct_CC=$CC
2036 # Extract the first word of "gcc", so it can be a program name with args.
2037set dummy gcc; ac_word=$2
2038echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045else
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057done
2058done
2059
2060fi
2061fi
2062ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065echo "${ECHO_T}$ac_ct_CC" >&6
2066else
2067 echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6
2069fi
2070
2071 CC=$ac_ct_CC
2072else
2073 CC="$ac_cv_prog_CC"
2074fi
2075
2076if test -z "$CC"; then
2077 if test -n "$ac_tool_prefix"; then
2078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2079set dummy ${ac_tool_prefix}cc; ac_word=$2
2080echo "$as_me:$LINENO: checking for $ac_word" >&5
2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2087else
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_CC="${ac_tool_prefix}cc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 break 2
2098 fi
2099done
2100done
2101
2102fi
2103fi
2104CC=$ac_cv_prog_CC
2105if test -n "$CC"; then
2106 echo "$as_me:$LINENO: result: $CC" >&5
2107echo "${ECHO_T}$CC" >&6
2108else
2109 echo "$as_me:$LINENO: result: no" >&5
2110echo "${ECHO_T}no" >&6
2111fi
2112
2113fi
2114if test -z "$ac_cv_prog_CC"; then
2115 ac_ct_CC=$CC
2116 # Extract the first word of "cc", so it can be a program name with args.
2117set dummy cc; ac_word=$2
2118echo "$as_me:$LINENO: checking for $ac_word" >&5
2119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125else
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_ac_ct_CC="cc"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 break 2
2136 fi
2137done
2138done
2139
2140fi
2141fi
2142ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143if test -n "$ac_ct_CC"; then
2144 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145echo "${ECHO_T}$ac_ct_CC" >&6
2146else
2147 echo "$as_me:$LINENO: result: no" >&5
2148echo "${ECHO_T}no" >&6
2149fi
2150
2151 CC=$ac_ct_CC
2152else
2153 CC="$ac_cv_prog_CC"
2154fi
2155
2156fi
2157if test -z "$CC"; then
2158 # Extract the first word of "cc", so it can be a program name with args.
2159set dummy cc; ac_word=$2
2160echo "$as_me:$LINENO: checking for $ac_word" >&5
2161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162if test "${ac_cv_prog_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165 if test -n "$CC"; then
2166 ac_cv_prog_CC="$CC" # Let the user override the test.
2167else
2168 ac_prog_rejected=no
2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170for as_dir in $PATH
2171do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2177 ac_prog_rejected=yes
2178 continue
2179 fi
2180 ac_cv_prog_CC="cc"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2183 fi
2184done
2185done
2186
2187if test $ac_prog_rejected = yes; then
2188 # We found a bogon in the path, so make sure we never use it.
2189 set dummy $ac_cv_prog_CC
2190 shift
2191 if test $# != 0; then
2192 # We chose a different compiler from the bogus one.
2193 # However, it has the same basename, so the bogon will be chosen
2194 # first if we set CC to just the basename; use the full file name.
2195 shift
2196 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2197 fi
2198fi
2199fi
2200fi
2201CC=$ac_cv_prog_CC
2202if test -n "$CC"; then
2203 echo "$as_me:$LINENO: result: $CC" >&5
2204echo "${ECHO_T}$CC" >&6
2205else
2206 echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6
2208fi
2209
2210fi
2211if test -z "$CC"; then
2212 if test -n "$ac_tool_prefix"; then
2213 for ac_prog in cl
2214 do
2215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2217echo "$as_me:$LINENO: checking for $ac_word" >&5
2218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219if test "${ac_cv_prog_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2224else
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2235 fi
2236done
2237done
2238
2239fi
2240fi
2241CC=$ac_cv_prog_CC
2242if test -n "$CC"; then
2243 echo "$as_me:$LINENO: result: $CC" >&5
2244echo "${ECHO_T}$CC" >&6
2245else
2246 echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6
2248fi
2249
2250 test -n "$CC" && break
2251 done
2252fi
2253if test -z "$CC"; then
2254 ac_ct_CC=$CC
2255 for ac_prog in cl
2256do
2257 # Extract the first word of "$ac_prog", so it can be a program name with args.
2258set dummy $ac_prog; ac_word=$2
2259echo "$as_me:$LINENO: checking for $ac_word" >&5
2260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
2264 if test -n "$ac_ct_CC"; then
2265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266else
2267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268for as_dir in $PATH
2269do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 ac_cv_prog_ac_ct_CC="$ac_prog"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 break 2
2277 fi
2278done
2279done
2280
2281fi
2282fi
2283ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284if test -n "$ac_ct_CC"; then
2285 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2286echo "${ECHO_T}$ac_ct_CC" >&6
2287else
2288 echo "$as_me:$LINENO: result: no" >&5
2289echo "${ECHO_T}no" >&6
2290fi
2291
2292 test -n "$ac_ct_CC" && break
2293done
2294
2295 CC=$ac_ct_CC
2296fi
2297
2298fi
2299
2300
2301test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2302See \`config.log' for more details." >&5
2303echo "$as_me: error: no acceptable C compiler found in \$PATH
2304See \`config.log' for more details." >&2;}
2305 { (exit 1); exit 1; }; }
2306
2307# Provide some information about the compiler.
2308echo "$as_me:$LINENO:" \
2309 "checking for C compiler version" >&5
2310ac_compiler=`set X $ac_compile; echo $2`
2311{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2312 (eval $ac_compiler --version </dev/null >&5) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }
2316{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2317 (eval $ac_compiler -v </dev/null >&5) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }
2321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2322 (eval $ac_compiler -V </dev/null >&5) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326
2327cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002328/* confdefs.h. */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h. */
2333
2334int
2335main ()
2336{
2337
2338 ;
2339 return 0;
2340}
2341_ACEOF
2342ac_clean_files_save=$ac_clean_files
2343ac_clean_files="$ac_clean_files a.out a.exe b.out"
2344# Try to create an executable without -o first, disregard a.out.
2345# It will help us diagnose broken compilers, and finding out an intuition
2346# of exeext.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002347echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2348echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002349ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2350if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2351 (eval $ac_link_default) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; then
2355 # Find the output, starting from the most likely. This scheme is
2356# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2357# resort.
2358
2359# Be careful to initialize this variable, since it used to be cached.
2360# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2361ac_cv_exeext=
2362# b.out is created by i960 compilers.
2363for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2364do
2365 test -f "$ac_file" || continue
2366 case $ac_file in
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002368 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002369 conftest.$ac_ext )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002370 # This is the source file.
2371 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002372 [ab].out )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002373 # We found the default executable, but exeext='' is most
2374 # certainly right.
2375 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002376 *.* )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002377 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 # FIXME: I believe we export ac_cv_exeext for Libtool,
2379 # but it would be cool to find out if it's true. Does anybody
2380 # maintain Libtool? --akim.
2381 export ac_cv_exeext
2382 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002383 * )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002384 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002385 esac
2386done
2387else
2388 echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2392See \`config.log' for more details." >&5
2393echo "$as_me: error: C compiler cannot create executables
2394See \`config.log' for more details." >&2;}
2395 { (exit 77); exit 77; }; }
2396fi
2397
2398ac_exeext=$ac_cv_exeext
2399echo "$as_me:$LINENO: result: $ac_file" >&5
2400echo "${ECHO_T}$ac_file" >&6
2401
2402# Check the compiler produces executables we can run. If not, either
2403# the compiler is broken, or we cross compile.
2404echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2405echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2406# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2407# If not cross compiling, check that we can run a simple program.
2408if test "$cross_compiling" != yes; then
2409 if { ac_try='./$ac_file'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 cross_compiling=no
2416 else
2417 if test "$cross_compiling" = maybe; then
2418 cross_compiling=yes
2419 else
2420 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421If you meant to cross compile, use \`--host'.
2422See \`config.log' for more details." >&5
2423echo "$as_me: error: cannot run C compiled programs.
2424If you meant to cross compile, use \`--host'.
2425See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2427 fi
2428 fi
2429fi
2430echo "$as_me:$LINENO: result: yes" >&5
2431echo "${ECHO_T}yes" >&6
2432
2433rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434ac_clean_files=$ac_clean_files_save
2435# Check the compiler produces executables we can run. If not, either
2436# the compiler is broken, or we cross compile.
2437echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2439echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440echo "${ECHO_T}$cross_compiling" >&6
2441
2442echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 (eval $ac_link) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; then
2449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2450# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2451# work properly (i.e., refer to `conftest.exe'), while it won't with
2452# `rm'.
2453for ac_file in conftest.exe conftest conftest.*; do
2454 test -f "$ac_file" || continue
2455 case $ac_file in
2456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002458 export ac_cv_exeext
2459 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002460 * ) break;;
2461 esac
2462done
2463else
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2465See \`config.log' for more details." >&5
2466echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2467See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2469fi
2470
2471rm -f conftest$ac_cv_exeext
2472echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2473echo "${ECHO_T}$ac_cv_exeext" >&6
2474
2475rm -f conftest.$ac_ext
2476EXEEXT=$ac_cv_exeext
2477ac_exeext=$EXEEXT
2478echo "$as_me:$LINENO: checking for suffix of object files" >&5
2479echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2480if test "${ac_cv_objext+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482else
2483 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002484/* confdefs.h. */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h. */
2489
2490int
2491main ()
2492{
2493
2494 ;
2495 return 0;
2496}
2497_ACEOF
2498rm -f conftest.o conftest.obj
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; then
2504 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2505 case $ac_file in
2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2508 break;;
2509 esac
2510done
2511else
2512 echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2516See \`config.log' for more details." >&5
2517echo "$as_me: error: cannot compute suffix of object files: cannot compile
2518See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2520fi
2521
2522rm -f conftest.$ac_cv_objext conftest.$ac_ext
2523fi
2524echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2525echo "${ECHO_T}$ac_cv_objext" >&6
2526OBJEXT=$ac_cv_objext
2527ac_objext=$OBJEXT
2528echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2529echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2530if test "${ac_cv_c_compiler_gnu+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002534/* confdefs.h. */
2535_ACEOF
2536cat confdefs.h >>conftest.$ac_ext
2537cat >>conftest.$ac_ext <<_ACEOF
2538/* end confdefs.h. */
2539
2540int
2541main ()
2542{
2543#ifndef __GNUC__
2544 choke me
2545#endif
2546
2547 ;
2548 return 0;
2549}
2550_ACEOF
2551rm -f conftest.$ac_objext
2552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002553 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002554 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_compiler_gnu=yes
2574else
2575 echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578ac_compiler_gnu=no
2579fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002581ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582
2583fi
2584echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2586GCC=`test $ac_compiler_gnu = yes && echo yes`
2587ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS
2589CFLAGS="-g"
2590echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2592if test "${ac_cv_prog_cc_g+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
2601
2602int
2603main ()
2604{
2605
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002612 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002613 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_prog_cc_g=yes
2633else
2634 echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637ac_cv_prog_cc_g=no
2638fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002640fi
2641echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2642echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2643if test "$ac_test_CFLAGS" = set; then
2644 CFLAGS=$ac_save_CFLAGS
2645elif test $ac_cv_prog_cc_g = yes; then
2646 if test "$GCC" = yes; then
2647 CFLAGS="-g -O2"
2648 else
2649 CFLAGS="-g"
2650 fi
2651else
2652 if test "$GCC" = yes; then
2653 CFLAGS="-O2"
2654 else
2655 CFLAGS=
2656 fi
2657fi
2658echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2659echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2660if test "${ac_cv_prog_cc_stdc+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
2663 ac_cv_prog_cc_stdc=no
2664ac_save_CC=$CC
2665cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002666/* confdefs.h. */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h. */
2671#include <stdarg.h>
2672#include <stdio.h>
2673#include <sys/types.h>
2674#include <sys/stat.h>
2675/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2676struct buf { int x; };
2677FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678static char *e (p, i)
2679 char **p;
2680 int i;
2681{
2682 return p[i];
2683}
2684static char *f (char * (*g) (char **, int), char **p, ...)
2685{
2686 char *s;
2687 va_list v;
2688 va_start (v,p);
2689 s = g (p, va_arg (v,int));
2690 va_end (v);
2691 return s;
2692}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002693
2694/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2695 function prototypes and stuff, but not '\xHH' hex character constants.
2696 These don't provoke an error unfortunately, instead are silently treated
2697 as 'x'. The following induces an error, until -std1 is added to get
2698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2699 array size at least. It's necessary to write '\x00'==0 to get something
2700 that's true only with -std1. */
2701int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2702
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002703int test (int i, double x);
2704struct s1 {int (*f) (int a);};
2705struct s2 {int (*f) (double a);};
2706int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2707int argc;
2708char **argv;
2709int
2710main ()
2711{
2712return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717# Don't try gcc -ansi; that turns off useful extensions and
2718# breaks some systems' header files.
2719# AIX -qlanglvl=ansi
2720# Ultrix and OSF/1 -std1
2721# HP-UX 10.20 and later -Ae
2722# HP-UX older versions -Aa -D_HPUX_SOURCE
2723# SVR4 -Xc -D__EXTENSIONS__
2724for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725do
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002729 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002730 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002736 { ac_try='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 ac_cv_prog_cc_stdc=$ac_arg
2750break
2751else
2752 echo "$as_me: failed program was:" >&5
2753sed 's/^/| /' conftest.$ac_ext >&5
2754
2755fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002756rm -f conftest.err conftest.$ac_objext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002757done
2758rm -f conftest.$ac_ext conftest.$ac_objext
2759CC=$ac_save_CC
2760
2761fi
2762
2763case "x$ac_cv_prog_cc_stdc" in
2764 x|xno)
2765 echo "$as_me:$LINENO: result: none needed" >&5
2766echo "${ECHO_T}none needed" >&6 ;;
2767 *)
2768 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2769echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2770 CC="$CC $ac_cv_prog_cc_stdc" ;;
2771esac
2772
2773# Some people use a C++ compiler to compile C. Since we use `exit',
2774# in C++ we need to declare it. In case someone uses the same compiler
2775# for both compiling C and C++ we need to have the C++ compiler decide
2776# the declaration of exit, since it's the most demanding environment.
2777cat >conftest.$ac_ext <<_ACEOF
2778#ifndef __cplusplus
2779 choke me
2780#endif
2781_ACEOF
2782rm -f conftest.$ac_objext
2783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002784 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002785 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002791 { ac_try='test -z "$ac_c_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 for ac_declaration in \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002805 '' \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002806 'extern "C" void std::exit (int) throw (); using std::exit;' \
2807 'extern "C" void std::exit (int); using std::exit;' \
2808 'extern "C" void exit (int) throw ();' \
2809 'extern "C" void exit (int);' \
2810 'void exit (int);'
2811do
2812 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002813/* confdefs.h. */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002818$ac_declaration
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002819#include <stdlib.h>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002820int
2821main ()
2822{
2823exit (42);
2824 ;
2825 return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext
2829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002830 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002831 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002837 { ac_try='test -z "$ac_c_werror_flag"
2838 || test ! -s conftest.err'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 :
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855continue
2856fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002858 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864$ac_declaration
2865int
2866main ()
2867{
2868exit (42);
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873rm -f conftest.$ac_objext
2874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002875 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002876 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002882 { ac_try='test -z "$ac_c_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2895 break
2896else
2897 echo "$as_me: failed program was:" >&5
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
2900fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002902done
2903rm -f conftest*
2904if test -n "$ac_declaration"; then
2905 echo '#ifdef __cplusplus' >>confdefs.h
2906 echo $ac_declaration >>confdefs.h
2907 echo '#endif' >>confdefs.h
2908fi
2909
2910else
2911 echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002916ac_ext=c
2917ac_cpp='$CPP $CPPFLAGS'
2918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002921DEPDIR="${am__leading_dot}deps"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002922
2923 ac_config_commands="$ac_config_commands depfiles"
2924
2925
2926am_make=${MAKE-make}
2927cat > confinc << 'END'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002928am__doit:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002929 @echo done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002930.PHONY: am__doit
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002931END
2932# If we don't find an include directive, just comment out the code.
2933echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2934echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2935am__include="#"
2936am__quote=
2937_am_result=none
2938# First try GNU make style include.
2939echo "include confinc" > confmf
2940# We grep out `Entering directory' and `Leaving directory'
2941# messages which can occur if `w' ends up in MAKEFLAGS.
2942# In particular we don't look at `^make:' because GNU make might
2943# be invoked under some other name (usually "gmake"), in which
2944# case it prints its new name instead of `make'.
2945if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2946 am__include=include
2947 am__quote=
2948 _am_result=GNU
2949fi
2950# Now try BSD make style include.
2951if test "$am__include" = "#"; then
2952 echo '.include "confinc"' > confmf
2953 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2954 am__include=.include
2955 am__quote="\""
2956 _am_result=BSD
2957 fi
2958fi
2959
2960
2961echo "$as_me:$LINENO: result: $_am_result" >&5
2962echo "${ECHO_T}$_am_result" >&6
2963rm -f confinc confmf
2964
2965# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2966if test "${enable_dependency_tracking+set}" = set; then
2967 enableval="$enable_dependency_tracking"
2968
2969fi;
2970if test "x$enable_dependency_tracking" != xno; then
2971 am_depcomp="$ac_aux_dir/depcomp"
2972 AMDEPBACKSLASH='\'
2973fi
2974
2975
2976if test "x$enable_dependency_tracking" != xno; then
2977 AMDEP_TRUE=
2978 AMDEP_FALSE='#'
2979else
2980 AMDEP_TRUE='#'
2981 AMDEP_FALSE=
2982fi
2983
2984
2985
2986
2987depcc="$CC" am_compiler_list=
2988
2989echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2990echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2991if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2995 # We make a subdir and do the tests there. Otherwise we can end up
2996 # making bogus files that we don't know about and never remove. For
2997 # instance it was reported that on HP-UX the gcc test will end up
2998 # making a dummy file named `D' -- because `-MD' means `put the output
2999 # in D'.
3000 mkdir conftest.dir
3001 # Copy depcomp to subdir because otherwise we won't find it if we're
3002 # using a relative directory.
3003 cp "$am_depcomp" conftest.dir
3004 cd conftest.dir
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003005 # We will build objects and dependencies in a subdirectory because
3006 # it helps to detect inapplicable dependency modes. For instance
3007 # both Tru64's cc and ICC support -MD to output dependencies as a
3008 # side effect of compilation, but ICC will put the dependencies in
3009 # the current directory while Tru64 will put them in the object
3010 # directory.
3011 mkdir sub
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003012
3013 am_cv_CC_dependencies_compiler_type=none
3014 if test "$am_compiler_list" = ""; then
3015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3016 fi
3017 for depmode in $am_compiler_list; do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003018 # Setup a source with many dependencies, because some compilers
3019 # like to wrap large dependency lists on column 80 (with \), and
3020 # we should not choose a depcomp mode which is confused by this.
3021 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003022 # We need to recreate these files for each test, as the compiler may
3023 # overwrite some of them when testing with obscure command lines.
3024 # This happens at least with the AIX C compiler.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003025 : > sub/conftest.c
3026 for i in 1 2 3 4 5 6; do
3027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3029 # Solaris 8's {/usr,}/bin/sh.
3030 touch sub/conftst$i.h
3031 done
3032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003033
3034 case $depmode in
3035 nosideeffect)
3036 # after this tag, mechanisms are not by side-effect, so they'll
3037 # only be used when explicitly requested
3038 if test "x$enable_dependency_tracking" = xyes; then
3039 continue
3040 else
3041 break
3042 fi
3043 ;;
3044 none) break ;;
3045 esac
3046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3047 # mode. It turns out that the SunPro C++ compiler does not properly
3048 # handle `-M -o', and we need to detect this.
3049 if depmode=$depmode \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003050 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3052 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3053 >/dev/null 2>conftest.err &&
3054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3055 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003057 # icc doesn't choke on unknown options, it will just issue warnings
3058 # or remarks (even with -Werror). So we grep stderr for any message
3059 # that says an option was ignored or not supported.
3060 # When given -MP, icc 7.0 and 7.1 complain thusly:
3061 # icc: Command line warning: ignoring option '-M'; no argument required
3062 # The diagnosis changed in icc 8.0:
3063 # icc: Command line remark: option '-MP' not supported
3064 if (grep 'ignoring option' conftest.err ||
3065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3066 am_cv_CC_dependencies_compiler_type=$depmode
3067 break
3068 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003069 fi
3070 done
3071
3072 cd ..
3073 rm -rf conftest.dir
3074else
3075 am_cv_CC_dependencies_compiler_type=none
3076fi
3077
3078fi
3079echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3080echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3081CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3082
3083
3084
3085if
3086 test "x$enable_dependency_tracking" != xno \
3087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3088 am__fastdepCC_TRUE=
3089 am__fastdepCC_FALSE='#'
3090else
3091 am__fastdepCC_TRUE='#'
3092 am__fastdepCC_FALSE=
3093fi
3094
3095
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003096echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3097echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3098if test "${lt_cv_path_SED+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100else
3101 # Loop through the user's path and test for sed and gsed.
3102# Then use that list of sed's as ones to test for truncation.
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for lt_ac_prog in sed gsed; do
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3111 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3112 fi
3113 done
3114 done
3115done
3116lt_ac_max=0
3117lt_ac_count=0
3118# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3119# along with /bin/sed that truncates output.
3120for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3121 test ! -f $lt_ac_sed && continue
3122 cat /dev/null > conftest.in
3123 lt_ac_count=0
3124 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3125 # Check for GNU sed and select it if it is found.
3126 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3127 lt_cv_path_SED=$lt_ac_sed
3128 break
3129 fi
3130 while true; do
3131 cat conftest.in conftest.in >conftest.tmp
3132 mv conftest.tmp conftest.in
3133 cp conftest.in conftest.nl
3134 echo >>conftest.nl
3135 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3136 cmp -s conftest.out conftest.nl || break
3137 # 10000 chars as input seems more than enough
3138 test $lt_ac_count -gt 10 && break
3139 lt_ac_count=`expr $lt_ac_count + 1`
3140 if test $lt_ac_count -gt $lt_ac_max; then
3141 lt_ac_max=$lt_ac_count
3142 lt_cv_path_SED=$lt_ac_sed
3143 fi
3144 done
3145done
3146
3147fi
3148
3149SED=$lt_cv_path_SED
3150echo "$as_me:$LINENO: result: $SED" >&5
3151echo "${ECHO_T}$SED" >&6
3152
3153# Make sure we can run config.sub.
3154$ac_config_sub sun4 >/dev/null 2>&1 ||
3155 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3156echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3157 { (exit 1); exit 1; }; }
3158
3159echo "$as_me:$LINENO: checking build system type" >&5
3160echo $ECHO_N "checking build system type... $ECHO_C" >&6
3161if test "${ac_cv_build+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164 ac_cv_build_alias=$build_alias
3165test -z "$ac_cv_build_alias" &&
3166 ac_cv_build_alias=`$ac_config_guess`
3167test -z "$ac_cv_build_alias" &&
3168 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3169echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3170 { (exit 1); exit 1; }; }
3171ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3172 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3173echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3174 { (exit 1); exit 1; }; }
3175
3176fi
3177echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3178echo "${ECHO_T}$ac_cv_build" >&6
3179build=$ac_cv_build
3180build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3181build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3182build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3183
3184
3185echo "$as_me:$LINENO: checking host system type" >&5
3186echo $ECHO_N "checking host system type... $ECHO_C" >&6
3187if test "${ac_cv_host+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3189else
3190 ac_cv_host_alias=$host_alias
3191test -z "$ac_cv_host_alias" &&
3192 ac_cv_host_alias=$ac_cv_build_alias
3193ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3194 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3195echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3196 { (exit 1); exit 1; }; }
3197
3198fi
3199echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3200echo "${ECHO_T}$ac_cv_host" >&6
3201host=$ac_cv_host
3202host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3203host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3204host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3205
3206
3207echo "$as_me:$LINENO: checking for egrep" >&5
3208echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3209if test "${ac_cv_prog_egrep+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3213 then ac_cv_prog_egrep='grep -E'
3214 else ac_cv_prog_egrep='egrep'
3215 fi
3216fi
3217echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3218echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3219 EGREP=$ac_cv_prog_egrep
3220
3221
3222
3223# Check whether --with-gnu-ld or --without-gnu-ld was given.
3224if test "${with_gnu_ld+set}" = set; then
3225 withval="$with_gnu_ld"
3226 test "$withval" = no || with_gnu_ld=yes
3227else
3228 with_gnu_ld=no
3229fi;
3230ac_prog=ld
3231if test "$GCC" = yes; then
3232 # Check if gcc -print-prog-name=ld gives a path.
3233 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3234echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3235 case $host in
3236 *-*-mingw*)
3237 # gcc leaves a trailing carriage return which upsets mingw
3238 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3239 *)
3240 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3241 esac
3242 case $ac_prog in
3243 # Accept absolute paths.
3244 [\\/]* | ?:[\\/]*)
3245 re_direlt='/[^/][^/]*/\.\./'
3246 # Canonicalize the pathname of ld
3247 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3248 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3249 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3250 done
3251 test -z "$LD" && LD="$ac_prog"
3252 ;;
3253 "")
3254 # If it fails, then pretend we aren't using GCC.
3255 ac_prog=ld
3256 ;;
3257 *)
3258 # If it is relative, then search for the first ld in PATH.
3259 with_gnu_ld=unknown
3260 ;;
3261 esac
3262elif test "$with_gnu_ld" = yes; then
3263 echo "$as_me:$LINENO: checking for GNU ld" >&5
3264echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3265else
3266 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3267echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3268fi
3269if test "${lt_cv_path_LD+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272 if test -z "$LD"; then
3273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3274 for ac_dir in $PATH; do
3275 IFS="$lt_save_ifs"
3276 test -z "$ac_dir" && ac_dir=.
3277 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3278 lt_cv_path_LD="$ac_dir/$ac_prog"
3279 # Check to see if the program is GNU ld. I'd rather use --version,
3280 # but apparently some variants of GNU ld only accept -v.
3281 # Break only if it was the GNU/non-GNU ld that we prefer.
3282 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3283 *GNU* | *'with BFD'*)
3284 test "$with_gnu_ld" != no && break
3285 ;;
3286 *)
3287 test "$with_gnu_ld" != yes && break
3288 ;;
3289 esac
3290 fi
3291 done
3292 IFS="$lt_save_ifs"
3293else
3294 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3295fi
3296fi
3297
3298LD="$lt_cv_path_LD"
3299if test -n "$LD"; then
3300 echo "$as_me:$LINENO: result: $LD" >&5
3301echo "${ECHO_T}$LD" >&6
3302else
3303 echo "$as_me:$LINENO: result: no" >&5
3304echo "${ECHO_T}no" >&6
3305fi
3306test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3307echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3308 { (exit 1); exit 1; }; }
3309echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3310echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3311if test "${lt_cv_prog_gnu_ld+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313else
3314 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3315case `$LD -v 2>&1 </dev/null` in
3316*GNU* | *'with BFD'*)
3317 lt_cv_prog_gnu_ld=yes
3318 ;;
3319*)
3320 lt_cv_prog_gnu_ld=no
3321 ;;
3322esac
3323fi
3324echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3325echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3326with_gnu_ld=$lt_cv_prog_gnu_ld
3327
3328
3329ac_ext=c
3330ac_cpp='$CPP $CPPFLAGS'
3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3335echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3336# On Suns, sometimes $CPP names a directory.
3337if test -n "$CPP" && test -d "$CPP"; then
3338 CPP=
3339fi
3340if test -z "$CPP"; then
3341 if test "${ac_cv_prog_CPP+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343else
3344 # Double quotes because CPP needs to be expanded
3345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3346 do
3347 ac_preproc_ok=false
3348for ac_c_preproc_warn_flag in '' yes
3349do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h. */
3362#ifdef __STDC__
3363# include <limits.h>
3364#else
3365# include <assert.h>
3366#endif
3367 Syntax error
3368_ACEOF
3369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380 else
3381 ac_cpp_err=
3382 fi
3383else
3384 ac_cpp_err=yes
3385fi
3386if test -z "$ac_cpp_err"; then
3387 :
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 # Broken: fails on valid input.
3393continue
3394fi
3395rm -f conftest.err conftest.$ac_ext
3396
3397 # OK, works on sane cases. Now check whether non-existent headers
3398 # can be detected and how.
3399 cat >conftest.$ac_ext <<_ACEOF
3400/* confdefs.h. */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h. */
3405#include <ac_nonexistent.h>
3406_ACEOF
3407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3409 ac_status=$?
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418 else
3419 ac_cpp_err=
3420 fi
3421else
3422 ac_cpp_err=yes
3423fi
3424if test -z "$ac_cpp_err"; then
3425 # Broken: success on invalid input.
3426continue
3427else
3428 echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 # Passes both tests.
3432ac_preproc_ok=:
3433break
3434fi
3435rm -f conftest.err conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then
3441 break
3442fi
3443
3444 done
3445 ac_cv_prog_CPP=$CPP
3446
3447fi
3448 CPP=$ac_cv_prog_CPP
3449else
3450 ac_cv_prog_CPP=$CPP
3451fi
3452echo "$as_me:$LINENO: result: $CPP" >&5
3453echo "${ECHO_T}$CPP" >&6
3454ac_preproc_ok=false
3455for ac_c_preproc_warn_flag in '' yes
3456do
3457 # Use a header file that comes with gcc, so configuring glibc
3458 # with a fresh cross-compiler works.
3459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3460 # <limits.h> exists even on freestanding compilers.
3461 # On the NeXT, cc -E runs the code through the compiler's parser,
3462 # not just through cpp. "Syntax error" is here to catch this case.
3463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h. */
3469#ifdef __STDC__
3470# include <limits.h>
3471#else
3472# include <assert.h>
3473#endif
3474 Syntax error
3475_ACEOF
3476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3489 fi
3490else
3491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
3494 :
3495else
3496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 # Broken: fails on valid input.
3500continue
3501fi
3502rm -f conftest.err conftest.$ac_ext
3503
3504 # OK, works on sane cases. Now check whether non-existent headers
3505 # can be detected and how.
3506 cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h. */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h. */
3512#include <ac_nonexistent.h>
3513_ACEOF
3514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } >/dev/null; then
3522 if test -s conftest.err; then
3523 ac_cpp_err=$ac_c_preproc_warn_flag
3524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3525 else
3526 ac_cpp_err=
3527 fi
3528else
3529 ac_cpp_err=yes
3530fi
3531if test -z "$ac_cpp_err"; then
3532 # Broken: success on invalid input.
3533continue
3534else
3535 echo "$as_me: failed program was:" >&5
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 # Passes both tests.
3539ac_preproc_ok=:
3540break
3541fi
3542rm -f conftest.err conftest.$ac_ext
3543
3544done
3545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546rm -f conftest.err conftest.$ac_ext
3547if $ac_preproc_ok; then
3548 :
3549else
3550 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3551See \`config.log' for more details." >&5
3552echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3553See \`config.log' for more details." >&2;}
3554 { (exit 1); exit 1; }; }
3555fi
3556
3557ac_ext=c
3558ac_cpp='$CPP $CPPFLAGS'
3559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003563if test -n "$ac_tool_prefix"; then
3564 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
3565set dummy ${ac_tool_prefix}sed; ac_word=$2
3566echo "$as_me:$LINENO: checking for $ac_word" >&5
3567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3568if test "${ac_cv_prog_SED+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570else
3571 if test -n "$SED"; then
3572 ac_cv_prog_SED="$SED" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581 ac_cv_prog_SED="${ac_tool_prefix}sed"
3582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3584 fi
3585done
3586done
3587
3588fi
3589fi
3590SED=$ac_cv_prog_SED
3591if test -n "$SED"; then
3592 echo "$as_me:$LINENO: result: $SED" >&5
3593echo "${ECHO_T}$SED" >&6
3594else
3595 echo "$as_me:$LINENO: result: no" >&5
3596echo "${ECHO_T}no" >&6
3597fi
3598
3599fi
3600if test -z "$ac_cv_prog_SED"; then
3601 ac_ct_SED=$SED
3602 # Extract the first word of "sed", so it can be a program name with args.
3603set dummy sed; ac_word=$2
3604echo "$as_me:$LINENO: checking for $ac_word" >&5
3605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606if test "${ac_cv_prog_ac_ct_SED+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 if test -n "$ac_ct_SED"; then
3610 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
3611else
3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_ac_ct_SED="sed"
3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623done
3624done
3625
3626 test -z "$ac_cv_prog_ac_ct_SED" && ac_cv_prog_ac_ct_SED=":"
3627fi
3628fi
3629ac_ct_SED=$ac_cv_prog_ac_ct_SED
3630if test -n "$ac_ct_SED"; then
3631 echo "$as_me:$LINENO: result: $ac_ct_SED" >&5
3632echo "${ECHO_T}$ac_ct_SED" >&6
3633else
3634 echo "$as_me:$LINENO: result: no" >&5
3635echo "${ECHO_T}no" >&6
3636fi
3637
3638 SED=$ac_ct_SED
3639else
3640 SED="$ac_cv_prog_SED"
3641fi
3642
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003643# Find a good install program. We prefer a C program (faster),
3644# so one script is as good as another. But avoid the broken or
3645# incompatible versions:
3646# SysV /etc/install, /usr/sbin/install
3647# SunOS /usr/etc/install
3648# IRIX /sbin/install
3649# AIX /bin/install
3650# AmigaOS /C/install, which installs bootblocks on floppy discs
3651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3652# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3654# OS/2's system install, which has a completely different semantic
3655# ./install, which can be erroneously created by make from ./install.sh.
3656echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3657echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3658if test -z "$INSTALL"; then
3659if test "${ac_cv_path_install+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 # Account for people who put trailing slashes in PATH elements.
3668case $as_dir/ in
3669 ./ | .// | /cC/* | \
3670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3671 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3672 /usr/ucb/* ) ;;
3673 *)
3674 # OSF1 and SCO ODT 3.0 have their own names for install.
3675 # Don't use installbsd from OSF since it installs stuff as root
3676 # by default.
3677 for ac_prog in ginstall scoinst install; do
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3680 if test $ac_prog = install &&
3681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3682 # AIX install. It has an incompatible calling convention.
3683 :
3684 elif test $ac_prog = install &&
3685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686 # program-specific install script used by HP pwplus--don't use.
3687 :
3688 else
3689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3690 break 3
3691 fi
3692 fi
3693 done
3694 done
3695 ;;
3696esac
3697done
3698
3699
3700fi
3701 if test "${ac_cv_path_install+set}" = set; then
3702 INSTALL=$ac_cv_path_install
3703 else
3704 # As a last resort, use the slow shell script. We don't cache a
3705 # path for INSTALL within a source directory, because that will
3706 # break other packages using the cache if that directory is
3707 # removed, or if the path is relative.
3708 INSTALL=$ac_install_sh
3709 fi
3710fi
3711echo "$as_me:$LINENO: result: $INSTALL" >&5
3712echo "${ECHO_T}$INSTALL" >&6
3713
3714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3715# It thinks the first close brace ends the variable substitution.
3716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3717
3718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3719
3720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3721
3722echo "$as_me:$LINENO: checking whether ln -s works" >&5
3723echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3724LN_S=$as_ln_s
3725if test "$LN_S" = "ln -s"; then
3726 echo "$as_me:$LINENO: result: yes" >&5
3727echo "${ECHO_T}yes" >&6
3728else
3729 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3730echo "${ECHO_T}no, using $LN_S" >&6
3731fi
3732
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003733echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3734echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003735set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003736if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 cat >conftest.make <<\_ACEOF
3740all:
3741 @echo 'ac_maketemp="$(MAKE)"'
3742_ACEOF
3743# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3744eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3745if test -n "$ac_maketemp"; then
3746 eval ac_cv_prog_make_${ac_make}_set=yes
3747else
3748 eval ac_cv_prog_make_${ac_make}_set=no
3749fi
3750rm -f conftest.make
3751fi
3752if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3753 echo "$as_me:$LINENO: result: yes" >&5
3754echo "${ECHO_T}yes" >&6
3755 SET_MAKE=
3756else
3757 echo "$as_me:$LINENO: result: no" >&5
3758echo "${ECHO_T}no" >&6
3759 SET_MAKE="MAKE=${MAKE-make}"
3760fi
3761
3762# Check whether --enable-shared or --disable-shared was given.
3763if test "${enable_shared+set}" = set; then
3764 enableval="$enable_shared"
3765 p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003766 case $enableval in
3767 yes) enable_shared=yes ;;
3768 no) enable_shared=no ;;
3769 *)
3770 enable_shared=no
3771 # Look at the argument we got. We use all the common list separators.
3772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3773 for pkg in $enableval; do
3774 IFS="$lt_save_ifs"
3775 if test "X$pkg" = "X$p"; then
3776 enable_shared=yes
3777 fi
3778 done
3779 IFS="$lt_save_ifs"
3780 ;;
3781 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003782else
3783 enable_shared=yes
3784fi;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003785
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003786# Check whether --enable-static or --disable-static was given.
3787if test "${enable_static+set}" = set; then
3788 enableval="$enable_static"
3789 p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003790 case $enableval in
3791 yes) enable_static=yes ;;
3792 no) enable_static=no ;;
3793 *)
3794 enable_static=no
3795 # Look at the argument we got. We use all the common list separators.
3796 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3797 for pkg in $enableval; do
3798 IFS="$lt_save_ifs"
3799 if test "X$pkg" = "X$p"; then
3800 enable_static=yes
3801 fi
3802 done
3803 IFS="$lt_save_ifs"
3804 ;;
3805 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003806else
3807 enable_static=yes
3808fi;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003809
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003810# Check whether --enable-fast-install or --disable-fast-install was given.
3811if test "${enable_fast_install+set}" = set; then
3812 enableval="$enable_fast_install"
3813 p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003814 case $enableval in
3815 yes) enable_fast_install=yes ;;
3816 no) enable_fast_install=no ;;
3817 *)
3818 enable_fast_install=no
3819 # Look at the argument we got. We use all the common list separators.
3820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3821 for pkg in $enableval; do
3822 IFS="$lt_save_ifs"
3823 if test "X$pkg" = "X$p"; then
3824 enable_fast_install=yes
3825 fi
3826 done
3827 IFS="$lt_save_ifs"
3828 ;;
3829 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003830else
3831 enable_fast_install=yes
3832fi;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003833
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003834echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3835echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3836if test "${lt_cv_ld_reload_flag+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839 lt_cv_ld_reload_flag='-r'
3840fi
3841echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3842echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3843reload_flag=$lt_cv_ld_reload_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003844case $reload_flag in
3845"" | " "*) ;;
3846*) reload_flag=" $reload_flag" ;;
3847esac
3848reload_cmds='$LD$reload_flag -o $output$reload_objs'
3849case $host_os in
3850 darwin*)
3851 if test "$GCC" = yes; then
3852 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3853 else
3854 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3855 fi
3856 ;;
3857esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003858
3859echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3860echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3861if test "${lt_cv_path_NM+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 if test -n "$NM"; then
3865 # Let the user override the test.
3866 lt_cv_path_NM="$NM"
3867else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003868 lt_nm_to_check="${ac_tool_prefix}nm"
3869 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3870 lt_nm_to_check="$lt_nm_to_check nm"
3871 fi
3872 for lt_tmp_nm in $lt_nm_to_check; do
3873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3874 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3875 IFS="$lt_save_ifs"
3876 test -z "$ac_dir" && ac_dir=.
3877 tmp_nm="$ac_dir/$lt_tmp_nm"
3878 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3879 # Check to see if the nm accepts a BSD-compat flag.
3880 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3881 # nm: unknown option "B" ignored
3882 # Tru64's nm complains that /dev/null is an invalid object file
3883 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3884 */dev/null* | *'Invalid file or object type'*)
3885 lt_cv_path_NM="$tmp_nm -B"
3886 break
3887 ;;
3888 *)
3889 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3890 */dev/null*)
3891 lt_cv_path_NM="$tmp_nm -p"
3892 break
3893 ;;
3894 *)
3895 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3896 continue # so that we can try to find one that supports BSD flags
3897 ;;
3898 esac
3899 ;;
3900 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003901 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003902 done
3903 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003904 done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003905 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3906fi
3907fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003908echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3909echo "${ECHO_T}$lt_cv_path_NM" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003910NM="$lt_cv_path_NM"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003911
3912echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3913echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3914if test "${lt_cv_deplibs_check_method+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917 lt_cv_file_magic_cmd='$MAGIC_CMD'
3918lt_cv_file_magic_test_file=
3919lt_cv_deplibs_check_method='unknown'
3920# Need to set the preceding variable on all platforms that support
3921# interlibrary dependencies.
3922# 'none' -- dependencies not supported.
3923# `unknown' -- same as none, but documents that we really don't know.
3924# 'pass_all' -- all dependencies passed with no checks.
3925# 'test_compile' -- check by making test program.
3926# 'file_magic [[regex]]' -- check by looking for files in library path
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003927# which responds to the $file_magic_cmd with a given extended regex.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003928# If you have `file' or equivalent on your system and you're not sure
3929# whether `pass_all' will *always* work, you probably want this one.
3930
3931case $host_os in
3932aix4* | aix5*)
3933 lt_cv_deplibs_check_method=pass_all
3934 ;;
3935
3936beos*)
3937 lt_cv_deplibs_check_method=pass_all
3938 ;;
3939
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003940bsdi[45]*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3942 lt_cv_file_magic_cmd='/usr/bin/file -L'
3943 lt_cv_file_magic_test_file=/shlib/libc.so
3944 ;;
3945
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003946cygwin*)
3947 # func_win32_libid is a shell function defined in ltmain.sh
3948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3949 lt_cv_file_magic_cmd='func_win32_libid'
3950 ;;
3951
3952mingw* | pw32*)
3953 # Base MSYS/MinGW do not provide the 'file' command needed by
3954 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003955 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3956 lt_cv_file_magic_cmd='$OBJDUMP -f'
3957 ;;
3958
3959darwin* | rhapsody*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003960 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003961 ;;
3962
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003963freebsd* | kfreebsd*-gnu | dragonfly*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003964 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3965 case $host_cpu in
3966 i*86 )
3967 # Not sure whether the presence of OpenBSD here was a mistake.
3968 # Let's accept both of them until this is cleared up.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003970 lt_cv_file_magic_cmd=/usr/bin/file
3971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3972 ;;
3973 esac
3974 else
3975 lt_cv_deplibs_check_method=pass_all
3976 fi
3977 ;;
3978
3979gnu*)
3980 lt_cv_deplibs_check_method=pass_all
3981 ;;
3982
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003983hpux10.20* | hpux11*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003984 lt_cv_file_magic_cmd=/usr/bin/file
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003985 case $host_cpu in
3986 ia64*)
3987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3988 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3989 ;;
3990 hppa*64*)
3991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3992 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3993 ;;
3994 *)
3995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3996 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3997 ;;
3998 esac
3999 ;;
4000
4001interix3*)
4002 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004004 ;;
4005
4006irix5* | irix6* | nonstopux*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004007 case $LD in
4008 *-32|*"-32 ") libmagic=32-bit;;
4009 *-n32|*"-n32 ") libmagic=N32;;
4010 *-64|*"-64 ") libmagic=64-bit;;
4011 *) libmagic=never-match;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004012 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004013 lt_cv_deplibs_check_method=pass_all
4014 ;;
4015
4016# This must be Linux ELF.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004017linux*)
4018 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004019 ;;
4020
4021netbsd*)
4022 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004024 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004026 fi
4027 ;;
4028
4029newos6*)
4030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4031 lt_cv_file_magic_cmd=/usr/bin/file
4032 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4033 ;;
4034
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004035nto-qnx*)
4036 lt_cv_deplibs_check_method=unknown
4037 ;;
4038
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004039openbsd*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004040 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004042 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004044 fi
4045 ;;
4046
4047osf3* | osf4* | osf5*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004048 lt_cv_deplibs_check_method=pass_all
4049 ;;
4050
4051solaris*)
4052 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004053 ;;
4054
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004055sysv4 | sysv4.3*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004056 case $host_vendor in
4057 motorola)
4058 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]'
4059 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4060 ;;
4061 ncr)
4062 lt_cv_deplibs_check_method=pass_all
4063 ;;
4064 sequent)
4065 lt_cv_file_magic_cmd='/bin/file'
4066 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4067 ;;
4068 sni)
4069 lt_cv_file_magic_cmd='/bin/file'
4070 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4071 lt_cv_file_magic_test_file=/lib/libc.so
4072 ;;
4073 siemens)
4074 lt_cv_deplibs_check_method=pass_all
4075 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004076 pc)
4077 lt_cv_deplibs_check_method=pass_all
4078 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004079 esac
4080 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004081
4082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4083 lt_cv_deplibs_check_method=pass_all
4084 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004085esac
4086
4087fi
4088echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4089echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4090file_magic_cmd=$lt_cv_file_magic_cmd
4091deplibs_check_method=$lt_cv_deplibs_check_method
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004092test -z "$deplibs_check_method" && deplibs_check_method=unknown
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004093
4094
4095
4096
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004097# If no C compiler was specified, use CC.
4098LTCC=${LTCC-"$CC"}
4099
4100# If no C compiler flags were specified, use CFLAGS.
4101LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4102
4103# Allow CC to be a program name with arguments.
4104compiler=$CC
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004105
4106
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004107# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4108if test "${enable_libtool_lock+set}" = set; then
4109 enableval="$enable_libtool_lock"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004110
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004111fi;
4112test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004113
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004114# Some flags need to be propagated to the compiler or linker for good
4115# libtool support.
4116case $host in
4117ia64-*-hpux*)
4118 # Find out which ABI we are using.
4119 echo 'int i;' > conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004125 case `/usr/bin/file conftest.$ac_objext` in
4126 *ELF-32*)
4127 HPUX_IA64_MODE="32"
4128 ;;
4129 *ELF-64*)
4130 HPUX_IA64_MODE="64"
4131 ;;
4132 esac
4133 fi
4134 rm -rf conftest*
4135 ;;
4136*-*-irix6*)
4137 # Find out which ABI we are using.
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06004138 echo '#line 4138 "configure"' > conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004143 (exit $ac_status); }; then
4144 if test "$lt_cv_prog_gnu_ld" = yes; then
4145 case `/usr/bin/file conftest.$ac_objext` in
4146 *32-bit*)
4147 LD="${LD-ld} -melf32bsmip"
4148 ;;
4149 *N32*)
4150 LD="${LD-ld} -melf32bmipn32"
4151 ;;
4152 *64-bit*)
4153 LD="${LD-ld} -melf64bmip"
4154 ;;
4155 esac
4156 else
4157 case `/usr/bin/file conftest.$ac_objext` in
4158 *32-bit*)
4159 LD="${LD-ld} -32"
4160 ;;
4161 *N32*)
4162 LD="${LD-ld} -n32"
4163 ;;
4164 *64-bit*)
4165 LD="${LD-ld} -64"
4166 ;;
4167 esac
4168 fi
4169 fi
4170 rm -rf conftest*
4171 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004172
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004173x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4174 # Find out which ABI we are using.
4175 echo 'int i;' > conftest.$ac_ext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; then
4181 case `/usr/bin/file conftest.o` in
4182 *32-bit*)
4183 case $host in
4184 x86_64-*linux*)
4185 LD="${LD-ld} -m elf_i386"
4186 ;;
4187 ppc64-*linux*|powerpc64-*linux*)
4188 LD="${LD-ld} -m elf32ppclinux"
4189 ;;
4190 s390x-*linux*)
4191 LD="${LD-ld} -m elf_s390"
4192 ;;
4193 sparc64-*linux*)
4194 LD="${LD-ld} -m elf32_sparc"
4195 ;;
4196 esac
4197 ;;
4198 *64-bit*)
4199 case $host in
4200 x86_64-*linux*)
4201 LD="${LD-ld} -m elf_x86_64"
4202 ;;
4203 ppc*-*linux*|powerpc*-*linux*)
4204 LD="${LD-ld} -m elf64ppc"
4205 ;;
4206 s390*-*linux*)
4207 LD="${LD-ld} -m elf64_s390"
4208 ;;
4209 sparc*-*linux*)
4210 LD="${LD-ld} -m elf64_sparc"
4211 ;;
4212 esac
4213 ;;
4214 esac
4215 fi
4216 rm -rf conftest*
4217 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004218
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004219*-*-sco3.2v5*)
4220 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4221 SAVE_CFLAGS="$CFLAGS"
4222 CFLAGS="$CFLAGS -belf"
4223 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4224echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4225if test "${lt_cv_cc_needs_belf+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228 ac_ext=c
4229ac_cpp='$CPP $CPPFLAGS'
4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004233
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004234 cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004240
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004241int
4242main ()
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004243{
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004244
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004245 ;
4246 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004247}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004248_ACEOF
4249rm -f conftest.$ac_objext conftest$ac_exeext
4250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251 (eval $ac_link) 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag"
4259 || test ! -s conftest.err'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 (eval $ac_try) 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004264 (exit $ac_status); }; } &&
4265 { ac_try='test -s conftest$ac_exeext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 lt_cv_cc_needs_belf=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004272else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004273 echo "$as_me: failed program was:" >&5
4274sed 's/^/| /' conftest.$ac_ext >&5
4275
4276lt_cv_cc_needs_belf=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004277fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004278rm -f conftest.err conftest.$ac_objext \
4279 conftest$ac_exeext conftest.$ac_ext
4280 ac_ext=c
4281ac_cpp='$CPP $CPPFLAGS'
4282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004286fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004287echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4288echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4289 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4290 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4291 CFLAGS="$SAVE_CFLAGS"
4292 fi
4293 ;;
4294sparc*-*solaris*)
4295 # Find out which ABI we are using.
4296 echo 'int i;' > conftest.$ac_ext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; then
4302 case `/usr/bin/file conftest.o` in
4303 *64-bit*)
4304 case $lt_cv_prog_gnu_ld in
4305 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4306 *) LD="${LD-ld} -64" ;;
4307 esac
4308 ;;
4309 esac
4310 fi
4311 rm -rf conftest*
4312 ;;
4313
4314
4315esac
4316
4317need_locks="$enable_libtool_lock"
4318
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004319
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004320
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004321echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4322echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4323if test "${ac_cv_header_stdc+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
4326 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004327/* confdefs.h. */
4328_ACEOF
4329cat confdefs.h >>conftest.$ac_ext
4330cat >>conftest.$ac_ext <<_ACEOF
4331/* end confdefs.h. */
4332#include <stdlib.h>
4333#include <stdarg.h>
4334#include <string.h>
4335#include <float.h>
4336
4337int
4338main ()
4339{
4340
4341 ;
4342 return 0;
4343}
4344_ACEOF
4345rm -f conftest.$ac_objext
4346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004347 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004348 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004354 { ac_try='test -z "$ac_c_werror_flag"
4355 || test ! -s conftest.err'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_cv_header_stdc=yes
4368else
4369 echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372ac_cv_header_stdc=no
4373fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004375
4376if test $ac_cv_header_stdc = yes; then
4377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4378 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004379/* confdefs.h. */
4380_ACEOF
4381cat confdefs.h >>conftest.$ac_ext
4382cat >>conftest.$ac_ext <<_ACEOF
4383/* end confdefs.h. */
4384#include <string.h>
4385
4386_ACEOF
4387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4388 $EGREP "memchr" >/dev/null 2>&1; then
4389 :
4390else
4391 ac_cv_header_stdc=no
4392fi
4393rm -f conftest*
4394
4395fi
4396
4397if test $ac_cv_header_stdc = yes; then
4398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
4405#include <stdlib.h>
4406
4407_ACEOF
4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "free" >/dev/null 2>&1; then
4410 :
4411else
4412 ac_cv_header_stdc=no
4413fi
4414rm -f conftest*
4415
4416fi
4417
4418if test $ac_cv_header_stdc = yes; then
4419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4420 if test "$cross_compiling" = yes; then
4421 :
4422else
4423 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004424/* confdefs.h. */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h. */
4429#include <ctype.h>
4430#if ((' ' & 0x0FF) == 0x020)
4431# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4432# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4433#else
4434# define ISLOWER(c) \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004435 (('a' <= (c) && (c) <= 'i') \
4436 || ('j' <= (c) && (c) <= 'r') \
4437 || ('s' <= (c) && (c) <= 'z'))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004438# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4439#endif
4440
4441#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4442int
4443main ()
4444{
4445 int i;
4446 for (i = 0; i < 256; i++)
4447 if (XOR (islower (i), ISLOWER (i))
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004448 || toupper (i) != TOUPPER (i))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004449 exit(2);
4450 exit (0);
4451}
4452_ACEOF
4453rm -f conftest$ac_exeext
4454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455 (eval $ac_link) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 :
4465else
4466 echo "$as_me: program exited with status $ac_status" >&5
4467echo "$as_me: failed program was:" >&5
4468sed 's/^/| /' conftest.$ac_ext >&5
4469
4470( exit $ac_status )
4471ac_cv_header_stdc=no
4472fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004473rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004474fi
4475fi
4476fi
4477echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4478echo "${ECHO_T}$ac_cv_header_stdc" >&6
4479if test $ac_cv_header_stdc = yes; then
4480
4481cat >>confdefs.h <<\_ACEOF
4482#define STDC_HEADERS 1
4483_ACEOF
4484
4485fi
4486
4487# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004498 inttypes.h stdint.h unistd.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004499do
4500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4501echo "$as_me:$LINENO: checking for $ac_header" >&5
4502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4503if eval "test \"\${$as_ac_Header+set}\" = set"; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
4512$ac_includes_default
4513
4514#include <$ac_header>
4515_ACEOF
4516rm -f conftest.$ac_objext
4517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004518 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004519 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 eval "$as_ac_Header=yes"
4539else
4540 echo "$as_me: failed program was:" >&5
4541sed 's/^/| /' conftest.$ac_ext >&5
4542
4543eval "$as_ac_Header=no"
4544fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004546fi
4547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4549if test `eval echo '${'$as_ac_Header'}'` = yes; then
4550 cat >>confdefs.h <<_ACEOF
4551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4552_ACEOF
4553
4554fi
4555
4556done
4557
4558
4559
4560for ac_header in dlfcn.h
4561do
4562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4563if eval "test \"\${$as_ac_Header+set}\" = set"; then
4564 echo "$as_me:$LINENO: checking for $ac_header" >&5
4565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4566if eval "test \"\${$as_ac_Header+set}\" = set"; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568fi
4569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4571else
4572 # Is the header compilable?
4573echo "$as_me:$LINENO: checking $ac_header usability" >&5
4574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4575cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004576/* confdefs.h. */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h. */
4581$ac_includes_default
4582#include <$ac_header>
4583_ACEOF
4584rm -f conftest.$ac_objext
4585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004586 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004587 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004588 grep -v '^ *+' conftest.er1 >conftest.err
4589 rm -f conftest.er1
4590 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004593 { ac_try='test -z "$ac_c_werror_flag"
4594 || test ! -s conftest.err'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; } &&
4600 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_header_compiler=yes
4607else
4608 echo "$as_me: failed program was:" >&5
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
4611ac_header_compiler=no
4612fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4615echo "${ECHO_T}$ac_header_compiler" >&6
4616
4617# Is the header present?
4618echo "$as_me:$LINENO: checking $ac_header presence" >&5
4619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4620cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004621/* confdefs.h. */
4622_ACEOF
4623cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h. */
4626#include <$ac_header>
4627_ACEOF
4628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } >/dev/null; then
4636 if test -s conftest.err; then
4637 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004639 else
4640 ac_cpp_err=
4641 fi
4642else
4643 ac_cpp_err=yes
4644fi
4645if test -z "$ac_cpp_err"; then
4646 ac_header_preproc=yes
4647else
4648 echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 ac_header_preproc=no
4652fi
4653rm -f conftest.err conftest.$ac_ext
4654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4655echo "${ECHO_T}$ac_header_preproc" >&6
4656
4657# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4659 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4664 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004665 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004666 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004679 (
4680 cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004681## ------------------------------------------------------ ##
4682## Report this to png-mng-implement@lists.sourceforge.net ##
4683## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004684_ASBOX
4685 ) |
4686 sed "s/^/$as_me: WARNING: /" >&2
4687 ;;
4688esac
4689echo "$as_me:$LINENO: checking for $ac_header" >&5
4690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4691if eval "test \"\${$as_ac_Header+set}\" = set"; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004694 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004695fi
4696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4698
4699fi
4700if test `eval echo '${'$as_ac_Header'}'` = yes; then
4701 cat >>confdefs.h <<_ACEOF
4702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4703_ACEOF
4704
4705fi
4706
4707done
4708
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004709ac_ext=cc
4710ac_cpp='$CXXCPP $CPPFLAGS'
4711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4714if test -n "$ac_tool_prefix"; then
4715 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4716 do
4717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4719echo "$as_me:$LINENO: checking for $ac_word" >&5
4720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4721if test "${ac_cv_prog_CXX+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004724 if test -n "$CXX"; then
4725 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4726else
4727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4737 fi
4738done
4739done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004740
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004741fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004742fi
4743CXX=$ac_cv_prog_CXX
4744if test -n "$CXX"; then
4745 echo "$as_me:$LINENO: result: $CXX" >&5
4746echo "${ECHO_T}$CXX" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004747else
4748 echo "$as_me:$LINENO: result: no" >&5
4749echo "${ECHO_T}no" >&6
4750fi
4751
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004752 test -n "$CXX" && break
4753 done
4754fi
4755if test -z "$CXX"; then
4756 ac_ct_CXX=$CXX
4757 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4758do
4759 # Extract the first word of "$ac_prog", so it can be a program name with args.
4760set dummy $ac_prog; ac_word=$2
4761echo "$as_me:$LINENO: checking for $ac_word" >&5
4762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004766 if test -n "$ac_ct_CXX"; then
4767 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776 ac_cv_prog_ac_ct_CXX="$ac_prog"
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4779 fi
4780done
4781done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004782
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004783fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004784fi
4785ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4786if test -n "$ac_ct_CXX"; then
4787 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4788echo "${ECHO_T}$ac_ct_CXX" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004789else
4790 echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6
4792fi
4793
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004794 test -n "$ac_ct_CXX" && break
4795done
4796test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4797
4798 CXX=$ac_ct_CXX
4799fi
4800
4801
4802# Provide some information about the compiler.
4803echo "$as_me:$LINENO:" \
4804 "checking for C++ compiler version" >&5
4805ac_compiler=`set X $ac_compile; echo $2`
4806{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4807 (eval $ac_compiler --version </dev/null >&5) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }
4811{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4812 (eval $ac_compiler -v </dev/null >&5) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }
4816{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4817 (eval $ac_compiler -V </dev/null >&5) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }
4821
4822echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4823echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4824if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 cat >conftest.$ac_ext <<_ACEOF
4828/* confdefs.h. */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h. */
4833
4834int
4835main ()
4836{
4837#ifndef __GNUC__
4838 choke me
4839#endif
4840
4841 ;
4842 return 0;
4843}
4844_ACEOF
4845rm -f conftest.$ac_objext
4846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847 (eval $ac_compile) 2>conftest.er1
4848 ac_status=$?
4849 grep -v '^ *+' conftest.er1 >conftest.err
4850 rm -f conftest.er1
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -z "$ac_cxx_werror_flag"
4855 || test ! -s conftest.err'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_compiler_gnu=yes
4868else
4869 echo "$as_me: failed program was:" >&5
4870sed 's/^/| /' conftest.$ac_ext >&5
4871
4872ac_compiler_gnu=no
4873fi
4874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4875ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4876
4877fi
4878echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4879echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4880GXX=`test $ac_compiler_gnu = yes && echo yes`
4881ac_test_CXXFLAGS=${CXXFLAGS+set}
4882ac_save_CXXFLAGS=$CXXFLAGS
4883CXXFLAGS="-g"
4884echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4885echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4886if test "${ac_cv_prog_cxx_g+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889 cat >conftest.$ac_ext <<_ACEOF
4890/* confdefs.h. */
4891_ACEOF
4892cat confdefs.h >>conftest.$ac_ext
4893cat >>conftest.$ac_ext <<_ACEOF
4894/* end confdefs.h. */
4895
4896int
4897main ()
4898{
4899
4900 ;
4901 return 0;
4902}
4903_ACEOF
4904rm -f conftest.$ac_objext
4905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -z "$ac_cxx_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try='test -s conftest.$ac_objext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 (eval $ac_try) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 ac_cv_prog_cxx_g=yes
4927else
4928 echo "$as_me: failed program was:" >&5
4929sed 's/^/| /' conftest.$ac_ext >&5
4930
4931ac_cv_prog_cxx_g=no
4932fi
4933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4934fi
4935echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4936echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4937if test "$ac_test_CXXFLAGS" = set; then
4938 CXXFLAGS=$ac_save_CXXFLAGS
4939elif test $ac_cv_prog_cxx_g = yes; then
4940 if test "$GXX" = yes; then
4941 CXXFLAGS="-g -O2"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004942 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004943 CXXFLAGS="-g"
4944 fi
4945else
4946 if test "$GXX" = yes; then
4947 CXXFLAGS="-O2"
4948 else
4949 CXXFLAGS=
4950 fi
4951fi
4952for ac_declaration in \
4953 '' \
4954 'extern "C" void std::exit (int) throw (); using std::exit;' \
4955 'extern "C" void std::exit (int); using std::exit;' \
4956 'extern "C" void exit (int) throw ();' \
4957 'extern "C" void exit (int);' \
4958 'void exit (int);'
4959do
4960 cat >conftest.$ac_ext <<_ACEOF
4961/* confdefs.h. */
4962_ACEOF
4963cat confdefs.h >>conftest.$ac_ext
4964cat >>conftest.$ac_ext <<_ACEOF
4965/* end confdefs.h. */
4966$ac_declaration
4967#include <stdlib.h>
4968int
4969main ()
4970{
4971exit (42);
4972 ;
4973 return 0;
4974}
4975_ACEOF
4976rm -f conftest.$ac_objext
4977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978 (eval $ac_compile) 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } &&
4985 { ac_try='test -z "$ac_cxx_werror_flag"
4986 || test ! -s conftest.err'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; } &&
4992 { ac_try='test -s conftest.$ac_objext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 :
4999else
5000 echo "$as_me: failed program was:" >&5
5001sed 's/^/| /' conftest.$ac_ext >&5
5002
5003continue
5004fi
5005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5006 cat >conftest.$ac_ext <<_ACEOF
5007/* confdefs.h. */
5008_ACEOF
5009cat confdefs.h >>conftest.$ac_ext
5010cat >>conftest.$ac_ext <<_ACEOF
5011/* end confdefs.h. */
5012$ac_declaration
5013int
5014main ()
5015{
5016exit (42);
5017 ;
5018 return 0;
5019}
5020_ACEOF
5021rm -f conftest.$ac_objext
5022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_cxx_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 break
5044else
5045 echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048fi
5049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5050done
5051rm -f conftest*
5052if test -n "$ac_declaration"; then
5053 echo '#ifdef __cplusplus' >>confdefs.h
5054 echo $ac_declaration >>confdefs.h
5055 echo '#endif' >>confdefs.h
5056fi
5057
5058ac_ext=cc
5059ac_cpp='$CXXCPP $CPPFLAGS'
5060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5063
5064depcc="$CXX" am_compiler_list=
5065
5066echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5067echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5068if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5072 # We make a subdir and do the tests there. Otherwise we can end up
5073 # making bogus files that we don't know about and never remove. For
5074 # instance it was reported that on HP-UX the gcc test will end up
5075 # making a dummy file named `D' -- because `-MD' means `put the output
5076 # in D'.
5077 mkdir conftest.dir
5078 # Copy depcomp to subdir because otherwise we won't find it if we're
5079 # using a relative directory.
5080 cp "$am_depcomp" conftest.dir
5081 cd conftest.dir
5082 # We will build objects and dependencies in a subdirectory because
5083 # it helps to detect inapplicable dependency modes. For instance
5084 # both Tru64's cc and ICC support -MD to output dependencies as a
5085 # side effect of compilation, but ICC will put the dependencies in
5086 # the current directory while Tru64 will put them in the object
5087 # directory.
5088 mkdir sub
5089
5090 am_cv_CXX_dependencies_compiler_type=none
5091 if test "$am_compiler_list" = ""; then
5092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5093 fi
5094 for depmode in $am_compiler_list; do
5095 # Setup a source with many dependencies, because some compilers
5096 # like to wrap large dependency lists on column 80 (with \), and
5097 # we should not choose a depcomp mode which is confused by this.
5098 #
5099 # We need to recreate these files for each test, as the compiler may
5100 # overwrite some of them when testing with obscure command lines.
5101 # This happens at least with the AIX C compiler.
5102 : > sub/conftest.c
5103 for i in 1 2 3 4 5 6; do
5104 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5105 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5106 # Solaris 8's {/usr,}/bin/sh.
5107 touch sub/conftst$i.h
5108 done
5109 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5110
5111 case $depmode in
5112 nosideeffect)
5113 # after this tag, mechanisms are not by side-effect, so they'll
5114 # only be used when explicitly requested
5115 if test "x$enable_dependency_tracking" = xyes; then
5116 continue
5117 else
5118 break
5119 fi
5120 ;;
5121 none) break ;;
5122 esac
5123 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5124 # mode. It turns out that the SunPro C++ compiler does not properly
5125 # handle `-M -o', and we need to detect this.
5126 if depmode=$depmode \
5127 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5128 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5129 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5130 >/dev/null 2>conftest.err &&
5131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5132 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5134 # icc doesn't choke on unknown options, it will just issue warnings
5135 # or remarks (even with -Werror). So we grep stderr for any message
5136 # that says an option was ignored or not supported.
5137 # When given -MP, icc 7.0 and 7.1 complain thusly:
5138 # icc: Command line warning: ignoring option '-M'; no argument required
5139 # The diagnosis changed in icc 8.0:
5140 # icc: Command line remark: option '-MP' not supported
5141 if (grep 'ignoring option' conftest.err ||
5142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5143 am_cv_CXX_dependencies_compiler_type=$depmode
5144 break
5145 fi
5146 fi
5147 done
5148
5149 cd ..
5150 rm -rf conftest.dir
5151else
5152 am_cv_CXX_dependencies_compiler_type=none
5153fi
5154
5155fi
5156echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5157echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5158CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5159
5160
5161
5162if
5163 test "x$enable_dependency_tracking" != xno \
5164 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5165 am__fastdepCXX_TRUE=
5166 am__fastdepCXX_FALSE='#'
5167else
5168 am__fastdepCXX_TRUE='#'
5169 am__fastdepCXX_FALSE=
5170fi
5171
5172
5173
5174
5175if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5176 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5177 (test "X$CXX" != "Xg++"))) ; then
5178 ac_ext=cc
5179ac_cpp='$CXXCPP $CPPFLAGS'
5180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5183echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5184echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5185if test -z "$CXXCPP"; then
5186 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 # Double quotes because CXXCPP needs to be expanded
5190 for CXXCPP in "$CXX -E" "/lib/cpp"
5191 do
5192 ac_preproc_ok=false
5193for ac_cxx_preproc_warn_flag in '' yes
5194do
5195 # Use a header file that comes with gcc, so configuring glibc
5196 # with a fresh cross-compiler works.
5197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198 # <limits.h> exists even on freestanding compilers.
5199 # On the NeXT, cc -E runs the code through the compiler's parser,
5200 # not just through cpp. "Syntax error" is here to catch this case.
5201 cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h. */
5207#ifdef __STDC__
5208# include <limits.h>
5209#else
5210# include <assert.h>
5211#endif
5212 Syntax error
5213_ACEOF
5214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } >/dev/null; then
5222 if test -s conftest.err; then
5223 ac_cpp_err=$ac_cxx_preproc_warn_flag
5224 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5225 else
5226 ac_cpp_err=
5227 fi
5228else
5229 ac_cpp_err=yes
5230fi
5231if test -z "$ac_cpp_err"; then
5232 :
5233else
5234 echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 # Broken: fails on valid input.
5238continue
5239fi
5240rm -f conftest.err conftest.$ac_ext
5241
5242 # OK, works on sane cases. Now check whether non-existent headers
5243 # can be detected and how.
5244 cat >conftest.$ac_ext <<_ACEOF
5245/* confdefs.h. */
5246_ACEOF
5247cat confdefs.h >>conftest.$ac_ext
5248cat >>conftest.$ac_ext <<_ACEOF
5249/* end confdefs.h. */
5250#include <ac_nonexistent.h>
5251_ACEOF
5252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null; then
5260 if test -s conftest.err; then
5261 ac_cpp_err=$ac_cxx_preproc_warn_flag
5262 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5263 else
5264 ac_cpp_err=
5265 fi
5266else
5267 ac_cpp_err=yes
5268fi
5269if test -z "$ac_cpp_err"; then
5270 # Broken: success on invalid input.
5271continue
5272else
5273 echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276 # Passes both tests.
5277ac_preproc_ok=:
5278break
5279fi
5280rm -f conftest.err conftest.$ac_ext
5281
5282done
5283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5284rm -f conftest.err conftest.$ac_ext
5285if $ac_preproc_ok; then
5286 break
5287fi
5288
5289 done
5290 ac_cv_prog_CXXCPP=$CXXCPP
5291
5292fi
5293 CXXCPP=$ac_cv_prog_CXXCPP
5294else
5295 ac_cv_prog_CXXCPP=$CXXCPP
5296fi
5297echo "$as_me:$LINENO: result: $CXXCPP" >&5
5298echo "${ECHO_T}$CXXCPP" >&6
5299ac_preproc_ok=false
5300for ac_cxx_preproc_warn_flag in '' yes
5301do
5302 # Use a header file that comes with gcc, so configuring glibc
5303 # with a fresh cross-compiler works.
5304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5305 # <limits.h> exists even on freestanding compilers.
5306 # On the NeXT, cc -E runs the code through the compiler's parser,
5307 # not just through cpp. "Syntax error" is here to catch this case.
5308 cat >conftest.$ac_ext <<_ACEOF
5309/* confdefs.h. */
5310_ACEOF
5311cat confdefs.h >>conftest.$ac_ext
5312cat >>conftest.$ac_ext <<_ACEOF
5313/* end confdefs.h. */
5314#ifdef __STDC__
5315# include <limits.h>
5316#else
5317# include <assert.h>
5318#endif
5319 Syntax error
5320_ACEOF
5321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } >/dev/null; then
5329 if test -s conftest.err; then
5330 ac_cpp_err=$ac_cxx_preproc_warn_flag
5331 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5332 else
5333 ac_cpp_err=
5334 fi
5335else
5336 ac_cpp_err=yes
5337fi
5338if test -z "$ac_cpp_err"; then
5339 :
5340else
5341 echo "$as_me: failed program was:" >&5
5342sed 's/^/| /' conftest.$ac_ext >&5
5343
5344 # Broken: fails on valid input.
5345continue
5346fi
5347rm -f conftest.err conftest.$ac_ext
5348
5349 # OK, works on sane cases. Now check whether non-existent headers
5350 # can be detected and how.
5351 cat >conftest.$ac_ext <<_ACEOF
5352/* confdefs.h. */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h. */
5357#include <ac_nonexistent.h>
5358_ACEOF
5359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } >/dev/null; then
5367 if test -s conftest.err; then
5368 ac_cpp_err=$ac_cxx_preproc_warn_flag
5369 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5370 else
5371 ac_cpp_err=
5372 fi
5373else
5374 ac_cpp_err=yes
5375fi
5376if test -z "$ac_cpp_err"; then
5377 # Broken: success on invalid input.
5378continue
5379else
5380 echo "$as_me: failed program was:" >&5
5381sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 # Passes both tests.
5384ac_preproc_ok=:
5385break
5386fi
5387rm -f conftest.err conftest.$ac_ext
5388
5389done
5390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5391rm -f conftest.err conftest.$ac_ext
5392if $ac_preproc_ok; then
5393 :
5394else
5395 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5396See \`config.log' for more details." >&5
5397echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5398See \`config.log' for more details." >&2;}
5399 { (exit 1); exit 1; }; }
5400fi
5401
5402ac_ext=cc
5403ac_cpp='$CXXCPP $CPPFLAGS'
5404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5407
5408fi
5409
5410
5411ac_ext=f
5412ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5413ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5415if test -n "$ac_tool_prefix"; then
5416 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5417 do
5418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5420echo "$as_me:$LINENO: checking for $ac_word" >&5
5421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422if test "${ac_cv_prog_F77+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425 if test -n "$F77"; then
5426 ac_cv_prog_F77="$F77" # Let the user override the test.
5427else
5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439done
5440done
5441
5442fi
5443fi
5444F77=$ac_cv_prog_F77
5445if test -n "$F77"; then
5446 echo "$as_me:$LINENO: result: $F77" >&5
5447echo "${ECHO_T}$F77" >&6
5448else
5449 echo "$as_me:$LINENO: result: no" >&5
5450echo "${ECHO_T}no" >&6
5451fi
5452
5453 test -n "$F77" && break
5454 done
5455fi
5456if test -z "$F77"; then
5457 ac_ct_F77=$F77
5458 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5459do
5460 # Extract the first word of "$ac_prog", so it can be a program name with args.
5461set dummy $ac_prog; ac_word=$2
5462echo "$as_me:$LINENO: checking for $ac_word" >&5
5463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467 if test -n "$ac_ct_F77"; then
5468 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_F77="$ac_prog"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482done
5483
5484fi
5485fi
5486ac_ct_F77=$ac_cv_prog_ac_ct_F77
5487if test -n "$ac_ct_F77"; then
5488 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5489echo "${ECHO_T}$ac_ct_F77" >&6
5490else
5491 echo "$as_me:$LINENO: result: no" >&5
5492echo "${ECHO_T}no" >&6
5493fi
5494
5495 test -n "$ac_ct_F77" && break
5496done
5497
5498 F77=$ac_ct_F77
5499fi
5500
5501
5502# Provide some information about the compiler.
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06005503echo "$as_me:5503:" \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005504 "checking for Fortran 77 compiler version" >&5
5505ac_compiler=`set X $ac_compile; echo $2`
5506{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5507 (eval $ac_compiler --version </dev/null >&5) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }
5511{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5512 (eval $ac_compiler -v </dev/null >&5) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }
5516{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5517 (eval $ac_compiler -V </dev/null >&5) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }
5521rm -f a.out
5522
5523# If we don't use `.F' as extension, the preprocessor is not run on the
5524# input file. (Note that this only needs to work for GNU compilers.)
5525ac_save_ext=$ac_ext
5526ac_ext=F
5527echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5528echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5529if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531else
5532 cat >conftest.$ac_ext <<_ACEOF
5533 program main
5534#ifndef __GNUC__
5535 choke me
5536#endif
5537
5538 end
5539_ACEOF
5540rm -f conftest.$ac_objext
5541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -z "$ac_f77_werror_flag"
5550 || test ! -s conftest.err'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest.$ac_objext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_compiler_gnu=yes
5563else
5564 echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
5566
5567ac_compiler_gnu=no
5568fi
5569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5570ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5571
5572fi
5573echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5574echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5575ac_ext=$ac_save_ext
5576ac_test_FFLAGS=${FFLAGS+set}
5577ac_save_FFLAGS=$FFLAGS
5578FFLAGS=
5579echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5580echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5581if test "${ac_cv_prog_f77_g+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583else
5584 FFLAGS=-g
5585cat >conftest.$ac_ext <<_ACEOF
5586 program main
5587
5588 end
5589_ACEOF
5590rm -f conftest.$ac_objext
5591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_f77_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_prog_f77_g=yes
5613else
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617ac_cv_prog_f77_g=no
5618fi
5619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5620
5621fi
5622echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5623echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5624if test "$ac_test_FFLAGS" = set; then
5625 FFLAGS=$ac_save_FFLAGS
5626elif test $ac_cv_prog_f77_g = yes; then
5627 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5628 FFLAGS="-g -O2"
5629 else
5630 FFLAGS="-g"
5631 fi
5632else
5633 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5634 FFLAGS="-O2"
5635 else
5636 FFLAGS=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005637 fi
5638fi
5639
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005640G77=`test $ac_compiler_gnu = yes && echo yes`
5641ac_ext=c
5642ac_cpp='$CPP $CPPFLAGS'
5643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646
5647
5648
5649# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5650
5651# find the maximum length of command line arguments
5652echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5653echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5654if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656else
5657 i=0
5658 teststring="ABCD"
5659
5660 case $build_os in
5661 msdosdjgpp*)
5662 # On DJGPP, this test can blow up pretty badly due to problems in libc
5663 # (any single argument exceeding 2000 bytes causes a buffer overrun
5664 # during glob expansion). Even if it were fixed, the result of this
5665 # check would be larger than it should be.
5666 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5667 ;;
5668
5669 gnu*)
5670 # Under GNU Hurd, this test is not required because there is
5671 # no limit to the length of command line arguments.
5672 # Libtool will interpret -1 as no limit whatsoever
5673 lt_cv_sys_max_cmd_len=-1;
5674 ;;
5675
5676 cygwin* | mingw*)
5677 # On Win9x/ME, this test blows up -- it succeeds, but takes
5678 # about 5 minutes as the teststring grows exponentially.
5679 # Worse, since 9x/ME are not pre-emptively multitasking,
5680 # you end up with a "frozen" computer, even though with patience
5681 # the test eventually succeeds (with a max line length of 256k).
5682 # Instead, let's just punt: use the minimum linelength reported by
5683 # all of the supported platforms: 8192 (on NT/2K/XP).
5684 lt_cv_sys_max_cmd_len=8192;
5685 ;;
5686
5687 amigaos*)
5688 # On AmigaOS with pdksh, this test takes hours, literally.
5689 # So we just punt and use a minimum line length of 8192.
5690 lt_cv_sys_max_cmd_len=8192;
5691 ;;
5692
5693 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5694 # This has been around since 386BSD, at least. Likely further.
5695 if test -x /sbin/sysctl; then
5696 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5697 elif test -x /usr/sbin/sysctl; then
5698 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5699 else
5700 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5701 fi
5702 # And add a safety zone
5703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5705 ;;
5706
5707 interix*)
5708 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5709 lt_cv_sys_max_cmd_len=196608
5710 ;;
5711
5712 osf*)
5713 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5714 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5715 # nice to cause kernel panics so lets avoid the loop below.
5716 # First set a reasonable default.
5717 lt_cv_sys_max_cmd_len=16384
5718 #
5719 if test -x /sbin/sysconfig; then
5720 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5721 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5722 esac
5723 fi
5724 ;;
5725 sco3.2v5*)
5726 lt_cv_sys_max_cmd_len=102400
5727 ;;
5728 sysv5* | sco5v6* | sysv4.2uw2*)
5729 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5730 if test -n "$kargmax"; then
5731 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5732 else
5733 lt_cv_sys_max_cmd_len=32768
5734 fi
5735 ;;
5736 *)
5737 # If test is not a shell built-in, we'll probably end up computing a
5738 # maximum length that is only half of the actual maximum length, but
5739 # we can't tell.
5740 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5741 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5742 = "XX$teststring") >/dev/null 2>&1 &&
5743 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5744 lt_cv_sys_max_cmd_len=$new_result &&
5745 test $i != 17 # 1/2 MB should be enough
5746 do
5747 i=`expr $i + 1`
5748 teststring=$teststring$teststring
5749 done
5750 teststring=
5751 # Add a significant safety factor because C++ compilers can tack on massive
5752 # amounts of additional arguments before passing them to the linker.
5753 # It appears as though 1/2 is a usable value.
5754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5755 ;;
5756 esac
5757
5758fi
5759
5760if test -n $lt_cv_sys_max_cmd_len ; then
5761 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5762echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5763else
5764 echo "$as_me:$LINENO: result: none" >&5
5765echo "${ECHO_T}none" >&6
5766fi
5767
5768
5769
5770
5771# Check for command to grab the raw symbol name followed by C symbol from nm.
5772echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5773echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5774if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777
5778# These are sane defaults that work on at least a few old systems.
5779# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5780
5781# Character class describing NM global symbol codes.
5782symcode='[BCDEGRST]'
5783
5784# Regexp to match symbols that can be accessed directly from C.
5785sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5786
5787# Transform an extracted symbol line into a proper C declaration
5788lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5789
5790# Transform an extracted symbol line into symbol name and symbol address
5791lt_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'"
5792
5793# Define system-specific variables.
5794case $host_os in
5795aix*)
5796 symcode='[BCDT]'
5797 ;;
5798cygwin* | mingw* | pw32*)
5799 symcode='[ABCDGISTW]'
5800 ;;
5801hpux*) # Its linker distinguishes data from code symbols
5802 if test "$host_cpu" = ia64; then
5803 symcode='[ABCDEGRST]'
5804 fi
5805 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5806 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'"
5807 ;;
5808linux*)
5809 if test "$host_cpu" = ia64; then
5810 symcode='[ABCDGIRSTW]'
5811 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5812 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'"
5813 fi
5814 ;;
5815irix* | nonstopux*)
5816 symcode='[BCDEGRST]'
5817 ;;
5818osf*)
5819 symcode='[BCDEGQRST]'
5820 ;;
5821solaris*)
5822 symcode='[BDRT]'
5823 ;;
5824sco3.2v5*)
5825 symcode='[DT]'
5826 ;;
5827sysv4.2uw2*)
5828 symcode='[DT]'
5829 ;;
5830sysv5* | sco5v6* | unixware* | OpenUNIX*)
5831 symcode='[ABDT]'
5832 ;;
5833sysv4)
5834 symcode='[DFNSTU]'
5835 ;;
5836esac
5837
5838# Handle CRLF in mingw tool chain
5839opt_cr=
5840case $build_os in
5841mingw*)
5842 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5843 ;;
5844esac
5845
5846# If we're using GNU nm, then use its standard symbol codes.
5847case `$NM -V 2>&1` in
5848*GNU* | *'with BFD'*)
5849 symcode='[ABCDGIRSTW]' ;;
5850esac
5851
5852# Try without a prefix undercore, then with it.
5853for ac_symprfx in "" "_"; do
5854
5855 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5856 symxfrm="\\1 $ac_symprfx\\2 \\2"
5857
5858 # Write the raw and C identifiers.
5859 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5860
5861 # Check to see that the pipe works correctly.
5862 pipe_works=no
5863
5864 rm -f conftest*
5865 cat > conftest.$ac_ext <<EOF
5866#ifdef __cplusplus
5867extern "C" {
5868#endif
5869char nm_test_var;
5870void nm_test_func(){}
5871#ifdef __cplusplus
5872}
5873#endif
5874int main(){nm_test_var='a';nm_test_func();return(0);}
5875EOF
5876
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; then
5882 # Now try to grab the symbols.
5883 nlist=conftest.nm
5884 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5885 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } && test -s "$nlist"; then
5889 # Try sorting and uniquifying the output.
5890 if sort "$nlist" | uniq > "$nlist"T; then
5891 mv -f "$nlist"T "$nlist"
5892 else
5893 rm -f "$nlist"T
5894 fi
5895
5896 # Make sure that we snagged all the symbols we need.
5897 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5898 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5899 cat <<EOF > conftest.$ac_ext
5900#ifdef __cplusplus
5901extern "C" {
5902#endif
5903
5904EOF
5905 # Now generate the symbol file.
5906 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5907
5908 cat <<EOF >> conftest.$ac_ext
5909#if defined (__STDC__) && __STDC__
5910# define lt_ptr_t void *
5911#else
5912# define lt_ptr_t char *
5913# define const
5914#endif
5915
5916/* The mapping between symbol names and symbols. */
5917const struct {
5918 const char *name;
5919 lt_ptr_t address;
5920}
5921lt_preloaded_symbols[] =
5922{
5923EOF
5924 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5925 cat <<\EOF >> conftest.$ac_ext
5926 {0, (lt_ptr_t) 0}
5927};
5928
5929#ifdef __cplusplus
5930}
5931#endif
5932EOF
5933 # Now try linking the two files.
5934 mv conftest.$ac_objext conftstm.$ac_objext
5935 lt_save_LIBS="$LIBS"
5936 lt_save_CFLAGS="$CFLAGS"
5937 LIBS="conftstm.$ac_objext"
5938 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5940 (eval $ac_link) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5944 pipe_works=yes
5945 fi
5946 LIBS="$lt_save_LIBS"
5947 CFLAGS="$lt_save_CFLAGS"
5948 else
5949 echo "cannot find nm_test_func in $nlist" >&5
5950 fi
5951 else
5952 echo "cannot find nm_test_var in $nlist" >&5
5953 fi
5954 else
5955 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5956 fi
5957 else
5958 echo "$progname: failed program was:" >&5
5959 cat conftest.$ac_ext >&5
5960 fi
5961 rm -f conftest* conftst*
5962
5963 # Do not use the global_symbol_pipe unless it works.
5964 if test "$pipe_works" = yes; then
5965 break
5966 else
5967 lt_cv_sys_global_symbol_pipe=
5968 fi
5969done
5970
5971fi
5972
5973if test -z "$lt_cv_sys_global_symbol_pipe"; then
5974 lt_cv_sys_global_symbol_to_cdecl=
5975fi
5976if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5977 echo "$as_me:$LINENO: result: failed" >&5
5978echo "${ECHO_T}failed" >&6
5979else
5980 echo "$as_me:$LINENO: result: ok" >&5
5981echo "${ECHO_T}ok" >&6
5982fi
5983
5984echo "$as_me:$LINENO: checking for objdir" >&5
5985echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5986if test "${lt_cv_objdir+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
5989 rm -f .libs 2>/dev/null
5990mkdir .libs 2>/dev/null
5991if test -d .libs; then
5992 lt_cv_objdir=.libs
5993else
5994 # MS-DOS does not allow filenames that begin with a dot.
5995 lt_cv_objdir=_libs
5996fi
5997rmdir .libs 2>/dev/null
5998fi
5999echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6000echo "${ECHO_T}$lt_cv_objdir" >&6
6001objdir=$lt_cv_objdir
6002
6003
6004
6005
6006
6007case $host_os in
6008aix3*)
6009 # AIX sometimes has problems with the GCC collect2 program. For some
6010 # reason, if we set the COLLECT_NAMES environment variable, the problems
6011 # vanish in a puff of smoke.
6012 if test "X${COLLECT_NAMES+set}" != Xset; then
6013 COLLECT_NAMES=
6014 export COLLECT_NAMES
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006015 fi
6016 ;;
6017esac
6018
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006019# Sed substitution that helps us do robust quoting. It backslashifies
6020# metacharacters that are still active within double-quoted strings.
6021Xsed='sed -e 1s/^X//'
6022sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6023
6024# Same as above, but do not quote variable references.
6025double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6026
6027# Sed substitution to delay expansion of an escaped shell variable in a
6028# double_quote_subst'ed string.
6029delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6030
6031# Sed substitution to avoid accidental globbing in evaled expressions
6032no_glob_subst='s/\*/\\\*/g'
6033
6034# Constants:
6035rm="rm -f"
6036
6037# Global variables:
6038default_ofile=libtool
6039can_build_shared=yes
6040
6041# All known linkers require a `.a' archive for static linking (except MSVC,
6042# which needs '.lib').
6043libext=a
6044ltmain="$ac_aux_dir/ltmain.sh"
6045ofile="$default_ofile"
6046with_gnu_ld="$lt_cv_prog_gnu_ld"
6047
6048if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6050set dummy ${ac_tool_prefix}ar; ac_word=$2
6051echo "$as_me:$LINENO: checking for $ac_word" >&5
6052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053if test "${ac_cv_prog_AR+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056 if test -n "$AR"; then
6057 ac_cv_prog_AR="$AR" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_AR="${ac_tool_prefix}ar"
6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070done
6071done
6072
6073fi
6074fi
6075AR=$ac_cv_prog_AR
6076if test -n "$AR"; then
6077 echo "$as_me:$LINENO: result: $AR" >&5
6078echo "${ECHO_T}$AR" >&6
6079else
6080 echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
6082fi
6083
6084fi
6085if test -z "$ac_cv_prog_AR"; then
6086 ac_ct_AR=$AR
6087 # Extract the first word of "ar", so it can be a program name with args.
6088set dummy ar; ac_word=$2
6089echo "$as_me:$LINENO: checking for $ac_word" >&5
6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6091if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 if test -n "$ac_ct_AR"; then
6095 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104 ac_cv_prog_ac_ct_AR="ar"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 break 2
6107 fi
6108done
6109done
6110
6111 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6112fi
6113fi
6114ac_ct_AR=$ac_cv_prog_ac_ct_AR
6115if test -n "$ac_ct_AR"; then
6116 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6117echo "${ECHO_T}$ac_ct_AR" >&6
6118else
6119 echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6
6121fi
6122
6123 AR=$ac_ct_AR
6124else
6125 AR="$ac_cv_prog_AR"
6126fi
6127
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006128if test -n "$ac_tool_prefix"; then
6129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6130set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6131echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6133if test "${ac_cv_prog_RANLIB+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135else
6136 if test -n "$RANLIB"; then
6137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150done
6151done
6152
6153fi
6154fi
6155RANLIB=$ac_cv_prog_RANLIB
6156if test -n "$RANLIB"; then
6157 echo "$as_me:$LINENO: result: $RANLIB" >&5
6158echo "${ECHO_T}$RANLIB" >&6
6159else
6160 echo "$as_me:$LINENO: result: no" >&5
6161echo "${ECHO_T}no" >&6
6162fi
6163
6164fi
6165if test -z "$ac_cv_prog_RANLIB"; then
6166 ac_ct_RANLIB=$RANLIB
6167 # Extract the first word of "ranlib", so it can be a program name with args.
6168set dummy ranlib; ac_word=$2
6169echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6171if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174 if test -n "$ac_ct_RANLIB"; then
6175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184 ac_cv_prog_ac_ct_RANLIB="ranlib"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188done
6189done
6190
6191 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6192fi
6193fi
6194ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195if test -n "$ac_ct_RANLIB"; then
6196 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6197echo "${ECHO_T}$ac_ct_RANLIB" >&6
6198else
6199 echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6
6201fi
6202
6203 RANLIB=$ac_ct_RANLIB
6204else
6205 RANLIB="$ac_cv_prog_RANLIB"
6206fi
6207
6208if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6210set dummy ${ac_tool_prefix}strip; ac_word=$2
6211echo "$as_me:$LINENO: checking for $ac_word" >&5
6212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6213if test "${ac_cv_prog_STRIP+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216 if test -n "$STRIP"; then
6217 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230done
6231done
6232
6233fi
6234fi
6235STRIP=$ac_cv_prog_STRIP
6236if test -n "$STRIP"; then
6237 echo "$as_me:$LINENO: result: $STRIP" >&5
6238echo "${ECHO_T}$STRIP" >&6
6239else
6240 echo "$as_me:$LINENO: result: no" >&5
6241echo "${ECHO_T}no" >&6
6242fi
6243
6244fi
6245if test -z "$ac_cv_prog_STRIP"; then
6246 ac_ct_STRIP=$STRIP
6247 # Extract the first word of "strip", so it can be a program name with args.
6248set dummy strip; ac_word=$2
6249echo "$as_me:$LINENO: checking for $ac_word" >&5
6250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6251if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253else
6254 if test -n "$ac_ct_STRIP"; then
6255 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6256else
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264 ac_cv_prog_ac_ct_STRIP="strip"
6265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268done
6269done
6270
6271 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6272fi
6273fi
6274ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6275if test -n "$ac_ct_STRIP"; then
6276 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6277echo "${ECHO_T}$ac_ct_STRIP" >&6
6278else
6279 echo "$as_me:$LINENO: result: no" >&5
6280echo "${ECHO_T}no" >&6
6281fi
6282
6283 STRIP=$ac_ct_STRIP
6284else
6285 STRIP="$ac_cv_prog_STRIP"
6286fi
6287
6288
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006289old_CC="$CC"
6290old_CFLAGS="$CFLAGS"
6291
6292# Set sane defaults for various variables
6293test -z "$AR" && AR=ar
6294test -z "$AR_FLAGS" && AR_FLAGS=cru
6295test -z "$AS" && AS=as
6296test -z "$CC" && CC=cc
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006297test -z "$LTCC" && LTCC=$CC
6298test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006299test -z "$DLLTOOL" && DLLTOOL=dlltool
6300test -z "$LD" && LD=ld
6301test -z "$LN_S" && LN_S="ln -s"
6302test -z "$MAGIC_CMD" && MAGIC_CMD=file
6303test -z "$NM" && NM=nm
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006304test -z "$SED" && SED=sed
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006305test -z "$OBJDUMP" && OBJDUMP=objdump
6306test -z "$RANLIB" && RANLIB=:
6307test -z "$STRIP" && STRIP=:
6308test -z "$ac_objext" && ac_objext=o
6309
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006310# Determine commands to create old-style static archives.
6311old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6312old_postinstall_cmds='chmod 644 $oldlib'
6313old_postuninstall_cmds=
6314
6315if test -n "$RANLIB"; then
6316 case $host_os in
6317 openbsd*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006318 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006319 ;;
6320 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006321 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006322 ;;
6323 esac
6324 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6325fi
6326
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006327for cc_temp in $compiler""; do
6328 case $cc_temp in
6329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6331 \-*) ;;
6332 *) break;;
6333 esac
6334done
6335cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006336
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006337
6338# Only perform the check for file, if the check method requires it
6339case $deplibs_check_method in
6340file_magic*)
6341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6342 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6343echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6344if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006346else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006347 case $MAGIC_CMD in
6348[\\/*] | ?:[\\/]*)
6349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6350 ;;
6351*)
6352 lt_save_MAGIC_CMD="$MAGIC_CMD"
6353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6355 for ac_dir in $ac_dummy; do
6356 IFS="$lt_save_ifs"
6357 test -z "$ac_dir" && ac_dir=.
6358 if test -f $ac_dir/${ac_tool_prefix}file; then
6359 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6360 if test -n "$file_magic_test_file"; then
6361 case $deplibs_check_method in
6362 "file_magic "*)
6363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6366 $EGREP "$file_magic_regex" > /dev/null; then
6367 :
6368 else
6369 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006370
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006371*** Warning: the command libtool uses to detect shared libraries,
6372*** $file_magic_cmd, produces output that libtool cannot recognize.
6373*** The result is that libtool may fail to recognize shared libraries
6374*** as such. This will affect the creation of libtool libraries that
6375*** depend on shared libraries, but programs linked with such libtool
6376*** libraries will work regardless of this problem. Nevertheless, you
6377*** may want to report the problem to your system manager and/or to
6378*** bug-libtool@gnu.org
6379
6380EOF
6381 fi ;;
6382 esac
6383 fi
6384 break
6385 fi
6386 done
6387 IFS="$lt_save_ifs"
6388 MAGIC_CMD="$lt_save_MAGIC_CMD"
6389 ;;
6390esac
6391fi
6392
6393MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6394if test -n "$MAGIC_CMD"; then
6395 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6396echo "${ECHO_T}$MAGIC_CMD" >&6
6397else
6398 echo "$as_me:$LINENO: result: no" >&5
6399echo "${ECHO_T}no" >&6
6400fi
6401
6402if test -z "$lt_cv_path_MAGIC_CMD"; then
6403 if test -n "$ac_tool_prefix"; then
6404 echo "$as_me:$LINENO: checking for file" >&5
6405echo $ECHO_N "checking for file... $ECHO_C" >&6
6406if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
6409 case $MAGIC_CMD in
6410[\\/*] | ?:[\\/]*)
6411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6412 ;;
6413*)
6414 lt_save_MAGIC_CMD="$MAGIC_CMD"
6415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6417 for ac_dir in $ac_dummy; do
6418 IFS="$lt_save_ifs"
6419 test -z "$ac_dir" && ac_dir=.
6420 if test -f $ac_dir/file; then
6421 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6422 if test -n "$file_magic_test_file"; then
6423 case $deplibs_check_method in
6424 "file_magic "*)
6425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6428 $EGREP "$file_magic_regex" > /dev/null; then
6429 :
6430 else
6431 cat <<EOF 1>&2
6432
6433*** Warning: the command libtool uses to detect shared libraries,
6434*** $file_magic_cmd, produces output that libtool cannot recognize.
6435*** The result is that libtool may fail to recognize shared libraries
6436*** as such. This will affect the creation of libtool libraries that
6437*** depend on shared libraries, but programs linked with such libtool
6438*** libraries will work regardless of this problem. Nevertheless, you
6439*** may want to report the problem to your system manager and/or to
6440*** bug-libtool@gnu.org
6441
6442EOF
6443 fi ;;
6444 esac
6445 fi
6446 break
6447 fi
6448 done
6449 IFS="$lt_save_ifs"
6450 MAGIC_CMD="$lt_save_MAGIC_CMD"
6451 ;;
6452esac
6453fi
6454
6455MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6456if test -n "$MAGIC_CMD"; then
6457 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6458echo "${ECHO_T}$MAGIC_CMD" >&6
6459else
6460 echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6
6462fi
6463
6464 else
6465 MAGIC_CMD=:
6466 fi
6467fi
6468
6469 fi
6470 ;;
6471esac
6472
6473enable_dlopen=no
6474enable_win32_dll=no
6475
6476# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6477if test "${enable_libtool_lock+set}" = set; then
6478 enableval="$enable_libtool_lock"
6479
6480fi;
6481test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006482
6483
6484# Check whether --with-pic or --without-pic was given.
6485if test "${with_pic+set}" = set; then
6486 withval="$with_pic"
6487 pic_mode="$withval"
6488else
6489 pic_mode=default
6490fi;
6491test -z "$pic_mode" && pic_mode=default
6492
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06006493# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6494#
6495# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6496# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6497# calls AC_LIBTOOL_CONFIG and creates libtool.
6498#
6499echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6500echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
6501if test "x$ltmain" = "x" ; then
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504 { { echo "$as_me:$LINENO: error:
6505
6506*** [Gentoo] sanity check failed! ***
6507*** \$ltmain is not defined, please check the patch for consistency! ***
6508" >&5
6509echo "$as_me: error:
6510
6511*** [Gentoo] sanity check failed! ***
6512*** \$ltmain is not defined, please check the patch for consistency! ***
6513" >&2;}
6514 { (exit 1); exit 1; }; }
6515fi
6516gentoo_lt_version="1.5.22"
6517gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6518if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6519 echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6
6521 { { echo "$as_me:$LINENO: error:
6522
6523*** [Gentoo] sanity check failed! ***
6524*** libtool.m4 and ltmain.sh have a version mismatch! ***
6525*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6526
6527Please run:
6528
6529 libtoolize --copy --force
6530
6531if appropriate, please contact the maintainer of this
6532package (or your distribution) for help.
6533" >&5
6534echo "$as_me: error:
6535
6536*** [Gentoo] sanity check failed! ***
6537*** libtool.m4 and ltmain.sh have a version mismatch! ***
6538*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6539
6540Please run:
6541
6542 libtoolize --copy --force
6543
6544if appropriate, please contact the maintainer of this
6545package (or your distribution) for help.
6546" >&2;}
6547 { (exit 1); exit 1; }; }
6548else
6549 echo "$as_me:$LINENO: result: yes" >&5
6550echo "${ECHO_T}yes" >&6
6551fi
6552
6553
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006554# Use C for the default configuration in the libtool script
6555tagname=
6556lt_save_CC="$CC"
6557ac_ext=c
6558ac_cpp='$CPP $CPPFLAGS'
6559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
6563
6564# Source file extension for C test sources.
6565ac_ext=c
6566
6567# Object file extension for compiled C test sources.
6568objext=o
6569objext=$objext
6570
6571# Code to be used in simple compile tests
6572lt_simple_compile_test_code="int some_variable = 0;\n"
6573
6574# Code to be used in simple link tests
6575lt_simple_link_test_code='int main(){return(0);}\n'
6576
6577
6578# If no C compiler was specified, use CC.
6579LTCC=${LTCC-"$CC"}
6580
6581# If no C compiler flags were specified, use CFLAGS.
6582LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6583
6584# Allow CC to be a program name with arguments.
6585compiler=$CC
6586
6587
6588# save warnings/boilerplate of simple test code
6589ac_outfile=conftest.$ac_objext
6590printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6591eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6592_lt_compiler_boilerplate=`cat conftest.err`
6593$rm conftest*
6594
6595ac_outfile=conftest.$ac_objext
6596printf "$lt_simple_link_test_code" >conftest.$ac_ext
6597eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6598_lt_linker_boilerplate=`cat conftest.err`
6599$rm conftest*
6600
6601
6602
6603lt_prog_compiler_no_builtin_flag=
6604
6605if test "$GCC" = yes; then
6606 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6607
6608
6609echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6610echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6611if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006614 lt_cv_prog_compiler_rtti_exceptions=no
6615 ac_outfile=conftest.$ac_objext
6616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6617 lt_compiler_flag="-fno-rtti -fno-exceptions"
6618 # Insert the option either (1) after the last *FLAGS variable, or
6619 # (2) before a word containing "conftest.", or (3) at the end.
6620 # Note that $ac_compile itself does not contain backslashes and begins
6621 # with a dollar sign (not a hyphen), so the echo should work correctly.
6622 # The option is referenced via a variable to avoid confusing sed.
6623 lt_compile=`echo "$ac_compile" | $SED \
6624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6626 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06006627 (eval echo "\"\$as_me:6627: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006628 (eval "$lt_compile" 2>conftest.err)
6629 ac_status=$?
6630 cat conftest.err >&5
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06006631 echo "$as_me:6631: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006632 if (exit $ac_status) && test -s "$ac_outfile"; then
6633 # The compiler can only warn and ignore the option if not recognized
6634 # So say no if there are warnings other than the usual output.
6635 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6638 lt_cv_prog_compiler_rtti_exceptions=yes
6639 fi
6640 fi
6641 $rm conftest*
6642
6643fi
6644echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6645echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6646
6647if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6648 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6649else
6650 :
6651fi
6652
6653fi
6654
6655lt_prog_compiler_wl=
6656lt_prog_compiler_pic=
6657lt_prog_compiler_static=
6658
6659echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6660echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006661
6662 if test "$GCC" = yes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006663 lt_prog_compiler_wl='-Wl,'
6664 lt_prog_compiler_static='-static'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006665
6666 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006667 aix*)
6668 # All AIX code is PIC.
6669 if test "$host_cpu" = ia64; then
6670 # AIX 5 now supports IA64 processor
6671 lt_prog_compiler_static='-Bstatic'
6672 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006673 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006674
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006675 amigaos*)
6676 # FIXME: we need at least 68020 code to build shared libraries, but
6677 # adding the `-m68020' flag to GCC prevents building anything better,
6678 # like `-m68040'.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006679 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006680 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006681
6682 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006683 # PIC is the default for these OSes.
6684 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006685
6686 mingw* | pw32* | os2*)
6687 # This hack is so that the source file can tell whether it is being
6688 # built for inclusion in a dll (and should export symbols for example).
6689 lt_prog_compiler_pic='-DDLL_EXPORT'
6690 ;;
6691
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006692 darwin* | rhapsody*)
6693 # PIC is the default on this platform
6694 # Common symbols not allowed in MH_DYLIB files
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006695 lt_prog_compiler_pic='-fno-common'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006696 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006697
6698 interix3*)
6699 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6700 # Instead, we relocate shared libraries at runtime.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006701 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006702
6703 msdosdjgpp*)
6704 # Just because we use GCC doesn't mean we suddenly get shared libraries
6705 # on systems that don't support them.
6706 lt_prog_compiler_can_build_shared=no
6707 enable_shared=no
6708 ;;
6709
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006710 sysv4*MP*)
6711 if test -d /usr/nec; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006712 lt_prog_compiler_pic=-Kconform_pic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006713 fi
6714 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006715
6716 hpux*)
6717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6718 # not for PA HP-UX.
6719 case $host_cpu in
6720 hppa*64*|ia64*)
6721 # +Z the default
6722 ;;
6723 *)
6724 lt_prog_compiler_pic='-fPIC'
6725 ;;
6726 esac
6727 ;;
6728
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006729 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006730 lt_prog_compiler_pic='-fPIC'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006731 ;;
6732 esac
6733 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006734 # PORTME Check for flag to pass linker flags through the system compiler.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006735 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006736 aix*)
6737 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006738 if test "$host_cpu" = ia64; then
6739 # AIX 5 now supports IA64 processor
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006740 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006741 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006742 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006743 fi
6744 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006745 darwin*)
6746 # PIC is the default on this platform
6747 # Common symbols not allowed in MH_DYLIB files
6748 case $cc_basename in
6749 xlc*)
6750 lt_prog_compiler_pic='-qnocommon'
6751 lt_prog_compiler_wl='-Wl,'
6752 ;;
6753 esac
6754 ;;
6755
6756 mingw* | pw32* | os2*)
6757 # This hack is so that the source file can tell whether it is being
6758 # built for inclusion in a dll (and should export symbols for example).
6759 lt_prog_compiler_pic='-DDLL_EXPORT'
6760 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006761
6762 hpux9* | hpux10* | hpux11*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006763 lt_prog_compiler_wl='-Wl,'
6764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6765 # not for PA HP-UX.
6766 case $host_cpu in
6767 hppa*64*|ia64*)
6768 # +Z the default
6769 ;;
6770 *)
6771 lt_prog_compiler_pic='+Z'
6772 ;;
6773 esac
6774 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6775 lt_prog_compiler_static='${wl}-a ${wl}archive'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006776 ;;
6777
6778 irix5* | irix6* | nonstopux*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006779 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006780 # PIC (with -KPIC) is the default.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006781 lt_prog_compiler_static='-non_shared'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006782 ;;
6783
6784 newsos6)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006785 lt_prog_compiler_pic='-KPIC'
6786 lt_prog_compiler_static='-Bstatic'
6787 ;;
6788
6789 linux*)
6790 case $cc_basename in
6791 icc* | ecc*)
6792 lt_prog_compiler_wl='-Wl,'
6793 lt_prog_compiler_pic='-KPIC'
6794 lt_prog_compiler_static='-static'
6795 ;;
6796 pgcc* | pgf77* | pgf90* | pgf95*)
6797 # Portland Group compilers (*not* the Pentium gcc compiler,
6798 # which looks to be a dead project)
6799 lt_prog_compiler_wl='-Wl,'
6800 lt_prog_compiler_pic='-fpic'
6801 lt_prog_compiler_static='-Bstatic'
6802 ;;
6803 ccc*)
6804 lt_prog_compiler_wl='-Wl,'
6805 # All Alpha code is PIC.
6806 lt_prog_compiler_static='-non_shared'
6807 ;;
6808 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006809 ;;
6810
6811 osf3* | osf4* | osf5*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006812 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006813 # All OSF/1 code is PIC.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006814 lt_prog_compiler_static='-non_shared'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006815 ;;
6816
6817 solaris*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006818 lt_prog_compiler_pic='-KPIC'
6819 lt_prog_compiler_static='-Bstatic'
6820 case $cc_basename in
6821 f77* | f90* | f95*)
6822 lt_prog_compiler_wl='-Qoption ld ';;
6823 *)
6824 lt_prog_compiler_wl='-Wl,';;
6825 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006826 ;;
6827
6828 sunos4*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006829 lt_prog_compiler_wl='-Qoption ld '
6830 lt_prog_compiler_pic='-PIC'
6831 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006832 ;;
6833
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006834 sysv4 | sysv4.2uw2* | sysv4.3*)
6835 lt_prog_compiler_wl='-Wl,'
6836 lt_prog_compiler_pic='-KPIC'
6837 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006838 ;;
6839
6840 sysv4*MP*)
6841 if test -d /usr/nec ;then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006842 lt_prog_compiler_pic='-Kconform_pic'
6843 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006844 fi
6845 ;;
6846
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6848 lt_prog_compiler_wl='-Wl,'
6849 lt_prog_compiler_pic='-KPIC'
6850 lt_prog_compiler_static='-Bstatic'
6851 ;;
6852
6853 unicos*)
6854 lt_prog_compiler_wl='-Wl,'
6855 lt_prog_compiler_can_build_shared=no
6856 ;;
6857
6858 uts4*)
6859 lt_prog_compiler_pic='-pic'
6860 lt_prog_compiler_static='-Bstatic'
6861 ;;
6862
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006863 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006864 lt_prog_compiler_can_build_shared=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006865 ;;
6866 esac
6867 fi
6868
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006869echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6870echo "${ECHO_T}$lt_prog_compiler_pic" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006871
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006872#
6873# Check to make sure the PIC flag actually works.
6874#
6875if test -n "$lt_prog_compiler_pic"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006876
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006877echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6878echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6879if test "${lt_prog_compiler_pic_works+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006882 lt_prog_compiler_pic_works=no
6883 ac_outfile=conftest.$ac_objext
6884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6885 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6886 # Insert the option either (1) after the last *FLAGS variable, or
6887 # (2) before a word containing "conftest.", or (3) at the end.
6888 # Note that $ac_compile itself does not contain backslashes and begins
6889 # with a dollar sign (not a hyphen), so the echo should work correctly.
6890 # The option is referenced via a variable to avoid confusing sed.
6891 lt_compile=`echo "$ac_compile" | $SED \
6892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6894 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06006895 (eval echo "\"\$as_me:6895: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006896 (eval "$lt_compile" 2>conftest.err)
6897 ac_status=$?
6898 cat conftest.err >&5
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06006899 echo "$as_me:6899: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006900 if (exit $ac_status) && test -s "$ac_outfile"; then
6901 # The compiler can only warn and ignore the option if not recognized
6902 # So say no if there are warnings other than the usual output.
6903 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6906 lt_prog_compiler_pic_works=yes
6907 fi
6908 fi
6909 $rm conftest*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006910
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006911fi
6912echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6913echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006914
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006915if test x"$lt_prog_compiler_pic_works" = xyes; then
6916 case $lt_prog_compiler_pic in
6917 "" | " "*) ;;
6918 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6919 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006920else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006921 lt_prog_compiler_pic=
6922 lt_prog_compiler_can_build_shared=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006923fi
6924
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006925fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006926case $host_os in
6927 # For platforms which do not support PIC, -DPIC is meaningless:
6928 *djgpp*)
6929 lt_prog_compiler_pic=
6930 ;;
6931 *)
6932 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6933 ;;
6934esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006935
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006936#
6937# Check to make sure the static flag actually works.
6938#
6939wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6940echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6941echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6942if test "${lt_prog_compiler_static_works+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006945 lt_prog_compiler_static_works=no
6946 save_LDFLAGS="$LDFLAGS"
6947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6948 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6950 # The linker can only warn and ignore the option if not recognized
6951 # So say no if there are warnings
6952 if test -s conftest.err; then
6953 # Append any errors to the config.log.
6954 cat conftest.err 1>&5
6955 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6957 if diff conftest.exp conftest.er2 >/dev/null; then
6958 lt_prog_compiler_static_works=yes
6959 fi
6960 else
6961 lt_prog_compiler_static_works=yes
6962 fi
6963 fi
6964 $rm conftest*
6965 LDFLAGS="$save_LDFLAGS"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006966
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006967fi
6968echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6969echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006970
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006971if test x"$lt_prog_compiler_static_works" = xyes; then
6972 :
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006973else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006974 lt_prog_compiler_static=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006975fi
6976
6977
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006978echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6979echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006980if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006983 lt_cv_prog_compiler_c_o=no
6984 $rm -r conftest 2>/dev/null
6985 mkdir conftest
6986 cd conftest
6987 mkdir out
6988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006989
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006990 lt_compiler_flag="-o out/conftest2.$ac_objext"
6991 # Insert the option either (1) after the last *FLAGS variable, or
6992 # (2) before a word containing "conftest.", or (3) at the end.
6993 # Note that $ac_compile itself does not contain backslashes and begins
6994 # with a dollar sign (not a hyphen), so the echo should work correctly.
6995 lt_compile=`echo "$ac_compile" | $SED \
6996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6998 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06006999 (eval echo "\"\$as_me:6999: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007000 (eval "$lt_compile" 2>out/conftest.err)
7001 ac_status=$?
7002 cat out/conftest.err >&5
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06007003 echo "$as_me:7003: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007004 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7005 then
7006 # The compiler can only warn and ignore the option if not recognized
7007 # So say no if there are warnings
7008 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7011 lt_cv_prog_compiler_c_o=yes
7012 fi
7013 fi
7014 chmod u+w . 2>&5
7015 $rm conftest*
7016 # SGI C++ compiler will create directory out/ii_files/ for
7017 # template instantiation
7018 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7019 $rm out/* && rmdir out
7020 cd ..
7021 rmdir conftest
7022 $rm conftest*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007023
7024fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007025echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7026echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007027
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007028
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007029hard_links="nottested"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007030if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007031 # do not overwrite the value of need_locks provided by the user
7032 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7033echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7034 hard_links=yes
7035 $rm conftest*
7036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7037 touch conftest.a
7038 ln conftest.a conftest.b 2>&5 || hard_links=no
7039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7040 echo "$as_me:$LINENO: result: $hard_links" >&5
7041echo "${ECHO_T}$hard_links" >&6
7042 if test "$hard_links" = no; then
7043 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7044echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7045 need_locks=warn
7046 fi
7047else
7048 need_locks=no
7049fi
7050
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007051echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7052echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007053
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007054 runpath_var=
7055 allow_undefined_flag=
7056 enable_shared_with_static_runtimes=no
7057 archive_cmds=
7058 archive_expsym_cmds=
7059 old_archive_From_new_cmds=
7060 old_archive_from_expsyms_cmds=
7061 export_dynamic_flag_spec=
7062 whole_archive_flag_spec=
7063 thread_safe_flag_spec=
7064 hardcode_libdir_flag_spec=
7065 hardcode_libdir_flag_spec_ld=
7066 hardcode_libdir_separator=
7067 hardcode_direct=no
7068 hardcode_minus_L=no
7069 hardcode_shlibpath_var=unsupported
7070 link_all_deplibs=unknown
7071 hardcode_automatic=no
7072 module_cmds=
7073 module_expsym_cmds=
7074 always_export_symbols=no
7075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7076 # include_expsyms should be a list of space-separated symbols to be *always*
7077 # included in the symbol list
7078 include_expsyms=
7079 # exclude_expsyms can be an extended regexp of symbols to exclude
7080 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7081 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7082 # as well as any symbol that contains `d'.
7083 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7084 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7085 # platforms (ab)use it in PIC code, but their linkers get confused if
7086 # the symbol is explicitly referenced. Since portable code cannot
7087 # rely on this symbol name, it's probably fine to never include it in
7088 # preloaded symbol tables.
7089 extract_expsyms_cmds=
7090 # Just being paranoid about ensuring that cc_basename is set.
7091 for cc_temp in $compiler""; do
7092 case $cc_temp in
7093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7095 \-*) ;;
7096 *) break;;
7097 esac
7098done
7099cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007100
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007101 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007102 cygwin* | mingw* | pw32*)
7103 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7104 # When not using gcc, we currently assume that we are using
7105 # Microsoft Visual C++.
7106 if test "$GCC" != yes; then
7107 with_gnu_ld=no
7108 fi
7109 ;;
7110 interix*)
7111 # we just hope/assume this is gcc and not c89 (= MSVC++)
7112 with_gnu_ld=yes
7113 ;;
7114 openbsd*)
7115 with_gnu_ld=no
7116 ;;
7117 esac
7118
7119 ld_shlibs=yes
7120 if test "$with_gnu_ld" = yes; then
7121 # If archive_cmds runs LD, not CC, wlarc should be empty
7122 wlarc='${wl}'
7123
7124 # Set some defaults for GNU ld with shared library support. These
7125 # are reset later if shared libraries are not supported. Putting them
7126 # here allows them to be overridden if necessary.
7127 runpath_var=LD_RUN_PATH
7128 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7129 export_dynamic_flag_spec='${wl}--export-dynamic'
7130 # ancient GNU ld didn't support --whole-archive et. al.
7131 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7132 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7133 else
7134 whole_archive_flag_spec=
7135 fi
7136 supports_anon_versioning=no
7137 case `$LD -v 2>/dev/null` in
7138 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7139 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7140 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7141 *\ 2.11.*) ;; # other 2.11 versions
7142 *) supports_anon_versioning=yes ;;
7143 esac
7144
7145 # See if GNU ld supports shared libraries.
7146 case $host_os in
7147 aix3* | aix4* | aix5*)
7148 # On AIX/PPC, the GNU linker is very broken
7149 if test "$host_cpu" != ia64; then
7150 ld_shlibs=no
7151 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007152
7153*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7154*** to be unable to reliably create shared libraries on AIX.
7155*** Therefore, libtool is disabling shared libraries support. If you
7156*** really care for shared libraries, you may want to modify your PATH
7157*** so that a non-GNU linker is found, and then restart.
7158
7159EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007160 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007161 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007162
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007163 amigaos*)
7164 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)'
7165 hardcode_libdir_flag_spec='-L$libdir'
7166 hardcode_minus_L=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007167
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007168 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7169 # that the semantics of dynamic libraries on AmigaOS, at least up
7170 # to version 4, is to share data among multiple programs linked
7171 # with the same dynamic library. Since this doesn't match the
7172 # behavior of shared libraries on other platforms, we can't use
7173 # them.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007174 ld_shlibs=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007175 ;;
7176
7177 beos*)
7178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7179 allow_undefined_flag=unsupported
7180 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7181 # support --undefined. This deserves some investigation. FIXME
7182 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7183 else
7184 ld_shlibs=no
7185 fi
7186 ;;
7187
7188 cygwin* | mingw* | pw32*)
7189 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7190 # as there is no search path for DLLs.
7191 hardcode_libdir_flag_spec='-L$libdir'
7192 allow_undefined_flag=unsupported
7193 always_export_symbols=no
7194 enable_shared_with_static_runtimes=yes
7195 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7196
7197 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7199 # If the export-symbols file already is a .def file (1st line
7200 # is EXPORTS), use it as is; otherwise, prepend...
7201 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7202 cp $export_symbols $output_objdir/$soname.def;
7203 else
7204 echo EXPORTS > $output_objdir/$soname.def;
7205 cat $export_symbols >> $output_objdir/$soname.def;
7206 fi~
7207 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7208 else
7209 ld_shlibs=no
7210 fi
7211 ;;
7212
7213 interix3*)
7214 hardcode_direct=no
7215 hardcode_shlibpath_var=no
7216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7217 export_dynamic_flag_spec='${wl}-E'
7218 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7219 # Instead, shared libraries are loaded at an image base (0x10000000 by
7220 # default) and relocated if they conflict, which is a slow very memory
7221 # consuming and fragmenting process. To avoid this, we pick a random,
7222 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7223 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7224 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7225 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7226 ;;
7227
7228 linux*)
7229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7230 tmp_addflag=
7231 case $cc_basename,$host_cpu in
7232 pgcc*) # Portland Group C compiler
7233 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7234 tmp_addflag=' $pic_flag'
7235 ;;
7236 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7237 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7238 tmp_addflag=' $pic_flag -Mnomain' ;;
7239 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7240 tmp_addflag=' -i_dynamic' ;;
7241 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7242 tmp_addflag=' -i_dynamic -nofor_main' ;;
7243 ifc* | ifort*) # Intel Fortran compiler
7244 tmp_addflag=' -nofor_main' ;;
7245 esac
7246 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7247
7248 if test $supports_anon_versioning = yes; then
7249 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7250 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7251 $echo "local: *; };" >> $output_objdir/$libname.ver~
7252 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7253 fi
7254 else
7255 ld_shlibs=no
7256 fi
7257 ;;
7258
7259 netbsd*)
7260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7261 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7262 wlarc=
7263 else
7264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7266 fi
7267 ;;
7268
7269 solaris*)
7270 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7271 ld_shlibs=no
7272 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007273
7274*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7275*** create shared libraries on Solaris systems. Therefore, libtool
7276*** is disabling shared libraries support. We urge you to upgrade GNU
7277*** binutils to release 2.9.1 or newer. Another option is to modify
7278*** your PATH or compiler configuration so that the native linker is
7279*** used, and then restart.
7280
7281EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007282 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007285 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007286 ld_shlibs=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007287 fi
7288 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007289
7290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7291 case `$LD -v 2>&1` in
7292 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7293 ld_shlibs=no
7294 cat <<_LT_EOF 1>&2
7295
7296*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7297*** reliably create shared libraries on SCO systems. Therefore, libtool
7298*** is disabling shared libraries support. We urge you to upgrade GNU
7299*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7300*** your PATH or compiler configuration so that the native linker is
7301*** used, and then restart.
7302
7303_LT_EOF
7304 ;;
7305 *)
7306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7307 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7310 else
7311 ld_shlibs=no
7312 fi
7313 ;;
7314 esac
7315 ;;
7316
7317 sunos4*)
7318 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7319 wlarc=
7320 hardcode_direct=yes
7321 hardcode_shlibpath_var=no
7322 ;;
7323
7324 *)
7325 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7328 else
7329 ld_shlibs=no
7330 fi
7331 ;;
7332 esac
7333
7334 if test "$ld_shlibs" = no; then
7335 runpath_var=
7336 hardcode_libdir_flag_spec=
7337 export_dynamic_flag_spec=
7338 whole_archive_flag_spec=
7339 fi
7340 else
7341 # PORTME fill in a description of your system's linker (not GNU ld)
7342 case $host_os in
7343 aix3*)
7344 allow_undefined_flag=unsupported
7345 always_export_symbols=yes
7346 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'
7347 # Note: this linker hardcodes the directories in LIBPATH if there
7348 # are no directories specified by -L.
7349 hardcode_minus_L=yes
7350 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7351 # Neither direct hardcoding nor static linking is supported with a
7352 # broken collect2.
7353 hardcode_direct=unsupported
7354 fi
7355 ;;
7356
7357 aix4* | aix5*)
7358 if test "$host_cpu" = ia64; then
7359 # On IA64, the linker does run time linking by default, so we don't
7360 # have to do anything special.
7361 aix_use_runtimelinking=no
7362 exp_sym_flag='-Bexport'
7363 no_entry_flag=""
7364 else
7365 # If we're using GNU nm, then we don't want the "-C" option.
7366 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7367 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7368 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'
7369 else
7370 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'
7371 fi
7372 aix_use_runtimelinking=no
7373
7374 # Test if we are trying to use run time linking or normal
7375 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7376 # need to do runtime linking.
7377 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7378 for ld_flag in $LDFLAGS; do
7379 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7380 aix_use_runtimelinking=yes
7381 break
7382 fi
7383 done
7384 ;;
7385 esac
7386
7387 exp_sym_flag='-bexport'
7388 no_entry_flag='-bnoentry'
7389 fi
7390
7391 # When large executables or shared objects are built, AIX ld can
7392 # have problems creating the table of contents. If linking a library
7393 # or program results in "error TOC overflow" add -mminimal-toc to
7394 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7395 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7396
7397 archive_cmds=''
7398 hardcode_direct=yes
7399 hardcode_libdir_separator=':'
7400 link_all_deplibs=yes
7401
7402 if test "$GCC" = yes; then
7403 case $host_os in aix4.[012]|aix4.[012].*)
7404 # We only want to do this on AIX 4.2 and lower, the check
7405 # below for broken collect2 doesn't work under 4.3+
7406 collect2name=`${CC} -print-prog-name=collect2`
7407 if test -f "$collect2name" && \
7408 strings "$collect2name" | grep resolve_lib_name >/dev/null
7409 then
7410 # We have reworked collect2
7411 hardcode_direct=yes
7412 else
7413 # We have old collect2
7414 hardcode_direct=unsupported
7415 # It fails to find uninstalled libraries when the uninstalled
7416 # path is not listed in the libpath. Setting hardcode_minus_L
7417 # to unsupported forces relinking
7418 hardcode_minus_L=yes
7419 hardcode_libdir_flag_spec='-L$libdir'
7420 hardcode_libdir_separator=
7421 fi
7422 ;;
7423 esac
7424 shared_flag='-shared'
7425 if test "$aix_use_runtimelinking" = yes; then
7426 shared_flag="$shared_flag "'${wl}-G'
7427 fi
7428 else
7429 # not using gcc
7430 if test "$host_cpu" = ia64; then
7431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7432 # chokes on -Wl,-G. The following line is correct:
7433 shared_flag='-G'
7434 else
7435 if test "$aix_use_runtimelinking" = yes; then
7436 shared_flag='${wl}-G'
7437 else
7438 shared_flag='${wl}-bM:SRE'
7439 fi
7440 fi
7441 fi
7442
7443 # It seems that -bexpall does not export symbols beginning with
7444 # underscore (_), so it is better to generate a list of symbols to export.
7445 always_export_symbols=yes
7446 if test "$aix_use_runtimelinking" = yes; then
7447 # Warning - without using the other runtime loading flags (-brtl),
7448 # -berok will link without error, but may produce a broken library.
7449 allow_undefined_flag='-berok'
7450 # Determine the default libpath from the value encoded in an empty executable.
7451 cat >conftest.$ac_ext <<_ACEOF
7452/* confdefs.h. */
7453_ACEOF
7454cat confdefs.h >>conftest.$ac_ext
7455cat >>conftest.$ac_ext <<_ACEOF
7456/* end confdefs.h. */
7457
7458int
7459main ()
7460{
7461
7462 ;
7463 return 0;
7464}
7465_ACEOF
7466rm -f conftest.$ac_objext conftest$ac_exeext
7467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468 (eval $ac_link) 2>conftest.er1
7469 ac_status=$?
7470 grep -v '^ *+' conftest.er1 >conftest.err
7471 rm -f conftest.er1
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try='test -z "$ac_c_werror_flag"
7476 || test ! -s conftest.err'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try='test -s conftest$ac_exeext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488
7489aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7490}'`
7491# Check for a 64-bit object if we didn't find anything.
7492if 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; }
7493}'`; fi
7494else
7495 echo "$as_me: failed program was:" >&5
7496sed 's/^/| /' conftest.$ac_ext >&5
7497
7498fi
7499rm -f conftest.err conftest.$ac_objext \
7500 conftest$ac_exeext conftest.$ac_ext
7501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7502
7503 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7504 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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"
7505 else
7506 if test "$host_cpu" = ia64; then
7507 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7508 allow_undefined_flag="-z nodefs"
7509 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7510 else
7511 # Determine the default libpath from the value encoded in an empty executable.
7512 cat >conftest.$ac_ext <<_ACEOF
7513/* confdefs.h. */
7514_ACEOF
7515cat confdefs.h >>conftest.$ac_ext
7516cat >>conftest.$ac_ext <<_ACEOF
7517/* end confdefs.h. */
7518
7519int
7520main ()
7521{
7522
7523 ;
7524 return 0;
7525}
7526_ACEOF
7527rm -f conftest.$ac_objext conftest$ac_exeext
7528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7529 (eval $ac_link) 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -z "$ac_c_werror_flag"
7537 || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try='test -s conftest$ac_exeext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 (eval $ac_try) 2>&5
7546 ac_status=$?
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549
7550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7551}'`
7552# Check for a 64-bit object if we didn't find anything.
7553if 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; }
7554}'`; fi
7555else
7556 echo "$as_me: failed program was:" >&5
7557sed 's/^/| /' conftest.$ac_ext >&5
7558
7559fi
7560rm -f conftest.err conftest.$ac_objext \
7561 conftest$ac_exeext conftest.$ac_ext
7562if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7563
7564 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7565 # Warning - without using the other run time loading flags,
7566 # -berok will link without error, but may produce a broken library.
7567 no_undefined_flag=' ${wl}-bernotok'
7568 allow_undefined_flag=' ${wl}-berok'
7569 # Exported symbols can be pulled into shared objects from archives
7570 whole_archive_flag_spec='$convenience'
7571 archive_cmds_need_lc=yes
7572 # This is similar to how AIX traditionally builds its shared libraries.
7573 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7574 fi
7575 fi
7576 ;;
7577
7578 amigaos*)
7579 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)'
7580 hardcode_libdir_flag_spec='-L$libdir'
7581 hardcode_minus_L=yes
7582 # see comment about different semantics on the GNU ld section
7583 ld_shlibs=no
7584 ;;
7585
7586 bsdi[45]*)
7587 export_dynamic_flag_spec=-rdynamic
7588 ;;
7589
7590 cygwin* | mingw* | pw32*)
7591 # When not using gcc, we currently assume that we are using
7592 # Microsoft Visual C++.
7593 # hardcode_libdir_flag_spec is actually meaningless, as there is
7594 # no search path for DLLs.
7595 hardcode_libdir_flag_spec=' '
7596 allow_undefined_flag=unsupported
7597 # Tell ltmain to make .lib files, not .a files.
7598 libext=lib
7599 # Tell ltmain to make .dll files, not .so files.
7600 shrext_cmds=".dll"
7601 # FIXME: Setting linknames here is a bad hack.
7602 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7603 # The linker will automatically build a .lib file if we build a DLL.
7604 old_archive_From_new_cmds='true'
7605 # FIXME: Should let the user specify the lib program.
7606 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7607 fix_srcfile_path='`cygpath -w "$srcfile"`'
7608 enable_shared_with_static_runtimes=yes
7609 ;;
7610
7611 darwin* | rhapsody*)
7612 case $host_os in
7613 rhapsody* | darwin1.[012])
7614 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7615 ;;
7616 *) # Darwin 1.3 on
7617 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7618 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7619 else
7620 case ${MACOSX_DEPLOYMENT_TARGET} in
7621 10.[012])
7622 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7623 ;;
7624 10.*)
7625 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7626 ;;
7627 esac
7628 fi
7629 ;;
7630 esac
7631 archive_cmds_need_lc=no
7632 hardcode_direct=no
7633 hardcode_automatic=yes
7634 hardcode_shlibpath_var=unsupported
7635 whole_archive_flag_spec=''
7636 link_all_deplibs=yes
7637 if test "$GCC" = yes ; then
7638 output_verbose_link_cmd='echo'
7639 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7640 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7641 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7642 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7643 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7644 else
7645 case $cc_basename in
7646 xlc*)
7647 output_verbose_link_cmd='echo'
7648 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7649 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7650 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7651 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7652 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7653 ;;
7654 *)
7655 ld_shlibs=no
7656 ;;
7657 esac
7658 fi
7659 ;;
7660
7661 dgux*)
7662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7663 hardcode_libdir_flag_spec='-L$libdir'
7664 hardcode_shlibpath_var=no
7665 ;;
7666
7667 freebsd1*)
7668 ld_shlibs=no
7669 ;;
7670
7671 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7672 # support. Future versions do this automatically, but an explicit c++rt0.o
7673 # does not break anything, and helps significantly (at the cost of a little
7674 # extra space).
7675 freebsd2.2*)
7676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7677 hardcode_libdir_flag_spec='-R$libdir'
7678 hardcode_direct=yes
7679 hardcode_shlibpath_var=no
7680 ;;
7681
7682 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7683 freebsd2*)
7684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7685 hardcode_direct=yes
7686 hardcode_minus_L=yes
7687 hardcode_shlibpath_var=no
7688 ;;
7689
7690 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7691 freebsd* | kfreebsd*-gnu | dragonfly*)
7692 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7693 hardcode_libdir_flag_spec='-R$libdir'
7694 hardcode_direct=yes
7695 hardcode_shlibpath_var=no
7696 ;;
7697
7698 hpux9*)
7699 if test "$GCC" = yes; then
7700 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'
7701 else
7702 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'
7703 fi
7704 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7705 hardcode_libdir_separator=:
7706 hardcode_direct=yes
7707
7708 # hardcode_minus_L: Not really in the search PATH,
7709 # but as the default location of the library.
7710 hardcode_minus_L=yes
7711 export_dynamic_flag_spec='${wl}-E'
7712 ;;
7713
7714 hpux10*)
7715 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7716 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7717 else
7718 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7719 fi
7720 if test "$with_gnu_ld" = no; then
7721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7722 hardcode_libdir_separator=:
7723
7724 hardcode_direct=yes
7725 export_dynamic_flag_spec='${wl}-E'
7726
7727 # hardcode_minus_L: Not really in the search PATH,
7728 # but as the default location of the library.
7729 hardcode_minus_L=yes
7730 fi
7731 ;;
7732
7733 hpux11*)
7734 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7735 case $host_cpu in
7736 hppa*64*)
7737 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7738 ;;
7739 ia64*)
7740 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7741 ;;
7742 *)
7743 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7744 ;;
7745 esac
7746 else
7747 case $host_cpu in
7748 hppa*64*)
7749 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7750 ;;
7751 ia64*)
7752 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7753 ;;
7754 *)
7755 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7756 ;;
7757 esac
7758 fi
7759 if test "$with_gnu_ld" = no; then
7760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7761 hardcode_libdir_separator=:
7762
7763 case $host_cpu in
7764 hppa*64*|ia64*)
7765 hardcode_libdir_flag_spec_ld='+b $libdir'
7766 hardcode_direct=no
7767 hardcode_shlibpath_var=no
7768 ;;
7769 *)
7770 hardcode_direct=yes
7771 export_dynamic_flag_spec='${wl}-E'
7772
7773 # hardcode_minus_L: Not really in the search PATH,
7774 # but as the default location of the library.
7775 hardcode_minus_L=yes
7776 ;;
7777 esac
7778 fi
7779 ;;
7780
7781 irix5* | irix6* | nonstopux*)
7782 if test "$GCC" = yes; then
7783 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'
7784 else
7785 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'
7786 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7787 fi
7788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7789 hardcode_libdir_separator=:
7790 link_all_deplibs=yes
7791 ;;
7792
7793 netbsd*)
7794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7796 else
7797 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7798 fi
7799 hardcode_libdir_flag_spec='-R$libdir'
7800 hardcode_direct=yes
7801 hardcode_shlibpath_var=no
7802 ;;
7803
7804 newsos6)
7805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7806 hardcode_direct=yes
7807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7808 hardcode_libdir_separator=:
7809 hardcode_shlibpath_var=no
7810 ;;
7811
7812 openbsd*)
7813 hardcode_direct=yes
7814 hardcode_shlibpath_var=no
7815 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7816 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7817 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7818 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7819 export_dynamic_flag_spec='${wl}-E'
7820 else
7821 case $host_os in
7822 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7824 hardcode_libdir_flag_spec='-R$libdir'
7825 ;;
7826 *)
7827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7829 ;;
7830 esac
7831 fi
7832 ;;
7833
7834 os2*)
7835 hardcode_libdir_flag_spec='-L$libdir'
7836 hardcode_minus_L=yes
7837 allow_undefined_flag=unsupported
7838 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'
7839 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7840 ;;
7841
7842 osf3*)
7843 if test "$GCC" = yes; then
7844 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7845 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'
7846 else
7847 allow_undefined_flag=' -expect_unresolved \*'
7848 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'
7849 fi
7850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7851 hardcode_libdir_separator=:
7852 ;;
7853
7854 osf4* | osf5*) # as osf3* with the addition of -msym flag
7855 if test "$GCC" = yes; then
7856 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7857 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'
7858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7859 else
7860 allow_undefined_flag=' -expect_unresolved \*'
7861 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'
7862 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7863 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7864
7865 # Both c and cxx compiler support -rpath directly
7866 hardcode_libdir_flag_spec='-rpath $libdir'
7867 fi
7868 hardcode_libdir_separator=:
7869 ;;
7870
7871 solaris*)
7872 no_undefined_flag=' -z text'
7873 if test "$GCC" = yes; then
7874 wlarc='${wl}'
7875 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7876 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7877 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7878 else
7879 wlarc=''
7880 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7881 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7883 fi
7884 hardcode_libdir_flag_spec='-R$libdir'
7885 hardcode_shlibpath_var=no
7886 case $host_os in
7887 solaris2.[0-5] | solaris2.[0-5].*) ;;
7888 *)
7889 # The compiler driver will combine linker options so we
7890 # cannot just pass the convience library names through
7891 # without $wl, iff we do not link with $LD.
7892 # Luckily, gcc supports the same syntax we need for Sun Studio.
7893 # Supported since Solaris 2.6 (maybe 2.5.1?)
7894 case $wlarc in
7895 '')
7896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7897 *)
7898 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7899 esac ;;
7900 esac
7901 link_all_deplibs=yes
7902 ;;
7903
7904 sunos4*)
7905 if test "x$host_vendor" = xsequent; then
7906 # Use $CC to link under sequent, because it throws in some extra .o
7907 # files that make .init and .fini sections work.
7908 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7909 else
7910 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7911 fi
7912 hardcode_libdir_flag_spec='-L$libdir'
7913 hardcode_direct=yes
7914 hardcode_minus_L=yes
7915 hardcode_shlibpath_var=no
7916 ;;
7917
7918 sysv4)
7919 case $host_vendor in
7920 sni)
7921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7922 hardcode_direct=yes # is this really true???
7923 ;;
7924 siemens)
7925 ## LD is ld it makes a PLAMLIB
7926 ## CC just makes a GrossModule.
7927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7928 reload_cmds='$CC -r -o $output$reload_objs'
7929 hardcode_direct=no
7930 ;;
7931 motorola)
7932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7933 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7934 ;;
7935 esac
7936 runpath_var='LD_RUN_PATH'
7937 hardcode_shlibpath_var=no
7938 ;;
7939
7940 sysv4.3*)
7941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7942 hardcode_shlibpath_var=no
7943 export_dynamic_flag_spec='-Bexport'
7944 ;;
7945
7946 sysv4*MP*)
7947 if test -d /usr/nec; then
7948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7949 hardcode_shlibpath_var=no
7950 runpath_var=LD_RUN_PATH
7951 hardcode_runpath_var=yes
7952 ld_shlibs=yes
7953 fi
7954 ;;
7955
7956 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7957 no_undefined_flag='${wl}-z,text'
7958 archive_cmds_need_lc=no
7959 hardcode_shlibpath_var=no
7960 runpath_var='LD_RUN_PATH'
7961
7962 if test "$GCC" = yes; then
7963 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7965 else
7966 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7968 fi
7969 ;;
7970
7971 sysv5* | sco3.2v5* | sco5v6*)
7972 # Note: We can NOT use -z defs as we might desire, because we do not
7973 # link with -lc, and that would cause any symbols used from libc to
7974 # always be unresolved, which means just about no library would
7975 # ever link correctly. If we're not using GNU ld we use -z text
7976 # though, which does catch some bad symbols but isn't as heavy-handed
7977 # as -z defs.
7978 no_undefined_flag='${wl}-z,text'
7979 allow_undefined_flag='${wl}-z,nodefs'
7980 archive_cmds_need_lc=no
7981 hardcode_shlibpath_var=no
7982 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7983 hardcode_libdir_separator=':'
7984 link_all_deplibs=yes
7985 export_dynamic_flag_spec='${wl}-Bexport'
7986 runpath_var='LD_RUN_PATH'
7987
7988 if test "$GCC" = yes; then
7989 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7990 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7991 else
7992 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7993 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7994 fi
7995 ;;
7996
7997 uts4*)
7998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7999 hardcode_libdir_flag_spec='-L$libdir'
8000 hardcode_shlibpath_var=no
8001 ;;
8002
8003 *)
8004 ld_shlibs=no
8005 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008006 esac
8007 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008008
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008009echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8010echo "${ECHO_T}$ld_shlibs" >&6
8011test "$ld_shlibs" = no && can_build_shared=no
8012
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008013#
8014# Do we need to explicitly link libc?
8015#
8016case "x$archive_cmds_need_lc" in
8017x|xyes)
8018 # Assume -lc should be added
8019 archive_cmds_need_lc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008020
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008021 if test "$enable_shared" = yes && test "$GCC" = yes; then
8022 case $archive_cmds in
8023 *'~'*)
8024 # FIXME: we may have to deal with multi-command sequences.
8025 ;;
8026 '$CC '*)
8027 # Test whether the compiler implicitly links with -lc since on some
8028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8029 # to ld, don't add -lc before -lgcc.
8030 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8031echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8032 $rm conftest*
8033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8034
8035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8036 (eval $ac_compile) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } 2>conftest.err; then
8040 soname=conftest
8041 lib=conftest
8042 libobjs=conftest.$ac_objext
8043 deplibs=
8044 wl=$lt_prog_compiler_wl
8045 pic_flag=$lt_prog_compiler_pic
8046 compiler_flags=-v
8047 linker_flags=-v
8048 verstring=
8049 output_objdir=.
8050 libname=conftest
8051 lt_save_allow_undefined_flag=$allow_undefined_flag
8052 allow_undefined_flag=
8053 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8054 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }
8058 then
8059 archive_cmds_need_lc=no
8060 else
8061 archive_cmds_need_lc=yes
8062 fi
8063 allow_undefined_flag=$lt_save_allow_undefined_flag
8064 else
8065 cat conftest.err 1>&5
8066 fi
8067 $rm conftest*
8068 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8069echo "${ECHO_T}$archive_cmds_need_lc" >&6
8070 ;;
8071 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008072 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008073 ;;
8074esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008075
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008076echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8077echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8078library_names_spec=
8079libname_spec='lib$name'
8080soname_spec=
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008081shrext_cmds=".so"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008082postinstall_cmds=
8083postuninstall_cmds=
8084finish_cmds=
8085finish_eval=
8086shlibpath_var=
8087shlibpath_overrides_runpath=unknown
8088version_type=none
8089dynamic_linker="$host_os ld.so"
8090sys_lib_dlsearch_path_spec="/lib /usr/lib"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008091if test "$GCC" = yes; then
8092 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8093 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8094 # if the path contains ";" then we assume it to be the separator
8095 # otherwise default to the standard path separator (i.e. ":") - it is
8096 # assumed that no part of a normal pathname contains ";" but that should
8097 # okay in the real world where ";" in dirpaths is itself problematic.
8098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8099 else
8100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8101 fi
8102else
8103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8104fi
8105need_lib_prefix=unknown
8106hardcode_into_libs=no
8107
8108# when you set need_version to no, make sure it does not cause -set_version
8109# flags to be left without arguments
8110need_version=unknown
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008111
8112case $host_os in
8113aix3*)
8114 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008116 shlibpath_var=LIBPATH
8117
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008118 # AIX 3 has no versioning support, so we append a major version to the name.
8119 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008120 ;;
8121
8122aix4* | aix5*)
8123 version_type=linux
8124 need_lib_prefix=no
8125 need_version=no
8126 hardcode_into_libs=yes
8127 if test "$host_cpu" = ia64; then
8128 # AIX 5 supports IA64
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008130 shlibpath_var=LD_LIBRARY_PATH
8131 else
8132 # With GCC up to 2.95.x, collect2 would create an import file
8133 # for dependence libraries. The import file would start with
8134 # the line `#! .'. This would cause the generated library to
8135 # depend on `.', always an invalid library. This was fixed in
8136 # development snapshots of GCC prior to 3.0.
8137 case $host_os in
8138 aix4 | aix4.[01] | aix4.[01].*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8140 echo ' yes '
8141 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8142 :
8143 else
8144 can_build_shared=no
8145 fi
8146 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008147 esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8149 # soname into executable. Probably we can add versioning support to
8150 # collect2, so additional links can be useful in future.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008151 if test "$aix_use_runtimelinking" = yes; then
8152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8153 # instead of lib<name>.a to let people know that these are not
8154 # typical AIX shared libraries.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008156 else
8157 # We preserve .a as extension for shared libraries through AIX4.2
8158 # and later when we are not doing run time linking.
8159 library_names_spec='${libname}${release}.a $libname.a'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008160 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008161 fi
8162 shlibpath_var=LIBPATH
8163 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008164 ;;
8165
8166amigaos*)
8167 library_names_spec='$libname.ixlibrary $libname.a'
8168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008169 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'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008170 ;;
8171
8172beos*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008173 library_names_spec='${libname}${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008174 dynamic_linker="$host_os ld.so"
8175 shlibpath_var=LIBRARY_PATH
8176 ;;
8177
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008178bsdi[45]*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008179 version_type=linux
8180 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8182 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8184 shlibpath_var=LD_LIBRARY_PATH
8185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008187 # the default ld.so.conf also contains /usr/contrib/lib and
8188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8189 # libtool to hard-code these into programs
8190 ;;
8191
8192cygwin* | mingw* | pw32*)
8193 version_type=windows
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008194 shrext_cmds=".dll"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008195 need_version=no
8196 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008197
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008198 case $GCC,$host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008199 yes,cygwin* | yes,mingw* | yes,pw32*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008200 library_names_spec='$libname.dll.a'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8202 postinstall_cmds='base_file=`basename \${file}`~
8203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008204 dldir=$destdir/`dirname \$dlpath`~
8205 test -d \$dldir || mkdir -p \$dldir~
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008206 $install_prog $dir/$dlname \$dldir/$dlname~
8207 chmod a+x \$dldir/$dlname'
8208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008209 dlpath=$dir/\$dldll~
8210 $rm \$dlpath'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008211 shlibpath_overrides_runpath=yes
8212
8213 case $host_os in
8214 cygwin*)
8215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8217 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8218 ;;
8219 mingw*)
8220 # MinGW DLLs use traditional 'lib' prefix
8221 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8222 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8223 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8224 # It is most probably a Windows format PATH printed by
8225 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8226 # path with ; separators, and with drive letters. We can handle the
8227 # drive letters (cygwin fileutils understands them), so leave them,
8228 # especially as we might pass files found there to a mingw objdump,
8229 # which wouldn't understand a cygwinified path. Ahh.
8230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8231 else
8232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8233 fi
8234 ;;
8235 pw32*)
8236 # pw32 DLLs use 'pw' prefix rather than 'lib'
8237 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8238 ;;
8239 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008240 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008241
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06008242 linux*)
8243 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245 supports_anon_versioning=no
8246 case `$LD -v 2>/dev/null` in
8247 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8248 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8249 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8250 *\ 2.11.*) ;; # other 2.11 versions
8251 *) supports_anon_versioning=yes ;;
8252 esac
8253 if test $supports_anon_versioning = yes; then
8254 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8255cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8256$echo "local: *; };" >> $output_objdir/$libname.ver~
8257 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8258 else
8259 $archive_expsym_cmds="$archive_cmds"
8260 fi
8261 else
8262 ld_shlibs=no
8263 fi
8264 ;;
8265
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008266 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008267 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008268 ;;
8269 esac
8270 dynamic_linker='Win32 ld.exe'
8271 # FIXME: first we should search . and the directory the executable is in
8272 shlibpath_var=PATH
8273 ;;
8274
8275darwin* | rhapsody*)
8276 dynamic_linker="$host_os dyld"
8277 version_type=darwin
8278 need_lib_prefix=no
8279 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008280 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8281 soname_spec='${libname}${release}${major}$shared_ext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008282 shlibpath_overrides_runpath=yes
8283 shlibpath_var=DYLD_LIBRARY_PATH
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8285 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8286 if test "$GCC" = yes; then
8287 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8288 else
8289 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8290 fi
8291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8292 ;;
8293
8294dgux*)
8295 version_type=linux
8296 need_lib_prefix=no
8297 need_version=no
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8299 soname_spec='${libname}${release}${shared_ext}$major'
8300 shlibpath_var=LD_LIBRARY_PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008301 ;;
8302
8303freebsd1*)
8304 dynamic_linker=no
8305 ;;
8306
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008307kfreebsd*-gnu)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008308 version_type=linux
8309 need_lib_prefix=no
8310 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8312 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008313 shlibpath_var=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath=no
8315 hardcode_into_libs=yes
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008316 dynamic_linker='GNU ld.so'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008317 ;;
8318
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008319freebsd* | dragonfly*)
8320 # DragonFly does not have aout. When/if they implement a new
8321 # versioning mechanism, adjust this.
8322 if test -x /usr/bin/objformat; then
8323 objformat=`/usr/bin/objformat`
8324 else
8325 case $host_os in
8326 freebsd[123]*) objformat=aout ;;
8327 *) objformat=elf ;;
8328 esac
8329 fi
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06008330 # Handle Gentoo/FreeBSD as it was Linux
8331 case $host_vendor in
8332 gentoo)
8333 version_type=linux ;;
8334 *)
8335 version_type=freebsd-$objformat ;;
8336 esac
8337
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008338 case $version_type in
8339 freebsd-elf*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008341 need_version=no
8342 need_lib_prefix=no
8343 ;;
8344 freebsd-*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008346 need_version=yes
8347 ;;
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06008348 linux)
8349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8350 soname_spec='${libname}${release}${shared_ext}$major'
8351 need_lib_prefix=no
8352 need_version=no
8353 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008354 esac
8355 shlibpath_var=LD_LIBRARY_PATH
8356 case $host_os in
8357 freebsd2*)
8358 shlibpath_overrides_runpath=yes
8359 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008360 freebsd3.[01]* | freebsdelf3.[01]*)
8361 shlibpath_overrides_runpath=yes
8362 hardcode_into_libs=yes
8363 ;;
8364 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8365 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008366 shlibpath_overrides_runpath=no
8367 hardcode_into_libs=yes
8368 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008369 freebsd*) # from 4.6 on
8370 shlibpath_overrides_runpath=yes
8371 hardcode_into_libs=yes
8372 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008373 esac
8374 ;;
8375
8376gnu*)
8377 version_type=linux
8378 need_lib_prefix=no
8379 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8381 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008382 shlibpath_var=LD_LIBRARY_PATH
8383 hardcode_into_libs=yes
8384 ;;
8385
8386hpux9* | hpux10* | hpux11*)
8387 # Give a soname corresponding to the major version so that dld.sl refuses to
8388 # link against other versions.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008389 version_type=sunos
8390 need_lib_prefix=no
8391 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008392 case $host_cpu in
8393 ia64*)
8394 shrext_cmds='.so'
8395 hardcode_into_libs=yes
8396 dynamic_linker="$host_os dld.so"
8397 shlibpath_var=LD_LIBRARY_PATH
8398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8400 soname_spec='${libname}${release}${shared_ext}$major'
8401 if test "X$HPUX_IA64_MODE" = X32; then
8402 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8403 else
8404 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8405 fi
8406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8407 ;;
8408 hppa*64*)
8409 shrext_cmds='.sl'
8410 hardcode_into_libs=yes
8411 dynamic_linker="$host_os dld.sl"
8412 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8415 soname_spec='${libname}${release}${shared_ext}$major'
8416 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8418 ;;
8419 *)
8420 shrext_cmds='.sl'
8421 dynamic_linker="$host_os dld.sl"
8422 shlibpath_var=SHLIB_PATH
8423 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 ;;
8427 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008428 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8429 postinstall_cmds='chmod 555 $lib'
8430 ;;
8431
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008432interix3*)
8433 version_type=linux
8434 need_lib_prefix=no
8435 need_version=no
8436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8437 soname_spec='${libname}${release}${shared_ext}$major'
8438 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8439 shlibpath_var=LD_LIBRARY_PATH
8440 shlibpath_overrides_runpath=no
8441 hardcode_into_libs=yes
8442 ;;
8443
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008444irix5* | irix6* | nonstopux*)
8445 case $host_os in
8446 nonstopux*) version_type=nonstopux ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008447 *)
8448 if test "$lt_cv_prog_gnu_ld" = yes; then
8449 version_type=linux
8450 else
8451 version_type=irix
8452 fi ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008453 esac
8454 need_lib_prefix=no
8455 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008456 soname_spec='${libname}${release}${shared_ext}$major'
8457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008458 case $host_os in
8459 irix5* | nonstopux*)
8460 libsuff= shlibsuff=
8461 ;;
8462 *)
8463 case $LD in # libtool.m4 will add one of these switches to LD
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008464 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8465 libsuff= shlibsuff= libmagic=32-bit;;
8466 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8467 libsuff=32 shlibsuff=N32 libmagic=N32;;
8468 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8469 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008470 *) libsuff= shlibsuff= libmagic=never-match;;
8471 esac
8472 ;;
8473 esac
8474 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8475 shlibpath_overrides_runpath=no
8476 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8477 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008478 hardcode_into_libs=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008479 ;;
8480
8481# No shared lib support for Linux oldld, aout, or coff.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008482linux*oldld* | linux*aout* | linux*coff*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008483 dynamic_linker=no
8484 ;;
8485
8486# This must be Linux ELF.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008487linux*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008488 version_type=linux
8489 need_lib_prefix=no
8490 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8492 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8494 shlibpath_var=LD_LIBRARY_PATH
8495 shlibpath_overrides_runpath=no
8496 # This implies no fast_install, which is unacceptable.
8497 # Some rework will be needed to allow for fast_install
8498 # before this can be enabled.
8499 hardcode_into_libs=yes
8500
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008501 # Append ld.so.conf contents to the search path
8502 if test -f /etc/ld.so.conf; then
8503 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8504 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8505 fi
8506
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008507 # We used to test for /lib/ld.so.1 and disable shared libraries on
8508 # powerpc, because MkLinux only supported shared libraries with the
8509 # GNU dynamic linker. Since this was broken with cross compilers,
8510 # most powerpc-linux boxes support dynamic linking these days and
8511 # people can always --disable-shared, the test was removed, and we
8512 # assume the GNU/Linux dynamic linker is in use.
8513 dynamic_linker='GNU/Linux ld.so'
8514 ;;
8515
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008516knetbsd*-gnu)
8517 version_type=linux
8518 need_lib_prefix=no
8519 need_version=no
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8521 soname_spec='${libname}${release}${shared_ext}$major'
8522 shlibpath_var=LD_LIBRARY_PATH
8523 shlibpath_overrides_runpath=no
8524 hardcode_into_libs=yes
8525 dynamic_linker='GNU ld.so'
8526 ;;
8527
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008528netbsd*)
8529 version_type=sunos
8530 need_lib_prefix=no
8531 need_version=no
8532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8535 dynamic_linker='NetBSD (a.out) ld.so'
8536 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8538 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008539 dynamic_linker='NetBSD ld.elf_so'
8540 fi
8541 shlibpath_var=LD_LIBRARY_PATH
8542 shlibpath_overrides_runpath=yes
8543 hardcode_into_libs=yes
8544 ;;
8545
8546newsos6)
8547 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8549 shlibpath_var=LD_LIBRARY_PATH
8550 shlibpath_overrides_runpath=yes
8551 ;;
8552
8553nto-qnx*)
8554 version_type=linux
8555 need_lib_prefix=no
8556 need_version=no
8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008559 shlibpath_var=LD_LIBRARY_PATH
8560 shlibpath_overrides_runpath=yes
8561 ;;
8562
8563openbsd*)
8564 version_type=sunos
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008565 sys_lib_dlsearch_path_spec="/usr/lib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008566 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008567 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8568 case $host_os in
8569 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8570 *) need_version=no ;;
8571 esac
8572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8574 shlibpath_var=LD_LIBRARY_PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008576 case $host_os in
8577 openbsd2.[89] | openbsd2.[89].*)
8578 shlibpath_overrides_runpath=no
8579 ;;
8580 *)
8581 shlibpath_overrides_runpath=yes
8582 ;;
8583 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008584 else
8585 shlibpath_overrides_runpath=yes
8586 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008587 ;;
8588
8589os2*)
8590 libname_spec='$name'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008591 shrext_cmds=".dll"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008592 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008593 library_names_spec='$libname${shared_ext} $libname.a'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008594 dynamic_linker='OS/2 ld.exe'
8595 shlibpath_var=LIBPATH
8596 ;;
8597
8598osf3* | osf4* | osf5*)
8599 version_type=osf
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008600 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008601 need_version=no
8602 soname_spec='${libname}${release}${shared_ext}$major'
8603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008604 shlibpath_var=LD_LIBRARY_PATH
8605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008607 ;;
8608
8609solaris*)
8610 version_type=linux
8611 need_lib_prefix=no
8612 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008615 shlibpath_var=LD_LIBRARY_PATH
8616 shlibpath_overrides_runpath=yes
8617 hardcode_into_libs=yes
8618 # ldd complains unless libraries are executable
8619 postinstall_cmds='chmod +x $lib'
8620 ;;
8621
8622sunos4*)
8623 version_type=sunos
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008625 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8626 shlibpath_var=LD_LIBRARY_PATH
8627 shlibpath_overrides_runpath=yes
8628 if test "$with_gnu_ld" = yes; then
8629 need_lib_prefix=no
8630 fi
8631 need_version=yes
8632 ;;
8633
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008634sysv4 | sysv4.3*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008635 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8637 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008638 shlibpath_var=LD_LIBRARY_PATH
8639 case $host_vendor in
8640 sni)
8641 shlibpath_overrides_runpath=no
8642 need_lib_prefix=no
8643 export_dynamic_flag_spec='${wl}-Blargedynsym'
8644 runpath_var=LD_RUN_PATH
8645 ;;
8646 siemens)
8647 need_lib_prefix=no
8648 ;;
8649 motorola)
8650 need_lib_prefix=no
8651 need_version=no
8652 shlibpath_overrides_runpath=no
8653 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8654 ;;
8655 esac
8656 ;;
8657
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008658sysv4*MP*)
8659 if test -d /usr/nec ;then
8660 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008661 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8662 soname_spec='$libname${shared_ext}.$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008663 shlibpath_var=LD_LIBRARY_PATH
8664 fi
8665 ;;
8666
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008667sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8668 version_type=freebsd-elf
8669 need_lib_prefix=no
8670 need_version=no
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8673 shlibpath_var=LD_LIBRARY_PATH
8674 hardcode_into_libs=yes
8675 if test "$with_gnu_ld" = yes; then
8676 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8677 shlibpath_overrides_runpath=no
8678 else
8679 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8680 shlibpath_overrides_runpath=yes
8681 case $host_os in
8682 sco3.2v5*)
8683 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8684 ;;
8685 esac
8686 fi
8687 sys_lib_dlsearch_path_spec='/usr/lib'
8688 ;;
8689
8690uts4*)
8691 version_type=linux
8692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8693 soname_spec='${libname}${release}${shared_ext}$major'
8694 shlibpath_var=LD_LIBRARY_PATH
8695 ;;
8696
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008697*)
8698 dynamic_linker=no
8699 ;;
8700esac
8701echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8702echo "${ECHO_T}$dynamic_linker" >&6
8703test "$dynamic_linker" = no && can_build_shared=no
8704
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008705variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8706if test "$GCC" = yes; then
8707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8708fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008709
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008710echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8711echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8712hardcode_action=
8713if test -n "$hardcode_libdir_flag_spec" || \
8714 test -n "$runpath_var" || \
8715 test "X$hardcode_automatic" = "Xyes" ; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008716
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008717 # We can hardcode non-existant directories.
8718 if test "$hardcode_direct" != no &&
8719 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8720 # have to relink, otherwise we might link with an installed library
8721 # when we should be linking with a yet-to-be-installed one
8722 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8723 test "$hardcode_minus_L" != no; then
8724 # Linking always hardcodes the temporary library directory.
8725 hardcode_action=relink
8726 else
8727 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8728 hardcode_action=immediate
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008729 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008730else
8731 # We cannot hardcode anything, or else we can only hardcode existing
8732 # directories.
8733 hardcode_action=unsupported
8734fi
8735echo "$as_me:$LINENO: result: $hardcode_action" >&5
8736echo "${ECHO_T}$hardcode_action" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008737
8738if test "$hardcode_action" = relink; then
8739 # Fast installation is not supported
8740 enable_fast_install=no
8741elif test "$shlibpath_overrides_runpath" = yes ||
8742 test "$enable_shared" = no; then
8743 # Fast installation is not necessary
8744 enable_fast_install=needless
8745fi
8746
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008747striplib=
8748old_striplib=
8749echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8750echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8751if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8752 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8753 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8754 echo "$as_me:$LINENO: result: yes" >&5
8755echo "${ECHO_T}yes" >&6
8756else
8757# FIXME - insert some real tests, host_os isn't really good enough
8758 case $host_os in
8759 darwin*)
8760 if test -n "$STRIP" ; then
8761 striplib="$STRIP -x"
8762 echo "$as_me:$LINENO: result: yes" >&5
8763echo "${ECHO_T}yes" >&6
8764 else
8765 echo "$as_me:$LINENO: result: no" >&5
8766echo "${ECHO_T}no" >&6
8767fi
8768 ;;
8769 *)
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772 ;;
8773 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008774fi
8775
8776if test "x$enable_dlopen" != xyes; then
8777 enable_dlopen=unknown
8778 enable_dlopen_self=unknown
8779 enable_dlopen_self_static=unknown
8780else
8781 lt_cv_dlopen=no
8782 lt_cv_dlopen_libs=
8783
8784 case $host_os in
8785 beos*)
8786 lt_cv_dlopen="load_add_on"
8787 lt_cv_dlopen_libs=
8788 lt_cv_dlopen_self=yes
8789 ;;
8790
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008791 mingw* | pw32*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008792 lt_cv_dlopen="LoadLibrary"
8793 lt_cv_dlopen_libs=
8794 ;;
8795
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008796 cygwin*)
8797 lt_cv_dlopen="dlopen"
8798 lt_cv_dlopen_libs=
8799 ;;
8800
8801 darwin*)
8802 # if libdl is installed we need to link against it
8803 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8804echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8805if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807else
8808 ac_check_lib_save_LIBS=$LIBS
8809LIBS="-ldl $LIBS"
8810cat >conftest.$ac_ext <<_ACEOF
8811/* confdefs.h. */
8812_ACEOF
8813cat confdefs.h >>conftest.$ac_ext
8814cat >>conftest.$ac_ext <<_ACEOF
8815/* end confdefs.h. */
8816
8817/* Override any gcc2 internal prototype to avoid an error. */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821/* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
8823char dlopen ();
8824int
8825main ()
8826{
8827dlopen ();
8828 ;
8829 return 0;
8830}
8831_ACEOF
8832rm -f conftest.$ac_objext conftest$ac_exeext
8833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_lib_dl_dlopen=yes
8855else
8856 echo "$as_me: failed program was:" >&5
8857sed 's/^/| /' conftest.$ac_ext >&5
8858
8859ac_cv_lib_dl_dlopen=no
8860fi
8861rm -f conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863LIBS=$ac_check_lib_save_LIBS
8864fi
8865echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8866echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8867if test $ac_cv_lib_dl_dlopen = yes; then
8868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8869else
8870
8871 lt_cv_dlopen="dyld"
8872 lt_cv_dlopen_libs=
8873 lt_cv_dlopen_self=yes
8874
8875fi
8876
8877 ;;
8878
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008879 *)
8880 echo "$as_me:$LINENO: checking for shl_load" >&5
8881echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8882if test "${ac_cv_func_shl_load+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8884else
8885 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008886/* confdefs.h. */
8887_ACEOF
8888cat confdefs.h >>conftest.$ac_ext
8889cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008891/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8893#define shl_load innocuous_shl_load
8894
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008895/* System header to define __stub macros and hopefully few prototypes,
8896 which can conflict with char shl_load (); below.
8897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8898 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008899
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008900#ifdef __STDC__
8901# include <limits.h>
8902#else
8903# include <assert.h>
8904#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008905
8906#undef shl_load
8907
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008908/* Override any gcc2 internal prototype to avoid an error. */
8909#ifdef __cplusplus
8910extern "C"
8911{
8912#endif
8913/* We use char because int might match the return type of a gcc2
8914 builtin and then its argument prototype would still apply. */
8915char shl_load ();
8916/* The GNU C library defines this for functions which it implements
8917 to always fail with ENOSYS. Some functions are actually named
8918 something starting with __ and the normal name is an alias. */
8919#if defined (__stub_shl_load) || defined (__stub___shl_load)
8920choke me
8921#else
8922char (*f) () = shl_load;
8923#endif
8924#ifdef __cplusplus
8925}
8926#endif
8927
8928int
8929main ()
8930{
8931return f != shl_load;
8932 ;
8933 return 0;
8934}
8935_ACEOF
8936rm -f conftest.$ac_objext conftest$ac_exeext
8937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008938 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008939 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008945 { ac_try='test -z "$ac_c_werror_flag"
8946 || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 ac_cv_func_shl_load=yes
8959else
8960 echo "$as_me: failed program was:" >&5
8961sed 's/^/| /' conftest.$ac_ext >&5
8962
8963ac_cv_func_shl_load=no
8964fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008965rm -f conftest.err conftest.$ac_objext \
8966 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008967fi
8968echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8969echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8970if test $ac_cv_func_shl_load = yes; then
8971 lt_cv_dlopen="shl_load"
8972else
8973 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8974echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8975if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8977else
8978 ac_check_lib_save_LIBS=$LIBS
8979LIBS="-ldld $LIBS"
8980cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008981/* confdefs.h. */
8982_ACEOF
8983cat confdefs.h >>conftest.$ac_ext
8984cat >>conftest.$ac_ext <<_ACEOF
8985/* end confdefs.h. */
8986
8987/* Override any gcc2 internal prototype to avoid an error. */
8988#ifdef __cplusplus
8989extern "C"
8990#endif
8991/* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
8993char shl_load ();
8994int
8995main ()
8996{
8997shl_load ();
8998 ;
8999 return 0;
9000}
9001_ACEOF
9002rm -f conftest.$ac_objext conftest$ac_exeext
9003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009004 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009005 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009011 { ac_try='test -z "$ac_c_werror_flag"
9012 || test ! -s conftest.err'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; } &&
9018 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 ac_cv_lib_dld_shl_load=yes
9025else
9026 echo "$as_me: failed program was:" >&5
9027sed 's/^/| /' conftest.$ac_ext >&5
9028
9029ac_cv_lib_dld_shl_load=no
9030fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009031rm -f conftest.err conftest.$ac_objext \
9032 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009033LIBS=$ac_check_lib_save_LIBS
9034fi
9035echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9036echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9037if test $ac_cv_lib_dld_shl_load = yes; then
9038 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9039else
9040 echo "$as_me:$LINENO: checking for dlopen" >&5
9041echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9042if test "${ac_cv_func_dlopen+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009046/* confdefs.h. */
9047_ACEOF
9048cat confdefs.h >>conftest.$ac_ext
9049cat >>conftest.$ac_ext <<_ACEOF
9050/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009051/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9053#define dlopen innocuous_dlopen
9054
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009055/* System header to define __stub macros and hopefully few prototypes,
9056 which can conflict with char dlopen (); below.
9057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9058 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009059
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009060#ifdef __STDC__
9061# include <limits.h>
9062#else
9063# include <assert.h>
9064#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009065
9066#undef dlopen
9067
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009068/* Override any gcc2 internal prototype to avoid an error. */
9069#ifdef __cplusplus
9070extern "C"
9071{
9072#endif
9073/* We use char because int might match the return type of a gcc2
9074 builtin and then its argument prototype would still apply. */
9075char dlopen ();
9076/* The GNU C library defines this for functions which it implements
9077 to always fail with ENOSYS. Some functions are actually named
9078 something starting with __ and the normal name is an alias. */
9079#if defined (__stub_dlopen) || defined (__stub___dlopen)
9080choke me
9081#else
9082char (*f) () = dlopen;
9083#endif
9084#ifdef __cplusplus
9085}
9086#endif
9087
9088int
9089main ()
9090{
9091return f != dlopen;
9092 ;
9093 return 0;
9094}
9095_ACEOF
9096rm -f conftest.$ac_objext conftest$ac_exeext
9097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009098 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009099 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009105 { ac_try='test -z "$ac_c_werror_flag"
9106 || test ! -s conftest.err'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 (eval $ac_try) 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_func_dlopen=yes
9119else
9120 echo "$as_me: failed program was:" >&5
9121sed 's/^/| /' conftest.$ac_ext >&5
9122
9123ac_cv_func_dlopen=no
9124fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009125rm -f conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009127fi
9128echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9129echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9130if test $ac_cv_func_dlopen = yes; then
9131 lt_cv_dlopen="dlopen"
9132else
9133 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9134echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9135if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137else
9138 ac_check_lib_save_LIBS=$LIBS
9139LIBS="-ldl $LIBS"
9140cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009141/* confdefs.h. */
9142_ACEOF
9143cat confdefs.h >>conftest.$ac_ext
9144cat >>conftest.$ac_ext <<_ACEOF
9145/* end confdefs.h. */
9146
9147/* Override any gcc2 internal prototype to avoid an error. */
9148#ifdef __cplusplus
9149extern "C"
9150#endif
9151/* We use char because int might match the return type of a gcc2
9152 builtin and then its argument prototype would still apply. */
9153char dlopen ();
9154int
9155main ()
9156{
9157dlopen ();
9158 ;
9159 return 0;
9160}
9161_ACEOF
9162rm -f conftest.$ac_objext conftest$ac_exeext
9163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009164 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009165 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009171 { ac_try='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 ac_cv_lib_dl_dlopen=yes
9185else
9186 echo "$as_me: failed program was:" >&5
9187sed 's/^/| /' conftest.$ac_ext >&5
9188
9189ac_cv_lib_dl_dlopen=no
9190fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009191rm -f conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009193LIBS=$ac_check_lib_save_LIBS
9194fi
9195echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9196echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9197if test $ac_cv_lib_dl_dlopen = yes; then
9198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9199else
9200 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9201echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9202if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9204else
9205 ac_check_lib_save_LIBS=$LIBS
9206LIBS="-lsvld $LIBS"
9207cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009208/* confdefs.h. */
9209_ACEOF
9210cat confdefs.h >>conftest.$ac_ext
9211cat >>conftest.$ac_ext <<_ACEOF
9212/* end confdefs.h. */
9213
9214/* Override any gcc2 internal prototype to avoid an error. */
9215#ifdef __cplusplus
9216extern "C"
9217#endif
9218/* We use char because int might match the return type of a gcc2
9219 builtin and then its argument prototype would still apply. */
9220char dlopen ();
9221int
9222main ()
9223{
9224dlopen ();
9225 ;
9226 return 0;
9227}
9228_ACEOF
9229rm -f conftest.$ac_objext conftest$ac_exeext
9230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009231 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009232 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009238 { ac_try='test -z "$ac_c_werror_flag"
9239 || test ! -s conftest.err'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 (eval $ac_try) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; } &&
9245 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 (eval $ac_try) 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9251 ac_cv_lib_svld_dlopen=yes
9252else
9253 echo "$as_me: failed program was:" >&5
9254sed 's/^/| /' conftest.$ac_ext >&5
9255
9256ac_cv_lib_svld_dlopen=no
9257fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009258rm -f conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009260LIBS=$ac_check_lib_save_LIBS
9261fi
9262echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9263echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9264if test $ac_cv_lib_svld_dlopen = yes; then
9265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9266else
9267 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9268echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9269if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271else
9272 ac_check_lib_save_LIBS=$LIBS
9273LIBS="-ldld $LIBS"
9274cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009275/* confdefs.h. */
9276_ACEOF
9277cat confdefs.h >>conftest.$ac_ext
9278cat >>conftest.$ac_ext <<_ACEOF
9279/* end confdefs.h. */
9280
9281/* Override any gcc2 internal prototype to avoid an error. */
9282#ifdef __cplusplus
9283extern "C"
9284#endif
9285/* We use char because int might match the return type of a gcc2
9286 builtin and then its argument prototype would still apply. */
9287char dld_link ();
9288int
9289main ()
9290{
9291dld_link ();
9292 ;
9293 return 0;
9294}
9295_ACEOF
9296rm -f conftest.$ac_objext conftest$ac_exeext
9297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009298 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009299 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009305 { ac_try='test -z "$ac_c_werror_flag"
9306 || test ! -s conftest.err'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 (eval $ac_try) 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; } &&
9312 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; }; then
9318 ac_cv_lib_dld_dld_link=yes
9319else
9320 echo "$as_me: failed program was:" >&5
9321sed 's/^/| /' conftest.$ac_ext >&5
9322
9323ac_cv_lib_dld_dld_link=no
9324fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009325rm -f conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009327LIBS=$ac_check_lib_save_LIBS
9328fi
9329echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9330echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9331if test $ac_cv_lib_dld_dld_link = yes; then
9332 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9333fi
9334
9335
9336fi
9337
9338
9339fi
9340
9341
9342fi
9343
9344
9345fi
9346
9347
9348fi
9349
9350 ;;
9351 esac
9352
9353 if test "x$lt_cv_dlopen" != xno; then
9354 enable_dlopen=yes
9355 else
9356 enable_dlopen=no
9357 fi
9358
9359 case $lt_cv_dlopen in
9360 dlopen)
9361 save_CPPFLAGS="$CPPFLAGS"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009362 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009363
9364 save_LDFLAGS="$LDFLAGS"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009365 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009366
9367 save_LIBS="$LIBS"
9368 LIBS="$lt_cv_dlopen_libs $LIBS"
9369
9370 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9371echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9372if test "${lt_cv_dlopen_self+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374else
9375 if test "$cross_compiling" = yes; then :
9376 lt_cv_dlopen_self=cross
9377else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009379 lt_status=$lt_dlunknown
9380 cat > conftest.$ac_ext <<EOF
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06009381#line 9381 "configure"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009382#include "confdefs.h"
9383
9384#if HAVE_DLFCN_H
9385#include <dlfcn.h>
9386#endif
9387
9388#include <stdio.h>
9389
9390#ifdef RTLD_GLOBAL
9391# define LT_DLGLOBAL RTLD_GLOBAL
9392#else
9393# ifdef DL_GLOBAL
9394# define LT_DLGLOBAL DL_GLOBAL
9395# else
9396# define LT_DLGLOBAL 0
9397# endif
9398#endif
9399
9400/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9401 find out it does not work in some platform. */
9402#ifndef LT_DLLAZY_OR_NOW
9403# ifdef RTLD_LAZY
9404# define LT_DLLAZY_OR_NOW RTLD_LAZY
9405# else
9406# ifdef DL_LAZY
9407# define LT_DLLAZY_OR_NOW DL_LAZY
9408# else
9409# ifdef RTLD_NOW
9410# define LT_DLLAZY_OR_NOW RTLD_NOW
9411# else
9412# ifdef DL_NOW
9413# define LT_DLLAZY_OR_NOW DL_NOW
9414# else
9415# define LT_DLLAZY_OR_NOW 0
9416# endif
9417# endif
9418# endif
9419# endif
9420#endif
9421
9422#ifdef __cplusplus
9423extern "C" void exit (int);
9424#endif
9425
9426void fnord() { int i=42;}
9427int main ()
9428{
9429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9430 int status = $lt_dlunknown;
9431
9432 if (self)
9433 {
9434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9435 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9436 /* dlclose (self); */
9437 }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009438 else
9439 puts (dlerror ());
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009440
9441 exit (status);
9442}
9443EOF
9444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445 (eval $ac_link) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009449 (./conftest; exit; ) >&5 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009450 lt_status=$?
9451 case x$lt_status in
9452 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9453 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009454 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009455 esac
9456 else :
9457 # compilation failed
9458 lt_cv_dlopen_self=no
9459 fi
9460fi
9461rm -fr conftest*
9462
9463
9464fi
9465echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9466echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9467
9468 if test "x$lt_cv_dlopen_self" = xyes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009469 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009470 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9471echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9472if test "${lt_cv_dlopen_self_static+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9475 if test "$cross_compiling" = yes; then :
9476 lt_cv_dlopen_self_static=cross
9477else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009479 lt_status=$lt_dlunknown
9480 cat > conftest.$ac_ext <<EOF
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -06009481#line 9481 "configure"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009482#include "confdefs.h"
9483
9484#if HAVE_DLFCN_H
9485#include <dlfcn.h>
9486#endif
9487
9488#include <stdio.h>
9489
9490#ifdef RTLD_GLOBAL
9491# define LT_DLGLOBAL RTLD_GLOBAL
9492#else
9493# ifdef DL_GLOBAL
9494# define LT_DLGLOBAL DL_GLOBAL
9495# else
9496# define LT_DLGLOBAL 0
9497# endif
9498#endif
9499
9500/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9501 find out it does not work in some platform. */
9502#ifndef LT_DLLAZY_OR_NOW
9503# ifdef RTLD_LAZY
9504# define LT_DLLAZY_OR_NOW RTLD_LAZY
9505# else
9506# ifdef DL_LAZY
9507# define LT_DLLAZY_OR_NOW DL_LAZY
9508# else
9509# ifdef RTLD_NOW
9510# define LT_DLLAZY_OR_NOW RTLD_NOW
9511# else
9512# ifdef DL_NOW
9513# define LT_DLLAZY_OR_NOW DL_NOW
9514# else
9515# define LT_DLLAZY_OR_NOW 0
9516# endif
9517# endif
9518# endif
9519# endif
9520#endif
9521
9522#ifdef __cplusplus
9523extern "C" void exit (int);
9524#endif
9525
9526void fnord() { int i=42;}
9527int main ()
9528{
9529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9530 int status = $lt_dlunknown;
9531
9532 if (self)
9533 {
9534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9535 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9536 /* dlclose (self); */
9537 }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009538 else
9539 puts (dlerror ());
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009540
9541 exit (status);
9542}
9543EOF
9544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9545 (eval $ac_link) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009549 (./conftest; exit; ) >&5 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009550 lt_status=$?
9551 case x$lt_status in
9552 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9553 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009554 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009555 esac
9556 else :
9557 # compilation failed
9558 lt_cv_dlopen_self_static=no
9559 fi
9560fi
9561rm -fr conftest*
9562
9563
9564fi
9565echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9566echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9567 fi
9568
9569 CPPFLAGS="$save_CPPFLAGS"
9570 LDFLAGS="$save_LDFLAGS"
9571 LIBS="$save_LIBS"
9572 ;;
9573 esac
9574
9575 case $lt_cv_dlopen_self in
9576 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9577 *) enable_dlopen_self=unknown ;;
9578 esac
9579
9580 case $lt_cv_dlopen_self_static in
9581 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9582 *) enable_dlopen_self_static=unknown ;;
9583 esac
9584fi
9585
9586
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009587# Report which library types will actually be built
9588echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9589echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9590echo "$as_me:$LINENO: result: $can_build_shared" >&5
9591echo "${ECHO_T}$can_build_shared" >&6
9592
9593echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9594echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9595test "$can_build_shared" = "no" && enable_shared=no
9596
9597# On AIX, shared libraries and static libraries use the same namespace, and
9598# are all built from PIC.
9599case $host_os in
9600aix3*)
9601 test "$enable_shared" = yes && enable_static=no
9602 if test -n "$RANLIB"; then
9603 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9604 postinstall_cmds='$RANLIB $lib'
9605 fi
9606 ;;
9607
9608aix4* | aix5*)
9609 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9610 test "$enable_shared" = yes && enable_static=no
9611 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009612 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009613esac
9614echo "$as_me:$LINENO: result: $enable_shared" >&5
9615echo "${ECHO_T}$enable_shared" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009616
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009617echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9618echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9619# Make sure either enable_shared or enable_static is yes.
9620test "$enable_shared" = yes || enable_static=yes
9621echo "$as_me:$LINENO: result: $enable_static" >&5
9622echo "${ECHO_T}$enable_static" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009623
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009624# The else clause should only fire when bootstrapping the
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009625# libtool distribution, otherwise you forgot to ship ltmain.sh
9626# with your package, and you will get complaints that there are
9627# no rules to generate ltmain.sh.
9628if test -f "$ltmain"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009629 # See if we are running on zsh, and set the options which allow our commands through
9630 # without removal of \ escapes.
9631 if test -n "${ZSH_VERSION+set}" ; then
9632 setopt NO_GLOB_SUBST
9633 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009634 # Now quote all the things that may contain metacharacters while being
9635 # careful not to overquote the AC_SUBSTed values. We take copies of the
9636 # variables and quote the copies for generation of the libtool script.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009637 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9638 SED SHELL STRIP \
9639 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9640 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9641 deplibs_check_method reload_flag reload_cmds need_locks \
9642 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9643 lt_cv_sys_global_symbol_to_c_name_address \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009644 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009645 old_postinstall_cmds old_postuninstall_cmds \
9646 compiler \
9647 CC \
9648 LD \
9649 lt_prog_compiler_wl \
9650 lt_prog_compiler_pic \
9651 lt_prog_compiler_static \
9652 lt_prog_compiler_no_builtin_flag \
9653 export_dynamic_flag_spec \
9654 thread_safe_flag_spec \
9655 whole_archive_flag_spec \
9656 enable_shared_with_static_runtimes \
9657 old_archive_cmds \
9658 old_archive_from_new_cmds \
9659 predep_objects \
9660 postdep_objects \
9661 predeps \
9662 postdeps \
9663 compiler_lib_search_path \
9664 archive_cmds \
9665 archive_expsym_cmds \
9666 postinstall_cmds \
9667 postuninstall_cmds \
9668 old_archive_from_expsyms_cmds \
9669 allow_undefined_flag \
9670 no_undefined_flag \
9671 export_symbols_cmds \
9672 hardcode_libdir_flag_spec \
9673 hardcode_libdir_flag_spec_ld \
9674 hardcode_libdir_separator \
9675 hardcode_automatic \
9676 module_cmds \
9677 module_expsym_cmds \
9678 lt_cv_prog_compiler_c_o \
9679 exclude_expsyms \
9680 include_expsyms; do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009681
9682 case $var in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009683 old_archive_cmds | \
9684 old_archive_from_new_cmds | \
9685 archive_cmds | \
9686 archive_expsym_cmds | \
9687 module_cmds | \
9688 module_expsym_cmds | \
9689 old_archive_from_expsyms_cmds | \
9690 export_symbols_cmds | \
9691 extract_expsyms_cmds | reload_cmds | finish_cmds | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009692 postinstall_cmds | postuninstall_cmds | \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009693 old_postinstall_cmds | old_postuninstall_cmds | \
9694 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009695 # Double-quote double-evaled strings.
9696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9697 ;;
9698 *)
9699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9700 ;;
9701 esac
9702 done
9703
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009704 case $lt_echo in
9705 *'\$0 --fallback-echo"')
9706 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9707 ;;
9708 esac
9709
9710cfgfile="${ofile}T"
9711 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9712 $rm -f "$cfgfile"
9713 { echo "$as_me:$LINENO: creating $ofile" >&5
9714echo "$as_me: creating $ofile" >&6;}
9715
9716 cat <<__EOF__ >> "$cfgfile"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009717#! $SHELL
9718
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009719# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009720# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9721# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9722#
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009723# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9724# Free Software Foundation, Inc.
9725#
9726# This file is part of GNU Libtool:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009727# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9728#
9729# This program is free software; you can redistribute it and/or modify
9730# it under the terms of the GNU General Public License as published by
9731# the Free Software Foundation; either version 2 of the License, or
9732# (at your option) any later version.
9733#
9734# This program is distributed in the hope that it will be useful, but
9735# WITHOUT ANY WARRANTY; without even the implied warranty of
9736# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9737# General Public License for more details.
9738#
9739# You should have received a copy of the GNU General Public License
9740# along with this program; if not, write to the Free Software
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009741# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009742#
9743# As a special exception to the GNU General Public License, if you
9744# distribute this file as part of a program that contains a
9745# configuration script generated by Autoconf, you may include it under
9746# the same distribution terms that you use for the rest of that program.
9747
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009748# A sed program that does not truncate output.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009749SED=$lt_SED
9750
9751# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009752Xsed="$SED -e 1s/^X//"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009753
9754# The HP-UX ksh and POSIX shell print the target directory to stdout
9755# if CDPATH is set.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9757
9758# The names of the tagged configurations supported by this script.
9759available_tags=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009760
9761# ### BEGIN LIBTOOL CONFIG
9762
9763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9764
9765# Shell to use when invoking shell scripts.
9766SHELL=$lt_SHELL
9767
9768# Whether or not to build shared libraries.
9769build_libtool_libs=$enable_shared
9770
9771# Whether or not to build static libraries.
9772build_old_libs=$enable_static
9773
9774# Whether or not to add -lc for building shared libraries.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009775build_libtool_need_lc=$archive_cmds_need_lc
9776
9777# Whether or not to disallow shared libs when runtime libs are static
9778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009779
9780# Whether or not to optimize for fast installation.
9781fast_install=$enable_fast_install
9782
9783# The host system.
9784host_alias=$host_alias
9785host=$host
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009786host_os=$host_os
9787
9788# The build system.
9789build_alias=$build_alias
9790build=$build
9791build_os=$build_os
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009792
9793# An echo program that does not interpret backslashes.
9794echo=$lt_echo
9795
9796# The archiver.
9797AR=$lt_AR
9798AR_FLAGS=$lt_AR_FLAGS
9799
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009800# A C compiler.
9801LTCC=$lt_LTCC
9802
9803# LTCC compiler flags.
9804LTCFLAGS=$lt_LTCFLAGS
9805
9806# A language-specific compiler.
9807CC=$lt_compiler
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009808
9809# Is the compiler the GNU C compiler?
9810with_gcc=$GCC
9811
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009812# An ERE matcher.
9813EGREP=$lt_EGREP
9814
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009815# The linker used to build libraries.
9816LD=$lt_LD
9817
9818# Whether we need hard or soft links.
9819LN_S=$lt_LN_S
9820
9821# A BSD-compatible nm program.
9822NM=$lt_NM
9823
9824# A symbol stripping program
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009825STRIP=$lt_STRIP
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009826
9827# Used to examine libraries when file_magic_cmd begins "file"
9828MAGIC_CMD=$MAGIC_CMD
9829
9830# Used on cygwin: DLL creation program.
9831DLLTOOL="$DLLTOOL"
9832
9833# Used on cygwin: object dumper.
9834OBJDUMP="$OBJDUMP"
9835
9836# Used on cygwin: assembler.
9837AS="$AS"
9838
9839# The name of the directory that contains temporary libtool files.
9840objdir=$objdir
9841
9842# How to create reloadable object files.
9843reload_flag=$lt_reload_flag
9844reload_cmds=$lt_reload_cmds
9845
9846# How to pass a linker flag through the compiler.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009847wl=$lt_lt_prog_compiler_wl
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009848
9849# Object file suffix (normally "o").
9850objext="$ac_objext"
9851
9852# Old archive suffix (normally "a").
9853libext="$libext"
9854
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009855# Shared library suffix (normally ".so").
9856shrext_cmds='$shrext_cmds'
9857
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009858# Executable file suffix (normally "").
9859exeext="$exeext"
9860
9861# Additional compiler flags for building library objects.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009862pic_flag=$lt_lt_prog_compiler_pic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009863pic_mode=$pic_mode
9864
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009865# What is the maximum length of a command?
9866max_cmd_len=$lt_cv_sys_max_cmd_len
9867
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009868# Does compiler simultaneously support -c and -o options?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009869compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009870
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009871# Must we lock files when doing compilation?
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009872need_locks=$lt_need_locks
9873
9874# Do we need the lib prefix for modules?
9875need_lib_prefix=$need_lib_prefix
9876
9877# Do we need a version for libraries?
9878need_version=$need_version
9879
9880# Whether dlopen is supported.
9881dlopen_support=$enable_dlopen
9882
9883# Whether dlopen of programs is supported.
9884dlopen_self=$enable_dlopen_self
9885
9886# Whether dlopen of statically linked programs is supported.
9887dlopen_self_static=$enable_dlopen_self_static
9888
9889# Compiler flag to prevent dynamic linking.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009890link_static_flag=$lt_lt_prog_compiler_static
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009891
9892# Compiler flag to turn off builtin functions.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009894
9895# Compiler flag to allow reflexive dlopens.
9896export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9897
9898# Compiler flag to generate shared objects directly from archives.
9899whole_archive_flag_spec=$lt_whole_archive_flag_spec
9900
9901# Compiler flag to generate thread-safe objects.
9902thread_safe_flag_spec=$lt_thread_safe_flag_spec
9903
9904# Library versioning type.
9905version_type=$version_type
9906
9907# Format of library name prefix.
9908libname_spec=$lt_libname_spec
9909
9910# List of archive names. First name is the real one, the rest are links.
9911# The last name is the one that the linker finds with -lNAME.
9912library_names_spec=$lt_library_names_spec
9913
9914# The coded name of the library, if different from the real name.
9915soname_spec=$lt_soname_spec
9916
9917# Commands used to build and install an old-style archive.
9918RANLIB=$lt_RANLIB
9919old_archive_cmds=$lt_old_archive_cmds
9920old_postinstall_cmds=$lt_old_postinstall_cmds
9921old_postuninstall_cmds=$lt_old_postuninstall_cmds
9922
9923# Create an old-style archive from a shared archive.
9924old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9925
9926# Create a temporary old-style archive to link instead of a shared archive.
9927old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9928
9929# Commands used to build and install a shared archive.
9930archive_cmds=$lt_archive_cmds
9931archive_expsym_cmds=$lt_archive_expsym_cmds
9932postinstall_cmds=$lt_postinstall_cmds
9933postuninstall_cmds=$lt_postuninstall_cmds
9934
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009935# Commands used to build a loadable module (assumed same as above if empty)
9936module_cmds=$lt_module_cmds
9937module_expsym_cmds=$lt_module_expsym_cmds
9938
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009939# Commands to strip libraries.
9940old_striplib=$lt_old_striplib
9941striplib=$lt_striplib
9942
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009943# Dependencies to place before the objects being linked to create a
9944# shared library.
9945predep_objects=$lt_predep_objects
9946
9947# Dependencies to place after the objects being linked to create a
9948# shared library.
9949postdep_objects=$lt_postdep_objects
9950
9951# Dependencies to place before the objects being linked to create a
9952# shared library.
9953predeps=$lt_predeps
9954
9955# Dependencies to place after the objects being linked to create a
9956# shared library.
9957postdeps=$lt_postdeps
9958
9959# The library search path used internally by the compiler when linking
9960# a shared library.
9961compiler_lib_search_path=$lt_compiler_lib_search_path
9962
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009963# Method to check whether dependent libraries are shared objects.
9964deplibs_check_method=$lt_deplibs_check_method
9965
9966# Command to use when deplibs_check_method == file_magic.
9967file_magic_cmd=$lt_file_magic_cmd
9968
9969# Flag that allows shared libraries with undefined symbols to be built.
9970allow_undefined_flag=$lt_allow_undefined_flag
9971
9972# Flag that forces no undefined symbols.
9973no_undefined_flag=$lt_no_undefined_flag
9974
9975# Commands used to finish a libtool library installation in a directory.
9976finish_cmds=$lt_finish_cmds
9977
9978# Same as above, but a single script fragment to be evaled but not shown.
9979finish_eval=$lt_finish_eval
9980
9981# Take the output of nm and produce a listing of raw symbols and C names.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009982global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009983
9984# Transform the output of nm in a proper C declaration
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009985global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009986
9987# Transform the output of nm in a C name address pair
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009988global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009989
9990# This is the shared library runtime path variable.
9991runpath_var=$runpath_var
9992
9993# This is the shared library path variable.
9994shlibpath_var=$shlibpath_var
9995
9996# Is shlibpath searched before the hard-coded library search path?
9997shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9998
9999# How to hardcode a shared library path into an executable.
10000hardcode_action=$hardcode_action
10001
10002# Whether we should hardcode library paths into libraries.
10003hardcode_into_libs=$hardcode_into_libs
10004
10005# Flag to hardcode \$libdir into a binary during linking.
10006# This must work even if \$libdir does not exist.
10007hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10008
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010009# If ld is used when linking, flag to hardcode \$libdir into
10010# a binary during linking. This must work even if \$libdir does
10011# not exist.
10012hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10013
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010014# Whether we need a single -rpath flag with a separated argument.
10015hardcode_libdir_separator=$lt_hardcode_libdir_separator
10016
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010017# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010018# resulting binary.
10019hardcode_direct=$hardcode_direct
10020
10021# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10022# resulting binary.
10023hardcode_minus_L=$hardcode_minus_L
10024
10025# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10026# the resulting binary.
10027hardcode_shlibpath_var=$hardcode_shlibpath_var
10028
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010029# Set to yes if building a shared library automatically hardcodes DIR into the library
10030# and all subsequent libraries and executables linked against it.
10031hardcode_automatic=$hardcode_automatic
10032
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010033# Variables whose values should be saved in libtool wrapper scripts and
10034# restored at relink time.
10035variables_saved_for_relink="$variables_saved_for_relink"
10036
10037# Whether libtool must link a program against all its dependency libraries.
10038link_all_deplibs=$link_all_deplibs
10039
10040# Compile-time system search path for libraries
10041sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10042
10043# Run-time system search path for libraries
10044sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10045
10046# Fix the shell variable \$srcfile for the compiler.
10047fix_srcfile_path="$fix_srcfile_path"
10048
10049# Set to yes if exported symbols are required.
10050always_export_symbols=$always_export_symbols
10051
10052# The commands to list exported symbols.
10053export_symbols_cmds=$lt_export_symbols_cmds
10054
10055# The commands to extract the exported symbol list from a shared archive.
10056extract_expsyms_cmds=$lt_extract_expsyms_cmds
10057
10058# Symbols that should not be listed in the preloaded symbols.
10059exclude_expsyms=$lt_exclude_expsyms
10060
10061# Symbols that must always be exported.
10062include_expsyms=$lt_include_expsyms
10063
10064# ### END LIBTOOL CONFIG
10065
10066__EOF__
10067
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010068
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010069 case $host_os in
10070 aix3*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010071 cat <<\EOF >> "$cfgfile"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010072
10073# AIX sometimes has problems with the GCC collect2 program. For some
10074# reason, if we set the COLLECT_NAMES environment variable, the problems
10075# vanish in a puff of smoke.
10076if test "X${COLLECT_NAMES+set}" != Xset; then
10077 COLLECT_NAMES=
10078 export COLLECT_NAMES
10079fi
10080EOF
10081 ;;
10082 esac
10083
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010084 # We use sed instead of cat because bash on DJGPP gets confused if
10085 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10086 # text mode, it properly converts lines to CR/LF. This bash problem
10087 # is reportedly fixed, but why not run on old versions too?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010088 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010089
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010090 mv -f "$cfgfile" "$ofile" || \
10091 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010092 chmod +x "$ofile"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010093
10094else
10095 # If there is no Makefile yet, we rely on a make rule to execute
10096 # `config.status --recheck' to rerun these tests and create the
10097 # libtool script then.
10098 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10099 if test -f "$ltmain_in"; then
10100 test -f Makefile && make "$ltmain"
10101 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010102fi
10103
10104
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010105ac_ext=c
10106ac_cpp='$CPP $CPPFLAGS'
10107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10109ac_compiler_gnu=$ac_cv_c_compiler_gnu
10110
10111CC="$lt_save_CC"
10112
10113
10114# Check whether --with-tags or --without-tags was given.
10115if test "${with_tags+set}" = set; then
10116 withval="$with_tags"
10117 tagnames="$withval"
10118fi;
10119
10120if test -f "$ltmain" && test -n "$tagnames"; then
10121 if test ! -f "${ofile}"; then
10122 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10123echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10124 fi
10125
10126 if test -z "$LTCC"; then
10127 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10128 if test -z "$LTCC"; then
10129 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10130echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10131 else
10132 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10133echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10134 fi
10135 fi
10136 if test -z "$LTCFLAGS"; then
10137 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10138 fi
10139
10140 # Extract list of available tagged configurations in $ofile.
10141 # Note that this assumes the entire list is on one line.
10142 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10143
10144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10145 for tagname in $tagnames; do
10146 IFS="$lt_save_ifs"
10147 # Check whether tagname contains only valid characters
10148 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10149 "") ;;
10150 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10151echo "$as_me: error: invalid tag name: $tagname" >&2;}
10152 { (exit 1); exit 1; }; }
10153 ;;
10154 esac
10155
10156 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10157 then
10158 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10159echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10160 { (exit 1); exit 1; }; }
10161 fi
10162
10163 # Update the list of available tags.
10164 if test -n "$tagname"; then
10165 echo appending configuration tag \"$tagname\" to $ofile
10166
10167 case $tagname in
10168 CXX)
10169 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10170 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10171 (test "X$CXX" != "Xg++"))) ; then
10172 ac_ext=cc
10173ac_cpp='$CXXCPP $CPPFLAGS'
10174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10177
10178
10179
10180
10181archive_cmds_need_lc_CXX=no
10182allow_undefined_flag_CXX=
10183always_export_symbols_CXX=no
10184archive_expsym_cmds_CXX=
10185export_dynamic_flag_spec_CXX=
10186hardcode_direct_CXX=no
10187hardcode_libdir_flag_spec_CXX=
10188hardcode_libdir_flag_spec_ld_CXX=
10189hardcode_libdir_separator_CXX=
10190hardcode_minus_L_CXX=no
10191hardcode_shlibpath_var_CXX=unsupported
10192hardcode_automatic_CXX=no
10193module_cmds_CXX=
10194module_expsym_cmds_CXX=
10195link_all_deplibs_CXX=unknown
10196old_archive_cmds_CXX=$old_archive_cmds
10197no_undefined_flag_CXX=
10198whole_archive_flag_spec_CXX=
10199enable_shared_with_static_runtimes_CXX=no
10200
10201# Dependencies to place before and after the object being linked:
10202predep_objects_CXX=
10203postdep_objects_CXX=
10204predeps_CXX=
10205postdeps_CXX=
10206compiler_lib_search_path_CXX=
10207
10208# Source file extension for C++ test sources.
10209ac_ext=cpp
10210
10211# Object file extension for compiled C++ test sources.
10212objext=o
10213objext_CXX=$objext
10214
10215# Code to be used in simple compile tests
10216lt_simple_compile_test_code="int some_variable = 0;\n"
10217
10218# Code to be used in simple link tests
10219lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10220
10221# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10222
10223# If no C compiler was specified, use CC.
10224LTCC=${LTCC-"$CC"}
10225
10226# If no C compiler flags were specified, use CFLAGS.
10227LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10228
10229# Allow CC to be a program name with arguments.
10230compiler=$CC
10231
10232
10233# save warnings/boilerplate of simple test code
10234ac_outfile=conftest.$ac_objext
10235printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10236eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10237_lt_compiler_boilerplate=`cat conftest.err`
10238$rm conftest*
10239
10240ac_outfile=conftest.$ac_objext
10241printf "$lt_simple_link_test_code" >conftest.$ac_ext
10242eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10243_lt_linker_boilerplate=`cat conftest.err`
10244$rm conftest*
10245
10246
10247# Allow CC to be a program name with arguments.
10248lt_save_CC=$CC
10249lt_save_LD=$LD
10250lt_save_GCC=$GCC
10251GCC=$GXX
10252lt_save_with_gnu_ld=$with_gnu_ld
10253lt_save_path_LD=$lt_cv_path_LD
10254if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10255 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10256else
10257 $as_unset lt_cv_prog_gnu_ld
10258fi
10259if test -n "${lt_cv_path_LDCXX+set}"; then
10260 lt_cv_path_LD=$lt_cv_path_LDCXX
10261else
10262 $as_unset lt_cv_path_LD
10263fi
10264test -z "${LDCXX+set}" || LD=$LDCXX
10265CC=${CXX-"c++"}
10266compiler=$CC
10267compiler_CXX=$CC
10268for cc_temp in $compiler""; do
10269 case $cc_temp in
10270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10272 \-*) ;;
10273 *) break;;
10274 esac
10275done
10276cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10277
10278
10279# We don't want -fno-exception wen compiling C++ code, so set the
10280# no_builtin_flag separately
10281if test "$GXX" = yes; then
10282 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10283else
10284 lt_prog_compiler_no_builtin_flag_CXX=
10285fi
10286
10287if test "$GXX" = yes; then
10288 # Set up default GNU C++ configuration
10289
10290
10291# Check whether --with-gnu-ld or --without-gnu-ld was given.
10292if test "${with_gnu_ld+set}" = set; then
10293 withval="$with_gnu_ld"
10294 test "$withval" = no || with_gnu_ld=yes
10295else
10296 with_gnu_ld=no
10297fi;
10298ac_prog=ld
10299if test "$GCC" = yes; then
10300 # Check if gcc -print-prog-name=ld gives a path.
10301 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10302echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10303 case $host in
10304 *-*-mingw*)
10305 # gcc leaves a trailing carriage return which upsets mingw
10306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10307 *)
10308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10309 esac
10310 case $ac_prog in
10311 # Accept absolute paths.
10312 [\\/]* | ?:[\\/]*)
10313 re_direlt='/[^/][^/]*/\.\./'
10314 # Canonicalize the pathname of ld
10315 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10316 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10317 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10318 done
10319 test -z "$LD" && LD="$ac_prog"
10320 ;;
10321 "")
10322 # If it fails, then pretend we aren't using GCC.
10323 ac_prog=ld
10324 ;;
10325 *)
10326 # If it is relative, then search for the first ld in PATH.
10327 with_gnu_ld=unknown
10328 ;;
10329 esac
10330elif test "$with_gnu_ld" = yes; then
10331 echo "$as_me:$LINENO: checking for GNU ld" >&5
10332echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10333else
10334 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10335echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10336fi
10337if test "${lt_cv_path_LD+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339else
10340 if test -z "$LD"; then
10341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10342 for ac_dir in $PATH; do
10343 IFS="$lt_save_ifs"
10344 test -z "$ac_dir" && ac_dir=.
10345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10346 lt_cv_path_LD="$ac_dir/$ac_prog"
10347 # Check to see if the program is GNU ld. I'd rather use --version,
10348 # but apparently some variants of GNU ld only accept -v.
10349 # Break only if it was the GNU/non-GNU ld that we prefer.
10350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10351 *GNU* | *'with BFD'*)
10352 test "$with_gnu_ld" != no && break
10353 ;;
10354 *)
10355 test "$with_gnu_ld" != yes && break
10356 ;;
10357 esac
10358 fi
10359 done
10360 IFS="$lt_save_ifs"
10361else
10362 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10363fi
10364fi
10365
10366LD="$lt_cv_path_LD"
10367if test -n "$LD"; then
10368 echo "$as_me:$LINENO: result: $LD" >&5
10369echo "${ECHO_T}$LD" >&6
10370else
10371 echo "$as_me:$LINENO: result: no" >&5
10372echo "${ECHO_T}no" >&6
10373fi
10374test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10375echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10376 { (exit 1); exit 1; }; }
10377echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10378echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10379if test "${lt_cv_prog_gnu_ld+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
10382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10383case `$LD -v 2>&1 </dev/null` in
10384*GNU* | *'with BFD'*)
10385 lt_cv_prog_gnu_ld=yes
10386 ;;
10387*)
10388 lt_cv_prog_gnu_ld=no
10389 ;;
10390esac
10391fi
10392echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10393echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10394with_gnu_ld=$lt_cv_prog_gnu_ld
10395
10396
10397
10398 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10399 # archiving commands below assume that GNU ld is being used.
10400 if test "$with_gnu_ld" = yes; then
10401 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10402 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'
10403
10404 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10405 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10406
10407 # If archive_cmds runs LD, not CC, wlarc should be empty
10408 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10409 # investigate it a little bit more. (MM)
10410 wlarc='${wl}'
10411
10412 # ancient GNU ld didn't support --whole-archive et. al.
10413 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10414 grep 'no-whole-archive' > /dev/null; then
10415 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10416 else
10417 whole_archive_flag_spec_CXX=
10418 fi
10419 else
10420 with_gnu_ld=no
10421 wlarc=
10422
10423 # A generic and very simple default shared library creation
10424 # command for GNU C++ for the case where it uses the native
10425 # linker, instead of GNU ld. If possible, this setting should
10426 # overridden to take advantage of the native linker features on
10427 # the platform it is being used on.
10428 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10429 fi
10430
10431 # Commands to make compiler produce verbose output that lists
10432 # what "hidden" libraries, object files and flags are used when
10433 # linking a shared library.
10434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10435
10436else
10437 GXX=no
10438 with_gnu_ld=no
10439 wlarc=
10440fi
10441
10442# PORTME: fill in a description of your system's C++ link characteristics
10443echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10444echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10445ld_shlibs_CXX=yes
10446case $host_os in
10447 aix3*)
10448 # FIXME: insert proper C++ library support
10449 ld_shlibs_CXX=no
10450 ;;
10451 aix4* | aix5*)
10452 if test "$host_cpu" = ia64; then
10453 # On IA64, the linker does run time linking by default, so we don't
10454 # have to do anything special.
10455 aix_use_runtimelinking=no
10456 exp_sym_flag='-Bexport'
10457 no_entry_flag=""
10458 else
10459 aix_use_runtimelinking=no
10460
10461 # Test if we are trying to use run time linking or normal
10462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10463 # need to do runtime linking.
10464 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10465 for ld_flag in $LDFLAGS; do
10466 case $ld_flag in
10467 *-brtl*)
10468 aix_use_runtimelinking=yes
10469 break
10470 ;;
10471 esac
10472 done
10473 ;;
10474 esac
10475
10476 exp_sym_flag='-bexport'
10477 no_entry_flag='-bnoentry'
10478 fi
10479
10480 # When large executables or shared objects are built, AIX ld can
10481 # have problems creating the table of contents. If linking a library
10482 # or program results in "error TOC overflow" add -mminimal-toc to
10483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10485
10486 archive_cmds_CXX=''
10487 hardcode_direct_CXX=yes
10488 hardcode_libdir_separator_CXX=':'
10489 link_all_deplibs_CXX=yes
10490
10491 if test "$GXX" = yes; then
10492 case $host_os in aix4.[012]|aix4.[012].*)
10493 # We only want to do this on AIX 4.2 and lower, the check
10494 # below for broken collect2 doesn't work under 4.3+
10495 collect2name=`${CC} -print-prog-name=collect2`
10496 if test -f "$collect2name" && \
10497 strings "$collect2name" | grep resolve_lib_name >/dev/null
10498 then
10499 # We have reworked collect2
10500 hardcode_direct_CXX=yes
10501 else
10502 # We have old collect2
10503 hardcode_direct_CXX=unsupported
10504 # It fails to find uninstalled libraries when the uninstalled
10505 # path is not listed in the libpath. Setting hardcode_minus_L
10506 # to unsupported forces relinking
10507 hardcode_minus_L_CXX=yes
10508 hardcode_libdir_flag_spec_CXX='-L$libdir'
10509 hardcode_libdir_separator_CXX=
10510 fi
10511 ;;
10512 esac
10513 shared_flag='-shared'
10514 if test "$aix_use_runtimelinking" = yes; then
10515 shared_flag="$shared_flag "'${wl}-G'
10516 fi
10517 else
10518 # not using gcc
10519 if test "$host_cpu" = ia64; then
10520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10521 # chokes on -Wl,-G. The following line is correct:
10522 shared_flag='-G'
10523 else
10524 if test "$aix_use_runtimelinking" = yes; then
10525 shared_flag='${wl}-G'
10526 else
10527 shared_flag='${wl}-bM:SRE'
10528 fi
10529 fi
10530 fi
10531
10532 # It seems that -bexpall does not export symbols beginning with
10533 # underscore (_), so it is better to generate a list of symbols to export.
10534 always_export_symbols_CXX=yes
10535 if test "$aix_use_runtimelinking" = yes; then
10536 # Warning - without using the other runtime loading flags (-brtl),
10537 # -berok will link without error, but may produce a broken library.
10538 allow_undefined_flag_CXX='-berok'
10539 # Determine the default libpath from the value encoded in an empty executable.
10540 cat >conftest.$ac_ext <<_ACEOF
10541/* confdefs.h. */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h. */
10546
10547int
10548main ()
10549{
10550
10551 ;
10552 return 0;
10553}
10554_ACEOF
10555rm -f conftest.$ac_objext conftest$ac_exeext
10556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_cxx_werror_flag"
10565 || test ! -s conftest.err'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest$ac_exeext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577
10578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10579}'`
10580# Check for a 64-bit object if we didn't find anything.
10581if 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; }
10582}'`; fi
10583else
10584 echo "$as_me: failed program was:" >&5
10585sed 's/^/| /' conftest.$ac_ext >&5
10586
10587fi
10588rm -f conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10591
10592 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10593
10594 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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"
10595 else
10596 if test "$host_cpu" = ia64; then
10597 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10598 allow_undefined_flag_CXX="-z nodefs"
10599 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10600 else
10601 # Determine the default libpath from the value encoded in an empty executable.
10602 cat >conftest.$ac_ext <<_ACEOF
10603/* confdefs.h. */
10604_ACEOF
10605cat confdefs.h >>conftest.$ac_ext
10606cat >>conftest.$ac_ext <<_ACEOF
10607/* end confdefs.h. */
10608
10609int
10610main ()
10611{
10612
10613 ;
10614 return 0;
10615}
10616_ACEOF
10617rm -f conftest.$ac_objext conftest$ac_exeext
10618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10619 (eval $ac_link) 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -z "$ac_cxx_werror_flag"
10627 || test ! -s conftest.err'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest$ac_exeext'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639
10640aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10641}'`
10642# Check for a 64-bit object if we didn't find anything.
10643if 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; }
10644}'`; fi
10645else
10646 echo "$as_me: failed program was:" >&5
10647sed 's/^/| /' conftest.$ac_ext >&5
10648
10649fi
10650rm -f conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10653
10654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10655 # Warning - without using the other run time loading flags,
10656 # -berok will link without error, but may produce a broken library.
10657 no_undefined_flag_CXX=' ${wl}-bernotok'
10658 allow_undefined_flag_CXX=' ${wl}-berok'
10659 # Exported symbols can be pulled into shared objects from archives
10660 whole_archive_flag_spec_CXX='$convenience'
10661 archive_cmds_need_lc_CXX=yes
10662 # This is similar to how AIX traditionally builds its shared libraries.
10663 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10664 fi
10665 fi
10666 ;;
10667
10668 beos*)
10669 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10670 allow_undefined_flag_CXX=unsupported
10671 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10672 # support --undefined. This deserves some investigation. FIXME
10673 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10674 else
10675 ld_shlibs_CXX=no
10676 fi
10677 ;;
10678
10679 chorus*)
10680 case $cc_basename in
10681 *)
10682 # FIXME: insert proper C++ library support
10683 ld_shlibs_CXX=no
10684 ;;
10685 esac
10686 ;;
10687
10688 cygwin* | mingw* | pw32*)
10689 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10690 # as there is no search path for DLLs.
10691 hardcode_libdir_flag_spec_CXX='-L$libdir'
10692 allow_undefined_flag_CXX=unsupported
10693 always_export_symbols_CXX=no
10694 enable_shared_with_static_runtimes_CXX=yes
10695
10696 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10697 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10698 # If the export-symbols file already is a .def file (1st line
10699 # is EXPORTS), use it as is; otherwise, prepend...
10700 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10701 cp $export_symbols $output_objdir/$soname.def;
10702 else
10703 echo EXPORTS > $output_objdir/$soname.def;
10704 cat $export_symbols >> $output_objdir/$soname.def;
10705 fi~
10706 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10707 else
10708 ld_shlibs_CXX=no
10709 fi
10710 ;;
10711 darwin* | rhapsody*)
10712 case $host_os in
10713 rhapsody* | darwin1.[012])
10714 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10715 ;;
10716 *) # Darwin 1.3 on
10717 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10718 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10719 else
10720 case ${MACOSX_DEPLOYMENT_TARGET} in
10721 10.[012])
10722 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10723 ;;
10724 10.*)
10725 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10726 ;;
10727 esac
10728 fi
10729 ;;
10730 esac
10731 archive_cmds_need_lc_CXX=no
10732 hardcode_direct_CXX=no
10733 hardcode_automatic_CXX=yes
10734 hardcode_shlibpath_var_CXX=unsupported
10735 whole_archive_flag_spec_CXX=''
10736 link_all_deplibs_CXX=yes
10737
10738 if test "$GXX" = yes ; then
10739 lt_int_apple_cc_single_mod=no
10740 output_verbose_link_cmd='echo'
10741 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10742 lt_int_apple_cc_single_mod=yes
10743 fi
10744 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10745 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10746 else
10747 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10748 fi
10749 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10750 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10751 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10752 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10753 else
10754 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10755 fi
10756 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10757 else
10758 case $cc_basename in
10759 xlc*)
10760 output_verbose_link_cmd='echo'
10761 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10762 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10763 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10764 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10765 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10766 ;;
10767 *)
10768 ld_shlibs_CXX=no
10769 ;;
10770 esac
10771 fi
10772 ;;
10773
10774 dgux*)
10775 case $cc_basename in
10776 ec++*)
10777 # FIXME: insert proper C++ library support
10778 ld_shlibs_CXX=no
10779 ;;
10780 ghcx*)
10781 # Green Hills C++ Compiler
10782 # FIXME: insert proper C++ library support
10783 ld_shlibs_CXX=no
10784 ;;
10785 *)
10786 # FIXME: insert proper C++ library support
10787 ld_shlibs_CXX=no
10788 ;;
10789 esac
10790 ;;
10791 freebsd[12]*)
10792 # C++ shared libraries reported to be fairly broken before switch to ELF
10793 ld_shlibs_CXX=no
10794 ;;
10795 freebsd-elf*)
10796 archive_cmds_need_lc_CXX=no
10797 ;;
10798 freebsd* | kfreebsd*-gnu | dragonfly*)
10799 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10800 # conventions
10801 ld_shlibs_CXX=yes
10802 ;;
10803 gnu*)
10804 ;;
10805 hpux9*)
10806 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10807 hardcode_libdir_separator_CXX=:
10808 export_dynamic_flag_spec_CXX='${wl}-E'
10809 hardcode_direct_CXX=yes
10810 hardcode_minus_L_CXX=yes # Not in the search PATH,
10811 # but as the default
10812 # location of the library.
10813
10814 case $cc_basename in
10815 CC*)
10816 # FIXME: insert proper C++ library support
10817 ld_shlibs_CXX=no
10818 ;;
10819 aCC*)
10820 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'
10821 # Commands to make compiler produce verbose output that lists
10822 # what "hidden" libraries, object files and flags are used when
10823 # linking a shared library.
10824 #
10825 # There doesn't appear to be a way to prevent this compiler from
10826 # explicitly linking system object files so we need to strip them
10827 # from the output so that they don't get included in the library
10828 # dependencies.
10829 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10830 ;;
10831 *)
10832 if test "$GXX" = yes; then
10833 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'
10834 else
10835 # FIXME: insert proper C++ library support
10836 ld_shlibs_CXX=no
10837 fi
10838 ;;
10839 esac
10840 ;;
10841 hpux10*|hpux11*)
10842 if test $with_gnu_ld = no; then
10843 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10844 hardcode_libdir_separator_CXX=:
10845
10846 case $host_cpu in
10847 hppa*64*|ia64*)
10848 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10849 ;;
10850 *)
10851 export_dynamic_flag_spec_CXX='${wl}-E'
10852 ;;
10853 esac
10854 fi
10855 case $host_cpu in
10856 hppa*64*|ia64*)
10857 hardcode_direct_CXX=no
10858 hardcode_shlibpath_var_CXX=no
10859 ;;
10860 *)
10861 hardcode_direct_CXX=yes
10862 hardcode_minus_L_CXX=yes # Not in the search PATH,
10863 # but as the default
10864 # location of the library.
10865 ;;
10866 esac
10867
10868 case $cc_basename in
10869 CC*)
10870 # FIXME: insert proper C++ library support
10871 ld_shlibs_CXX=no
10872 ;;
10873 aCC*)
10874 case $host_cpu in
10875 hppa*64*)
10876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10877 ;;
10878 ia64*)
10879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10880 ;;
10881 *)
10882 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10883 ;;
10884 esac
10885 # Commands to make compiler produce verbose output that lists
10886 # what "hidden" libraries, object files and flags are used when
10887 # linking a shared library.
10888 #
10889 # There doesn't appear to be a way to prevent this compiler from
10890 # explicitly linking system object files so we need to strip them
10891 # from the output so that they don't get included in the library
10892 # dependencies.
10893 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10894 ;;
10895 *)
10896 if test "$GXX" = yes; then
10897 if test $with_gnu_ld = no; then
10898 case $host_cpu in
10899 hppa*64*)
10900 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10901 ;;
10902 ia64*)
10903 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10904 ;;
10905 *)
10906 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'
10907 ;;
10908 esac
10909 fi
10910 else
10911 # FIXME: insert proper C++ library support
10912 ld_shlibs_CXX=no
10913 fi
10914 ;;
10915 esac
10916 ;;
10917 interix3*)
10918 hardcode_direct_CXX=no
10919 hardcode_shlibpath_var_CXX=no
10920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10921 export_dynamic_flag_spec_CXX='${wl}-E'
10922 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10923 # Instead, shared libraries are loaded at an image base (0x10000000 by
10924 # default) and relocated if they conflict, which is a slow very memory
10925 # consuming and fragmenting process. To avoid this, we pick a random,
10926 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10927 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10928 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10929 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10930 ;;
10931 irix5* | irix6*)
10932 case $cc_basename in
10933 CC*)
10934 # SGI C++
10935 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 ${output_objdir}/so_locations -o $lib'
10936
10937 # Archives containing C++ object files must be created using
10938 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10939 # necessary to make sure instantiated templates are included
10940 # in the archive.
10941 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10942 ;;
10943 *)
10944 if test "$GXX" = yes; then
10945 if test "$with_gnu_ld" = no; then
10946 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}${output_objdir}/so_locations -o $lib'
10947 else
10948 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` -o $lib'
10949 fi
10950 fi
10951 link_all_deplibs_CXX=yes
10952 ;;
10953 esac
10954 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10955 hardcode_libdir_separator_CXX=:
10956 ;;
10957 linux*)
10958 case $cc_basename in
10959 KCC*)
10960 # Kuck and Associates, Inc. (KAI) C++ Compiler
10961
10962 # KCC will only create a shared library if the output file
10963 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10964 # to its proper name (with version) after linking.
10965 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10966 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10967 # Commands to make compiler produce verbose output that lists
10968 # what "hidden" libraries, object files and flags are used when
10969 # linking a shared library.
10970 #
10971 # There doesn't appear to be a way to prevent this compiler from
10972 # explicitly linking system object files so we need to strip them
10973 # from the output so that they don't get included in the library
10974 # dependencies.
10975 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10976
10977 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10979
10980 # Archives containing C++ object files must be created using
10981 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10982 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10983 ;;
10984 icpc*)
10985 # Intel C++
10986 with_gnu_ld=yes
10987 # version 8.0 and above of icpc choke on multiply defined symbols
10988 # if we add $predep_objects and $postdep_objects, however 7.1 and
10989 # earlier do not add the objects themselves.
10990 case `$CC -V 2>&1` in
10991 *"Version 7."*)
10992 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10993 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10994 ;;
10995 *) # Version 8.0 or newer
10996 tmp_idyn=
10997 case $host_cpu in
10998 ia64*) tmp_idyn=' -i_dynamic';;
10999 esac
11000 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11001 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11002 ;;
11003 esac
11004 archive_cmds_need_lc_CXX=no
11005 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11006 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11007 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11008 ;;
11009 pgCC*)
11010 # Portland Group C++ compiler
11011 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11012 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11013
11014 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11015 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11016 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11017 ;;
11018 cxx*)
11019 # Compaq C++
11020 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11021 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'
11022
11023 runpath_var=LD_RUN_PATH
11024 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11025 hardcode_libdir_separator_CXX=:
11026
11027 # Commands to make compiler produce verbose output that lists
11028 # what "hidden" libraries, object files and flags are used when
11029 # linking a shared library.
11030 #
11031 # There doesn't appear to be a way to prevent this compiler from
11032 # explicitly linking system object files so we need to strip them
11033 # from the output so that they don't get included in the library
11034 # dependencies.
11035 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'
11036 ;;
11037 esac
11038 ;;
11039 lynxos*)
11040 # FIXME: insert proper C++ library support
11041 ld_shlibs_CXX=no
11042 ;;
11043 m88k*)
11044 # FIXME: insert proper C++ library support
11045 ld_shlibs_CXX=no
11046 ;;
11047 mvs*)
11048 case $cc_basename in
11049 cxx*)
11050 # FIXME: insert proper C++ library support
11051 ld_shlibs_CXX=no
11052 ;;
11053 *)
11054 # FIXME: insert proper C++ library support
11055 ld_shlibs_CXX=no
11056 ;;
11057 esac
11058 ;;
11059 netbsd*)
11060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11061 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11062 wlarc=
11063 hardcode_libdir_flag_spec_CXX='-R$libdir'
11064 hardcode_direct_CXX=yes
11065 hardcode_shlibpath_var_CXX=no
11066 fi
11067 # Workaround some broken pre-1.5 toolchains
11068 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11069 ;;
11070 openbsd2*)
11071 # C++ shared libraries are fairly broken
11072 ld_shlibs_CXX=no
11073 ;;
11074 openbsd*)
11075 hardcode_direct_CXX=yes
11076 hardcode_shlibpath_var_CXX=no
11077 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11078 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11079 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11080 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11081 export_dynamic_flag_spec_CXX='${wl}-E'
11082 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11083 fi
11084 output_verbose_link_cmd='echo'
11085 ;;
11086 osf3*)
11087 case $cc_basename in
11088 KCC*)
11089 # Kuck and Associates, Inc. (KAI) C++ Compiler
11090
11091 # KCC will only create a shared library if the output file
11092 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11093 # to its proper name (with version) after linking.
11094 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11095
11096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11097 hardcode_libdir_separator_CXX=:
11098
11099 # Archives containing C++ object files must be created using
11100 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11101 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11102
11103 ;;
11104 RCC*)
11105 # Rational C++ 2.4.1
11106 # FIXME: insert proper C++ library support
11107 ld_shlibs_CXX=no
11108 ;;
11109 cxx*)
11110 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11111 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 ${output_objdir}/so_locations -o $lib'
11112
11113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11114 hardcode_libdir_separator_CXX=:
11115
11116 # Commands to make compiler produce verbose output that lists
11117 # what "hidden" libraries, object files and flags are used when
11118 # linking a shared library.
11119 #
11120 # There doesn't appear to be a way to prevent this compiler from
11121 # explicitly linking system object files so we need to strip them
11122 # from the output so that they don't get included in the library
11123 # dependencies.
11124 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'
11125 ;;
11126 *)
11127 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11128 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11129 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}${output_objdir}/so_locations -o $lib'
11130
11131 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11132 hardcode_libdir_separator_CXX=:
11133
11134 # Commands to make compiler produce verbose output that lists
11135 # what "hidden" libraries, object files and flags are used when
11136 # linking a shared library.
11137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11138
11139 else
11140 # FIXME: insert proper C++ library support
11141 ld_shlibs_CXX=no
11142 fi
11143 ;;
11144 esac
11145 ;;
11146 osf4* | osf5*)
11147 case $cc_basename in
11148 KCC*)
11149 # Kuck and Associates, Inc. (KAI) C++ Compiler
11150
11151 # KCC will only create a shared library if the output file
11152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11153 # to its proper name (with version) after linking.
11154 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11155
11156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11157 hardcode_libdir_separator_CXX=:
11158
11159 # Archives containing C++ object files must be created using
11160 # the KAI C++ compiler.
11161 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11162 ;;
11163 RCC*)
11164 # Rational C++ 2.4.1
11165 # FIXME: insert proper C++ library support
11166 ld_shlibs_CXX=no
11167 ;;
11168 cxx*)
11169 allow_undefined_flag_CXX=' -expect_unresolved \*'
11170 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 ${output_objdir}/so_locations -o $lib'
11171 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11172 echo "-hidden">> $lib.exp~
11173 $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 ${output_objdir}/so_locations -o $lib~
11174 $rm $lib.exp'
11175
11176 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11177 hardcode_libdir_separator_CXX=:
11178
11179 # Commands to make compiler produce verbose output that lists
11180 # what "hidden" libraries, object files and flags are used when
11181 # linking a shared library.
11182 #
11183 # There doesn't appear to be a way to prevent this compiler from
11184 # explicitly linking system object files so we need to strip them
11185 # from the output so that they don't get included in the library
11186 # dependencies.
11187 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'
11188 ;;
11189 *)
11190 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11191 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11192 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}${output_objdir}/so_locations -o $lib'
11193
11194 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11195 hardcode_libdir_separator_CXX=:
11196
11197 # Commands to make compiler produce verbose output that lists
11198 # what "hidden" libraries, object files and flags are used when
11199 # linking a shared library.
11200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11201
11202 else
11203 # FIXME: insert proper C++ library support
11204 ld_shlibs_CXX=no
11205 fi
11206 ;;
11207 esac
11208 ;;
11209 psos*)
11210 # FIXME: insert proper C++ library support
11211 ld_shlibs_CXX=no
11212 ;;
11213 sunos4*)
11214 case $cc_basename in
11215 CC*)
11216 # Sun C++ 4.x
11217 # FIXME: insert proper C++ library support
11218 ld_shlibs_CXX=no
11219 ;;
11220 lcc*)
11221 # Lucid
11222 # FIXME: insert proper C++ library support
11223 ld_shlibs_CXX=no
11224 ;;
11225 *)
11226 # FIXME: insert proper C++ library support
11227 ld_shlibs_CXX=no
11228 ;;
11229 esac
11230 ;;
11231 solaris*)
11232 case $cc_basename in
11233 CC*)
11234 # Sun C++ 4.2, 5.x and Centerline C++
11235 archive_cmds_need_lc_CXX=yes
11236 no_undefined_flag_CXX=' -zdefs'
11237 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11238 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11239 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11240
11241 hardcode_libdir_flag_spec_CXX='-R$libdir'
11242 hardcode_shlibpath_var_CXX=no
11243 case $host_os in
11244 solaris2.[0-5] | solaris2.[0-5].*) ;;
11245 *)
11246 # The C++ compiler is used as linker so we must use $wl
11247 # flag to pass the commands to the underlying system
11248 # linker. We must also pass each convience library through
11249 # to the system linker between allextract/defaultextract.
11250 # The C++ compiler will combine linker options so we
11251 # cannot just pass the convience library names through
11252 # without $wl.
11253 # Supported since Solaris 2.6 (maybe 2.5.1?)
11254 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11255 ;;
11256 esac
11257 link_all_deplibs_CXX=yes
11258
11259 output_verbose_link_cmd='echo'
11260
11261 # Archives containing C++ object files must be created using
11262 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11263 # necessary to make sure instantiated templates are included
11264 # in the archive.
11265 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11266 ;;
11267 gcx*)
11268 # Green Hills C++ Compiler
11269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11270
11271 # The C++ compiler must be used to create the archive.
11272 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11273 ;;
11274 *)
11275 # GNU C++ compiler with Solaris linker
11276 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11277 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11278 if $CC --version | grep -v '^2\.7' > /dev/null; then
11279 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11280 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11281 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11282
11283 # Commands to make compiler produce verbose output that lists
11284 # what "hidden" libraries, object files and flags are used when
11285 # linking a shared library.
11286 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11287 else
11288 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11289 # platform.
11290 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11291 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11292 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11293
11294 # Commands to make compiler produce verbose output that lists
11295 # what "hidden" libraries, object files and flags are used when
11296 # linking a shared library.
11297 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11298 fi
11299
11300 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11301 fi
11302 ;;
11303 esac
11304 ;;
11305 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11306 no_undefined_flag_CXX='${wl}-z,text'
11307 archive_cmds_need_lc_CXX=no
11308 hardcode_shlibpath_var_CXX=no
11309 runpath_var='LD_RUN_PATH'
11310
11311 case $cc_basename in
11312 CC*)
11313 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11315 ;;
11316 *)
11317 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11318 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11319 ;;
11320 esac
11321 ;;
11322 sysv5* | sco3.2v5* | sco5v6*)
11323 # Note: We can NOT use -z defs as we might desire, because we do not
11324 # link with -lc, and that would cause any symbols used from libc to
11325 # always be unresolved, which means just about no library would
11326 # ever link correctly. If we're not using GNU ld we use -z text
11327 # though, which does catch some bad symbols but isn't as heavy-handed
11328 # as -z defs.
11329 # For security reasons, it is highly recommended that you always
11330 # use absolute paths for naming shared libraries, and exclude the
11331 # DT_RUNPATH tag from executables and libraries. But doing so
11332 # requires that you compile everything twice, which is a pain.
11333 # So that behaviour is only enabled if SCOABSPATH is set to a
11334 # non-empty value in the environment. Most likely only useful for
11335 # creating official distributions of packages.
11336 # This is a hack until libtool officially supports absolute path
11337 # names for shared libraries.
11338 no_undefined_flag_CXX='${wl}-z,text'
11339 allow_undefined_flag_CXX='${wl}-z,nodefs'
11340 archive_cmds_need_lc_CXX=no
11341 hardcode_shlibpath_var_CXX=no
11342 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11343 hardcode_libdir_separator_CXX=':'
11344 link_all_deplibs_CXX=yes
11345 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11346 runpath_var='LD_RUN_PATH'
11347
11348 case $cc_basename in
11349 CC*)
11350 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11351 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11352 ;;
11353 *)
11354 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11355 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11356 ;;
11357 esac
11358 ;;
11359 tandem*)
11360 case $cc_basename in
11361 NCC*)
11362 # NonStop-UX NCC 3.20
11363 # FIXME: insert proper C++ library support
11364 ld_shlibs_CXX=no
11365 ;;
11366 *)
11367 # FIXME: insert proper C++ library support
11368 ld_shlibs_CXX=no
11369 ;;
11370 esac
11371 ;;
11372 vxworks*)
11373 # FIXME: insert proper C++ library support
11374 ld_shlibs_CXX=no
11375 ;;
11376 *)
11377 # FIXME: insert proper C++ library support
11378 ld_shlibs_CXX=no
11379 ;;
11380esac
11381echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11382echo "${ECHO_T}$ld_shlibs_CXX" >&6
11383test "$ld_shlibs_CXX" = no && can_build_shared=no
11384
11385GCC_CXX="$GXX"
11386LD_CXX="$LD"
11387
11388
11389cat > conftest.$ac_ext <<EOF
11390class Foo
11391{
11392public:
11393 Foo (void) { a = 0; }
11394private:
11395 int a;
11396};
11397EOF
11398
11399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400 (eval $ac_compile) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; then
11404 # Parse the compiler output and extract the necessary
11405 # objects, libraries and library flags.
11406
11407 # Sentinel used to keep track of whether or not we are before
11408 # the conftest object file.
11409 pre_test_object_deps_done=no
11410
11411 # The `*' in the case matches for architectures that use `case' in
11412 # $output_verbose_cmd can trigger glob expansion during the loop
11413 # eval without this substitution.
11414 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11415
11416 for p in `eval $output_verbose_link_cmd`; do
11417 case $p in
11418
11419 -L* | -R* | -l*)
11420 # Some compilers place space between "-{L,R}" and the path.
11421 # Remove the space.
11422 if test $p = "-L" \
11423 || test $p = "-R"; then
11424 prev=$p
11425 continue
11426 else
11427 prev=
11428 fi
11429
11430 if test "$pre_test_object_deps_done" = no; then
11431 case $p in
11432 -L* | -R*)
11433 # Internal compiler library paths should come after those
11434 # provided the user. The postdeps already come after the
11435 # user supplied libs so there is no need to process them.
11436 if test -z "$compiler_lib_search_path_CXX"; then
11437 compiler_lib_search_path_CXX="${prev}${p}"
11438 else
11439 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11440 fi
11441 ;;
11442 # The "-l" case would never come before the object being
11443 # linked, so don't bother handling this case.
11444 esac
11445 else
11446 if test -z "$postdeps_CXX"; then
11447 postdeps_CXX="${prev}${p}"
11448 else
11449 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11450 fi
11451 fi
11452 ;;
11453
11454 *.$objext)
11455 # This assumes that the test object file only shows up
11456 # once in the compiler output.
11457 if test "$p" = "conftest.$objext"; then
11458 pre_test_object_deps_done=yes
11459 continue
11460 fi
11461
11462 if test "$pre_test_object_deps_done" = no; then
11463 if test -z "$predep_objects_CXX"; then
11464 predep_objects_CXX="$p"
11465 else
11466 predep_objects_CXX="$predep_objects_CXX $p"
11467 fi
11468 else
11469 if test -z "$postdep_objects_CXX"; then
11470 postdep_objects_CXX="$p"
11471 else
11472 postdep_objects_CXX="$postdep_objects_CXX $p"
11473 fi
11474 fi
11475 ;;
11476
11477 *) ;; # Ignore the rest.
11478
11479 esac
11480 done
11481
11482 # Clean up.
11483 rm -f a.out a.exe
11484else
11485 echo "libtool.m4: error: problem compiling CXX test program"
11486fi
11487
11488$rm -f confest.$objext
11489
11490# PORTME: override above test on systems where it is broken
11491case $host_os in
11492interix3*)
11493 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11494 # hack all around it, let's just trust "g++" to DTRT.
11495 predep_objects_CXX=
11496 postdep_objects_CXX=
11497 postdeps_CXX=
11498 ;;
11499
11500solaris*)
11501 case $cc_basename in
11502 CC*)
11503 # Adding this requires a known-good setup of shared libraries for
11504 # Sun compiler versions before 5.6, else PIC objects from an old
11505 # archive will be linked into the output, leading to subtle bugs.
11506 postdeps_CXX='-lCstd -lCrun'
11507 ;;
11508 esac
11509 ;;
11510esac
11511
11512
11513case " $postdeps_CXX " in
11514*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11515esac
11516
11517lt_prog_compiler_wl_CXX=
11518lt_prog_compiler_pic_CXX=
11519lt_prog_compiler_static_CXX=
11520
11521echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11522echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11523
11524 # C++ specific cases for pic, static, wl, etc.
11525 if test "$GXX" = yes; then
11526 lt_prog_compiler_wl_CXX='-Wl,'
11527 lt_prog_compiler_static_CXX='-static'
11528
11529 case $host_os in
11530 aix*)
11531 # All AIX code is PIC.
11532 if test "$host_cpu" = ia64; then
11533 # AIX 5 now supports IA64 processor
11534 lt_prog_compiler_static_CXX='-Bstatic'
11535 fi
11536 ;;
11537 amigaos*)
11538 # FIXME: we need at least 68020 code to build shared libraries, but
11539 # adding the `-m68020' flag to GCC prevents building anything better,
11540 # like `-m68040'.
11541 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11542 ;;
11543 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11544 # PIC is the default for these OSes.
11545 ;;
11546 mingw* | os2* | pw32*)
11547 # This hack is so that the source file can tell whether it is being
11548 # built for inclusion in a dll (and should export symbols for example).
11549 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11550 ;;
11551 darwin* | rhapsody*)
11552 # PIC is the default on this platform
11553 # Common symbols not allowed in MH_DYLIB files
11554 lt_prog_compiler_pic_CXX='-fno-common'
11555 ;;
11556 *djgpp*)
11557 # DJGPP does not support shared libraries at all
11558 lt_prog_compiler_pic_CXX=
11559 ;;
11560 interix3*)
11561 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11562 # Instead, we relocate shared libraries at runtime.
11563 ;;
11564 sysv4*MP*)
11565 if test -d /usr/nec; then
11566 lt_prog_compiler_pic_CXX=-Kconform_pic
11567 fi
11568 ;;
11569 hpux*)
11570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11571 # not for PA HP-UX.
11572 case $host_cpu in
11573 hppa*64*|ia64*)
11574 ;;
11575 *)
11576 lt_prog_compiler_pic_CXX='-fPIC'
11577 ;;
11578 esac
11579 ;;
11580 *)
11581 lt_prog_compiler_pic_CXX='-fPIC'
11582 ;;
11583 esac
11584 else
11585 case $host_os in
11586 aix4* | aix5*)
11587 # All AIX code is PIC.
11588 if test "$host_cpu" = ia64; then
11589 # AIX 5 now supports IA64 processor
11590 lt_prog_compiler_static_CXX='-Bstatic'
11591 else
11592 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11593 fi
11594 ;;
11595 chorus*)
11596 case $cc_basename in
11597 cxch68*)
11598 # Green Hills C++ Compiler
11599 # _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"
11600 ;;
11601 esac
11602 ;;
11603 darwin*)
11604 # PIC is the default on this platform
11605 # Common symbols not allowed in MH_DYLIB files
11606 case $cc_basename in
11607 xlc*)
11608 lt_prog_compiler_pic_CXX='-qnocommon'
11609 lt_prog_compiler_wl_CXX='-Wl,'
11610 ;;
11611 esac
11612 ;;
11613 dgux*)
11614 case $cc_basename in
11615 ec++*)
11616 lt_prog_compiler_pic_CXX='-KPIC'
11617 ;;
11618 ghcx*)
11619 # Green Hills C++ Compiler
11620 lt_prog_compiler_pic_CXX='-pic'
11621 ;;
11622 *)
11623 ;;
11624 esac
11625 ;;
11626 freebsd* | kfreebsd*-gnu | dragonfly*)
11627 # FreeBSD uses GNU C++
11628 ;;
11629 hpux9* | hpux10* | hpux11*)
11630 case $cc_basename in
11631 CC*)
11632 lt_prog_compiler_wl_CXX='-Wl,'
11633 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11634 if test "$host_cpu" != ia64; then
11635 lt_prog_compiler_pic_CXX='+Z'
11636 fi
11637 ;;
11638 aCC*)
11639 lt_prog_compiler_wl_CXX='-Wl,'
11640 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11641 case $host_cpu in
11642 hppa*64*|ia64*)
11643 # +Z the default
11644 ;;
11645 *)
11646 lt_prog_compiler_pic_CXX='+Z'
11647 ;;
11648 esac
11649 ;;
11650 *)
11651 ;;
11652 esac
11653 ;;
11654 interix*)
11655 # This is c89, which is MS Visual C++ (no shared libs)
11656 # Anyone wants to do a port?
11657 ;;
11658 irix5* | irix6* | nonstopux*)
11659 case $cc_basename in
11660 CC*)
11661 lt_prog_compiler_wl_CXX='-Wl,'
11662 lt_prog_compiler_static_CXX='-non_shared'
11663 # CC pic flag -KPIC is the default.
11664 ;;
11665 *)
11666 ;;
11667 esac
11668 ;;
11669 linux*)
11670 case $cc_basename in
11671 KCC*)
11672 # KAI C++ Compiler
11673 lt_prog_compiler_wl_CXX='--backend -Wl,'
11674 lt_prog_compiler_pic_CXX='-fPIC'
11675 ;;
11676 icpc* | ecpc*)
11677 # Intel C++
11678 lt_prog_compiler_wl_CXX='-Wl,'
11679 lt_prog_compiler_pic_CXX='-KPIC'
11680 lt_prog_compiler_static_CXX='-static'
11681 ;;
11682 pgCC*)
11683 # Portland Group C++ compiler.
11684 lt_prog_compiler_wl_CXX='-Wl,'
11685 lt_prog_compiler_pic_CXX='-fpic'
11686 lt_prog_compiler_static_CXX='-Bstatic'
11687 ;;
11688 cxx*)
11689 # Compaq C++
11690 # Make sure the PIC flag is empty. It appears that all Alpha
11691 # Linux and Compaq Tru64 Unix objects are PIC.
11692 lt_prog_compiler_pic_CXX=
11693 lt_prog_compiler_static_CXX='-non_shared'
11694 ;;
11695 *)
11696 ;;
11697 esac
11698 ;;
11699 lynxos*)
11700 ;;
11701 m88k*)
11702 ;;
11703 mvs*)
11704 case $cc_basename in
11705 cxx*)
11706 lt_prog_compiler_pic_CXX='-W c,exportall'
11707 ;;
11708 *)
11709 ;;
11710 esac
11711 ;;
11712 netbsd*)
11713 ;;
11714 osf3* | osf4* | osf5*)
11715 case $cc_basename in
11716 KCC*)
11717 lt_prog_compiler_wl_CXX='--backend -Wl,'
11718 ;;
11719 RCC*)
11720 # Rational C++ 2.4.1
11721 lt_prog_compiler_pic_CXX='-pic'
11722 ;;
11723 cxx*)
11724 # Digital/Compaq C++
11725 lt_prog_compiler_wl_CXX='-Wl,'
11726 # Make sure the PIC flag is empty. It appears that all Alpha
11727 # Linux and Compaq Tru64 Unix objects are PIC.
11728 lt_prog_compiler_pic_CXX=
11729 lt_prog_compiler_static_CXX='-non_shared'
11730 ;;
11731 *)
11732 ;;
11733 esac
11734 ;;
11735 psos*)
11736 ;;
11737 solaris*)
11738 case $cc_basename in
11739 CC*)
11740 # Sun C++ 4.2, 5.x and Centerline C++
11741 lt_prog_compiler_pic_CXX='-KPIC'
11742 lt_prog_compiler_static_CXX='-Bstatic'
11743 lt_prog_compiler_wl_CXX='-Qoption ld '
11744 ;;
11745 gcx*)
11746 # Green Hills C++ Compiler
11747 lt_prog_compiler_pic_CXX='-PIC'
11748 ;;
11749 *)
11750 ;;
11751 esac
11752 ;;
11753 sunos4*)
11754 case $cc_basename in
11755 CC*)
11756 # Sun C++ 4.x
11757 lt_prog_compiler_pic_CXX='-pic'
11758 lt_prog_compiler_static_CXX='-Bstatic'
11759 ;;
11760 lcc*)
11761 # Lucid
11762 lt_prog_compiler_pic_CXX='-pic'
11763 ;;
11764 *)
11765 ;;
11766 esac
11767 ;;
11768 tandem*)
11769 case $cc_basename in
11770 NCC*)
11771 # NonStop-UX NCC 3.20
11772 lt_prog_compiler_pic_CXX='-KPIC'
11773 ;;
11774 *)
11775 ;;
11776 esac
11777 ;;
11778 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11779 case $cc_basename in
11780 CC*)
11781 lt_prog_compiler_wl_CXX='-Wl,'
11782 lt_prog_compiler_pic_CXX='-KPIC'
11783 lt_prog_compiler_static_CXX='-Bstatic'
11784 ;;
11785 esac
11786 ;;
11787 vxworks*)
11788 ;;
11789 *)
11790 lt_prog_compiler_can_build_shared_CXX=no
11791 ;;
11792 esac
11793 fi
11794
11795echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11796echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11797
11798#
11799# Check to make sure the PIC flag actually works.
11800#
11801if test -n "$lt_prog_compiler_pic_CXX"; then
11802
11803echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11804echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11805if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807else
11808 lt_prog_compiler_pic_works_CXX=no
11809 ac_outfile=conftest.$ac_objext
11810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11811 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11812 # Insert the option either (1) after the last *FLAGS variable, or
11813 # (2) before a word containing "conftest.", or (3) at the end.
11814 # Note that $ac_compile itself does not contain backslashes and begins
11815 # with a dollar sign (not a hyphen), so the echo should work correctly.
11816 # The option is referenced via a variable to avoid confusing sed.
11817 lt_compile=`echo "$ac_compile" | $SED \
11818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11820 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060011821 (eval echo "\"\$as_me:11821: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011822 (eval "$lt_compile" 2>conftest.err)
11823 ac_status=$?
11824 cat conftest.err >&5
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060011825 echo "$as_me:11825: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011826 if (exit $ac_status) && test -s "$ac_outfile"; then
11827 # The compiler can only warn and ignore the option if not recognized
11828 # So say no if there are warnings other than the usual output.
11829 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11831 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11832 lt_prog_compiler_pic_works_CXX=yes
11833 fi
11834 fi
11835 $rm conftest*
11836
11837fi
11838echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11839echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11840
11841if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11842 case $lt_prog_compiler_pic_CXX in
11843 "" | " "*) ;;
11844 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11845 esac
11846else
11847 lt_prog_compiler_pic_CXX=
11848 lt_prog_compiler_can_build_shared_CXX=no
11849fi
11850
11851fi
11852case $host_os in
11853 # For platforms which do not support PIC, -DPIC is meaningless:
11854 *djgpp*)
11855 lt_prog_compiler_pic_CXX=
11856 ;;
11857 *)
11858 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11859 ;;
11860esac
11861
11862#
11863# Check to make sure the static flag actually works.
11864#
11865wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11866echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11867echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11868if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870else
11871 lt_prog_compiler_static_works_CXX=no
11872 save_LDFLAGS="$LDFLAGS"
11873 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11874 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11875 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11876 # The linker can only warn and ignore the option if not recognized
11877 # So say no if there are warnings
11878 if test -s conftest.err; then
11879 # Append any errors to the config.log.
11880 cat conftest.err 1>&5
11881 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11883 if diff conftest.exp conftest.er2 >/dev/null; then
11884 lt_prog_compiler_static_works_CXX=yes
11885 fi
11886 else
11887 lt_prog_compiler_static_works_CXX=yes
11888 fi
11889 fi
11890 $rm conftest*
11891 LDFLAGS="$save_LDFLAGS"
11892
11893fi
11894echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11895echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11896
11897if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11898 :
11899else
11900 lt_prog_compiler_static_CXX=
11901fi
11902
11903
11904echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11905echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11906if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 lt_cv_prog_compiler_c_o_CXX=no
11910 $rm -r conftest 2>/dev/null
11911 mkdir conftest
11912 cd conftest
11913 mkdir out
11914 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11915
11916 lt_compiler_flag="-o out/conftest2.$ac_objext"
11917 # Insert the option either (1) after the last *FLAGS variable, or
11918 # (2) before a word containing "conftest.", or (3) at the end.
11919 # Note that $ac_compile itself does not contain backslashes and begins
11920 # with a dollar sign (not a hyphen), so the echo should work correctly.
11921 lt_compile=`echo "$ac_compile" | $SED \
11922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11924 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060011925 (eval echo "\"\$as_me:11925: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011926 (eval "$lt_compile" 2>out/conftest.err)
11927 ac_status=$?
11928 cat out/conftest.err >&5
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060011929 echo "$as_me:11929: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11931 then
11932 # The compiler can only warn and ignore the option if not recognized
11933 # So say no if there are warnings
11934 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11937 lt_cv_prog_compiler_c_o_CXX=yes
11938 fi
11939 fi
11940 chmod u+w . 2>&5
11941 $rm conftest*
11942 # SGI C++ compiler will create directory out/ii_files/ for
11943 # template instantiation
11944 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11945 $rm out/* && rmdir out
11946 cd ..
11947 rmdir conftest
11948 $rm conftest*
11949
11950fi
11951echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11952echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11953
11954
11955hard_links="nottested"
11956if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11957 # do not overwrite the value of need_locks provided by the user
11958 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11959echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11960 hard_links=yes
11961 $rm conftest*
11962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11963 touch conftest.a
11964 ln conftest.a conftest.b 2>&5 || hard_links=no
11965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11966 echo "$as_me:$LINENO: result: $hard_links" >&5
11967echo "${ECHO_T}$hard_links" >&6
11968 if test "$hard_links" = no; then
11969 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11970echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11971 need_locks=warn
11972 fi
11973else
11974 need_locks=no
11975fi
11976
11977echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11978echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11979
11980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11981 case $host_os in
11982 aix4* | aix5*)
11983 # If we're using GNU nm, then we don't want the "-C" option.
11984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11985 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11986 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'
11987 else
11988 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'
11989 fi
11990 ;;
11991 pw32*)
11992 export_symbols_cmds_CXX="$ltdll_cmds"
11993 ;;
11994 cygwin* | mingw*)
11995 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11996 ;;
11997 *)
11998 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11999 ;;
12000 esac
12001
12002echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12003echo "${ECHO_T}$ld_shlibs_CXX" >&6
12004test "$ld_shlibs_CXX" = no && can_build_shared=no
12005
12006#
12007# Do we need to explicitly link libc?
12008#
12009case "x$archive_cmds_need_lc_CXX" in
12010x|xyes)
12011 # Assume -lc should be added
12012 archive_cmds_need_lc_CXX=yes
12013
12014 if test "$enable_shared" = yes && test "$GCC" = yes; then
12015 case $archive_cmds_CXX in
12016 *'~'*)
12017 # FIXME: we may have to deal with multi-command sequences.
12018 ;;
12019 '$CC '*)
12020 # Test whether the compiler implicitly links with -lc since on some
12021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12022 # to ld, don't add -lc before -lgcc.
12023 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12024echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12025 $rm conftest*
12026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12027
12028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12029 (eval $ac_compile) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } 2>conftest.err; then
12033 soname=conftest
12034 lib=conftest
12035 libobjs=conftest.$ac_objext
12036 deplibs=
12037 wl=$lt_prog_compiler_wl_CXX
12038 pic_flag=$lt_prog_compiler_pic_CXX
12039 compiler_flags=-v
12040 linker_flags=-v
12041 verstring=
12042 output_objdir=.
12043 libname=conftest
12044 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12045 allow_undefined_flag_CXX=
12046 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12047 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }
12051 then
12052 archive_cmds_need_lc_CXX=no
12053 else
12054 archive_cmds_need_lc_CXX=yes
12055 fi
12056 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12057 else
12058 cat conftest.err 1>&5
12059 fi
12060 $rm conftest*
12061 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12062echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12063 ;;
12064 esac
12065 fi
12066 ;;
12067esac
12068
12069echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12070echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12071library_names_spec=
12072libname_spec='lib$name'
12073soname_spec=
12074shrext_cmds=".so"
12075postinstall_cmds=
12076postuninstall_cmds=
12077finish_cmds=
12078finish_eval=
12079shlibpath_var=
12080shlibpath_overrides_runpath=unknown
12081version_type=none
12082dynamic_linker="$host_os ld.so"
12083sys_lib_dlsearch_path_spec="/lib /usr/lib"
12084if test "$GCC" = yes; then
12085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12086 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12087 # if the path contains ";" then we assume it to be the separator
12088 # otherwise default to the standard path separator (i.e. ":") - it is
12089 # assumed that no part of a normal pathname contains ";" but that should
12090 # okay in the real world where ";" in dirpaths is itself problematic.
12091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12092 else
12093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12094 fi
12095else
12096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12097fi
12098need_lib_prefix=unknown
12099hardcode_into_libs=no
12100
12101# when you set need_version to no, make sure it does not cause -set_version
12102# flags to be left without arguments
12103need_version=unknown
12104
12105case $host_os in
12106aix3*)
12107 version_type=linux
12108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12109 shlibpath_var=LIBPATH
12110
12111 # AIX 3 has no versioning support, so we append a major version to the name.
12112 soname_spec='${libname}${release}${shared_ext}$major'
12113 ;;
12114
12115aix4* | aix5*)
12116 version_type=linux
12117 need_lib_prefix=no
12118 need_version=no
12119 hardcode_into_libs=yes
12120 if test "$host_cpu" = ia64; then
12121 # AIX 5 supports IA64
12122 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12123 shlibpath_var=LD_LIBRARY_PATH
12124 else
12125 # With GCC up to 2.95.x, collect2 would create an import file
12126 # for dependence libraries. The import file would start with
12127 # the line `#! .'. This would cause the generated library to
12128 # depend on `.', always an invalid library. This was fixed in
12129 # development snapshots of GCC prior to 3.0.
12130 case $host_os in
12131 aix4 | aix4.[01] | aix4.[01].*)
12132 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12133 echo ' yes '
12134 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12135 :
12136 else
12137 can_build_shared=no
12138 fi
12139 ;;
12140 esac
12141 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12142 # soname into executable. Probably we can add versioning support to
12143 # collect2, so additional links can be useful in future.
12144 if test "$aix_use_runtimelinking" = yes; then
12145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12146 # instead of lib<name>.a to let people know that these are not
12147 # typical AIX shared libraries.
12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149 else
12150 # We preserve .a as extension for shared libraries through AIX4.2
12151 # and later when we are not doing run time linking.
12152 library_names_spec='${libname}${release}.a $libname.a'
12153 soname_spec='${libname}${release}${shared_ext}$major'
12154 fi
12155 shlibpath_var=LIBPATH
12156 fi
12157 ;;
12158
12159amigaos*)
12160 library_names_spec='$libname.ixlibrary $libname.a'
12161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12162 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'
12163 ;;
12164
12165beos*)
12166 library_names_spec='${libname}${shared_ext}'
12167 dynamic_linker="$host_os ld.so"
12168 shlibpath_var=LIBRARY_PATH
12169 ;;
12170
12171bsdi[45]*)
12172 version_type=linux
12173 need_version=no
12174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12175 soname_spec='${libname}${release}${shared_ext}$major'
12176 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12177 shlibpath_var=LD_LIBRARY_PATH
12178 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12179 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12180 # the default ld.so.conf also contains /usr/contrib/lib and
12181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12182 # libtool to hard-code these into programs
12183 ;;
12184
12185cygwin* | mingw* | pw32*)
12186 version_type=windows
12187 shrext_cmds=".dll"
12188 need_version=no
12189 need_lib_prefix=no
12190
12191 case $GCC,$host_os in
12192 yes,cygwin* | yes,mingw* | yes,pw32*)
12193 library_names_spec='$libname.dll.a'
12194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12195 postinstall_cmds='base_file=`basename \${file}`~
12196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12197 dldir=$destdir/`dirname \$dlpath`~
12198 test -d \$dldir || mkdir -p \$dldir~
12199 $install_prog $dir/$dlname \$dldir/$dlname~
12200 chmod a+x \$dldir/$dlname'
12201 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12202 dlpath=$dir/\$dldll~
12203 $rm \$dlpath'
12204 shlibpath_overrides_runpath=yes
12205
12206 case $host_os in
12207 cygwin*)
12208 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12209 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12210 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12211 ;;
12212 mingw*)
12213 # MinGW DLLs use traditional 'lib' prefix
12214 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12215 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12216 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12217 # It is most probably a Windows format PATH printed by
12218 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12219 # path with ; separators, and with drive letters. We can handle the
12220 # drive letters (cygwin fileutils understands them), so leave them,
12221 # especially as we might pass files found there to a mingw objdump,
12222 # which wouldn't understand a cygwinified path. Ahh.
12223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12224 else
12225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12226 fi
12227 ;;
12228 pw32*)
12229 # pw32 DLLs use 'pw' prefix rather than 'lib'
12230 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12231 ;;
12232 esac
12233 ;;
12234
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012235 linux*)
12236 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12238 supports_anon_versioning=no
12239 case `$LD -v 2>/dev/null` in
12240 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12241 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12242 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12243 *\ 2.11.*) ;; # other 2.11 versions
12244 *) supports_anon_versioning=yes ;;
12245 esac
12246 if test $supports_anon_versioning = yes; then
12247 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12248cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12249$echo "local: *; };" >> $output_objdir/$libname.ver~
12250 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12251 else
12252 $archive_expsym_cmds="$archive_cmds"
12253 fi
12254 else
12255 ld_shlibs=no
12256 fi
12257 ;;
12258
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012259 *)
12260 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12261 ;;
12262 esac
12263 dynamic_linker='Win32 ld.exe'
12264 # FIXME: first we should search . and the directory the executable is in
12265 shlibpath_var=PATH
12266 ;;
12267
12268darwin* | rhapsody*)
12269 dynamic_linker="$host_os dyld"
12270 version_type=darwin
12271 need_lib_prefix=no
12272 need_version=no
12273 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12274 soname_spec='${libname}${release}${major}$shared_ext'
12275 shlibpath_overrides_runpath=yes
12276 shlibpath_var=DYLD_LIBRARY_PATH
12277 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12278 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12279 if test "$GCC" = yes; then
12280 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12281 else
12282 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12283 fi
12284 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12285 ;;
12286
12287dgux*)
12288 version_type=linux
12289 need_lib_prefix=no
12290 need_version=no
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12292 soname_spec='${libname}${release}${shared_ext}$major'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 ;;
12295
12296freebsd1*)
12297 dynamic_linker=no
12298 ;;
12299
12300kfreebsd*-gnu)
12301 version_type=linux
12302 need_lib_prefix=no
12303 need_version=no
12304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12305 soname_spec='${libname}${release}${shared_ext}$major'
12306 shlibpath_var=LD_LIBRARY_PATH
12307 shlibpath_overrides_runpath=no
12308 hardcode_into_libs=yes
12309 dynamic_linker='GNU ld.so'
12310 ;;
12311
12312freebsd* | dragonfly*)
12313 # DragonFly does not have aout. When/if they implement a new
12314 # versioning mechanism, adjust this.
12315 if test -x /usr/bin/objformat; then
12316 objformat=`/usr/bin/objformat`
12317 else
12318 case $host_os in
12319 freebsd[123]*) objformat=aout ;;
12320 *) objformat=elf ;;
12321 esac
12322 fi
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012323 # Handle Gentoo/FreeBSD as it was Linux
12324 case $host_vendor in
12325 gentoo)
12326 version_type=linux ;;
12327 *)
12328 version_type=freebsd-$objformat ;;
12329 esac
12330
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012331 case $version_type in
12332 freebsd-elf*)
12333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12334 need_version=no
12335 need_lib_prefix=no
12336 ;;
12337 freebsd-*)
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12339 need_version=yes
12340 ;;
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012341 linux)
12342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12343 soname_spec='${libname}${release}${shared_ext}$major'
12344 need_lib_prefix=no
12345 need_version=no
12346 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012347 esac
12348 shlibpath_var=LD_LIBRARY_PATH
12349 case $host_os in
12350 freebsd2*)
12351 shlibpath_overrides_runpath=yes
12352 ;;
12353 freebsd3.[01]* | freebsdelf3.[01]*)
12354 shlibpath_overrides_runpath=yes
12355 hardcode_into_libs=yes
12356 ;;
12357 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12358 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12359 shlibpath_overrides_runpath=no
12360 hardcode_into_libs=yes
12361 ;;
12362 freebsd*) # from 4.6 on
12363 shlibpath_overrides_runpath=yes
12364 hardcode_into_libs=yes
12365 ;;
12366 esac
12367 ;;
12368
12369gnu*)
12370 version_type=linux
12371 need_lib_prefix=no
12372 need_version=no
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12374 soname_spec='${libname}${release}${shared_ext}$major'
12375 shlibpath_var=LD_LIBRARY_PATH
12376 hardcode_into_libs=yes
12377 ;;
12378
12379hpux9* | hpux10* | hpux11*)
12380 # Give a soname corresponding to the major version so that dld.sl refuses to
12381 # link against other versions.
12382 version_type=sunos
12383 need_lib_prefix=no
12384 need_version=no
12385 case $host_cpu in
12386 ia64*)
12387 shrext_cmds='.so'
12388 hardcode_into_libs=yes
12389 dynamic_linker="$host_os dld.so"
12390 shlibpath_var=LD_LIBRARY_PATH
12391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393 soname_spec='${libname}${release}${shared_ext}$major'
12394 if test "X$HPUX_IA64_MODE" = X32; then
12395 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12396 else
12397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12398 fi
12399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12400 ;;
12401 hppa*64*)
12402 shrext_cmds='.sl'
12403 hardcode_into_libs=yes
12404 dynamic_linker="$host_os dld.sl"
12405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12408 soname_spec='${libname}${release}${shared_ext}$major'
12409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12411 ;;
12412 *)
12413 shrext_cmds='.sl'
12414 dynamic_linker="$host_os dld.sl"
12415 shlibpath_var=SHLIB_PATH
12416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12418 soname_spec='${libname}${release}${shared_ext}$major'
12419 ;;
12420 esac
12421 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12422 postinstall_cmds='chmod 555 $lib'
12423 ;;
12424
12425interix3*)
12426 version_type=linux
12427 need_lib_prefix=no
12428 need_version=no
12429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12430 soname_spec='${libname}${release}${shared_ext}$major'
12431 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=no
12434 hardcode_into_libs=yes
12435 ;;
12436
12437irix5* | irix6* | nonstopux*)
12438 case $host_os in
12439 nonstopux*) version_type=nonstopux ;;
12440 *)
12441 if test "$lt_cv_prog_gnu_ld" = yes; then
12442 version_type=linux
12443 else
12444 version_type=irix
12445 fi ;;
12446 esac
12447 need_lib_prefix=no
12448 need_version=no
12449 soname_spec='${libname}${release}${shared_ext}$major'
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12451 case $host_os in
12452 irix5* | nonstopux*)
12453 libsuff= shlibsuff=
12454 ;;
12455 *)
12456 case $LD in # libtool.m4 will add one of these switches to LD
12457 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12458 libsuff= shlibsuff= libmagic=32-bit;;
12459 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12460 libsuff=32 shlibsuff=N32 libmagic=N32;;
12461 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12462 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12463 *) libsuff= shlibsuff= libmagic=never-match;;
12464 esac
12465 ;;
12466 esac
12467 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12468 shlibpath_overrides_runpath=no
12469 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12470 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12471 hardcode_into_libs=yes
12472 ;;
12473
12474# No shared lib support for Linux oldld, aout, or coff.
12475linux*oldld* | linux*aout* | linux*coff*)
12476 dynamic_linker=no
12477 ;;
12478
12479# This must be Linux ELF.
12480linux*)
12481 version_type=linux
12482 need_lib_prefix=no
12483 need_version=no
12484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12485 soname_spec='${libname}${release}${shared_ext}$major'
12486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12487 shlibpath_var=LD_LIBRARY_PATH
12488 shlibpath_overrides_runpath=no
12489 # This implies no fast_install, which is unacceptable.
12490 # Some rework will be needed to allow for fast_install
12491 # before this can be enabled.
12492 hardcode_into_libs=yes
12493
12494 # Append ld.so.conf contents to the search path
12495 if test -f /etc/ld.so.conf; then
12496 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12497 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12498 fi
12499
12500 # We used to test for /lib/ld.so.1 and disable shared libraries on
12501 # powerpc, because MkLinux only supported shared libraries with the
12502 # GNU dynamic linker. Since this was broken with cross compilers,
12503 # most powerpc-linux boxes support dynamic linking these days and
12504 # people can always --disable-shared, the test was removed, and we
12505 # assume the GNU/Linux dynamic linker is in use.
12506 dynamic_linker='GNU/Linux ld.so'
12507 ;;
12508
12509knetbsd*-gnu)
12510 version_type=linux
12511 need_lib_prefix=no
12512 need_version=no
12513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12514 soname_spec='${libname}${release}${shared_ext}$major'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath=no
12517 hardcode_into_libs=yes
12518 dynamic_linker='GNU ld.so'
12519 ;;
12520
12521netbsd*)
12522 version_type=sunos
12523 need_lib_prefix=no
12524 need_version=no
12525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12528 dynamic_linker='NetBSD (a.out) ld.so'
12529 else
12530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12531 soname_spec='${libname}${release}${shared_ext}$major'
12532 dynamic_linker='NetBSD ld.elf_so'
12533 fi
12534 shlibpath_var=LD_LIBRARY_PATH
12535 shlibpath_overrides_runpath=yes
12536 hardcode_into_libs=yes
12537 ;;
12538
12539newsos6)
12540 version_type=linux
12541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542 shlibpath_var=LD_LIBRARY_PATH
12543 shlibpath_overrides_runpath=yes
12544 ;;
12545
12546nto-qnx*)
12547 version_type=linux
12548 need_lib_prefix=no
12549 need_version=no
12550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12551 soname_spec='${libname}${release}${shared_ext}$major'
12552 shlibpath_var=LD_LIBRARY_PATH
12553 shlibpath_overrides_runpath=yes
12554 ;;
12555
12556openbsd*)
12557 version_type=sunos
12558 sys_lib_dlsearch_path_spec="/usr/lib"
12559 need_lib_prefix=no
12560 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12561 case $host_os in
12562 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12563 *) need_version=no ;;
12564 esac
12565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12567 shlibpath_var=LD_LIBRARY_PATH
12568 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12569 case $host_os in
12570 openbsd2.[89] | openbsd2.[89].*)
12571 shlibpath_overrides_runpath=no
12572 ;;
12573 *)
12574 shlibpath_overrides_runpath=yes
12575 ;;
12576 esac
12577 else
12578 shlibpath_overrides_runpath=yes
12579 fi
12580 ;;
12581
12582os2*)
12583 libname_spec='$name'
12584 shrext_cmds=".dll"
12585 need_lib_prefix=no
12586 library_names_spec='$libname${shared_ext} $libname.a'
12587 dynamic_linker='OS/2 ld.exe'
12588 shlibpath_var=LIBPATH
12589 ;;
12590
12591osf3* | osf4* | osf5*)
12592 version_type=osf
12593 need_lib_prefix=no
12594 need_version=no
12595 soname_spec='${libname}${release}${shared_ext}$major'
12596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12600 ;;
12601
12602solaris*)
12603 version_type=linux
12604 need_lib_prefix=no
12605 need_version=no
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 shlibpath_var=LD_LIBRARY_PATH
12609 shlibpath_overrides_runpath=yes
12610 hardcode_into_libs=yes
12611 # ldd complains unless libraries are executable
12612 postinstall_cmds='chmod +x $lib'
12613 ;;
12614
12615sunos4*)
12616 version_type=sunos
12617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12618 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12619 shlibpath_var=LD_LIBRARY_PATH
12620 shlibpath_overrides_runpath=yes
12621 if test "$with_gnu_ld" = yes; then
12622 need_lib_prefix=no
12623 fi
12624 need_version=yes
12625 ;;
12626
12627sysv4 | sysv4.3*)
12628 version_type=linux
12629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12630 soname_spec='${libname}${release}${shared_ext}$major'
12631 shlibpath_var=LD_LIBRARY_PATH
12632 case $host_vendor in
12633 sni)
12634 shlibpath_overrides_runpath=no
12635 need_lib_prefix=no
12636 export_dynamic_flag_spec='${wl}-Blargedynsym'
12637 runpath_var=LD_RUN_PATH
12638 ;;
12639 siemens)
12640 need_lib_prefix=no
12641 ;;
12642 motorola)
12643 need_lib_prefix=no
12644 need_version=no
12645 shlibpath_overrides_runpath=no
12646 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12647 ;;
12648 esac
12649 ;;
12650
12651sysv4*MP*)
12652 if test -d /usr/nec ;then
12653 version_type=linux
12654 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12655 soname_spec='$libname${shared_ext}.$major'
12656 shlibpath_var=LD_LIBRARY_PATH
12657 fi
12658 ;;
12659
12660sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12661 version_type=freebsd-elf
12662 need_lib_prefix=no
12663 need_version=no
12664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12665 soname_spec='${libname}${release}${shared_ext}$major'
12666 shlibpath_var=LD_LIBRARY_PATH
12667 hardcode_into_libs=yes
12668 if test "$with_gnu_ld" = yes; then
12669 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12670 shlibpath_overrides_runpath=no
12671 else
12672 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12673 shlibpath_overrides_runpath=yes
12674 case $host_os in
12675 sco3.2v5*)
12676 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12677 ;;
12678 esac
12679 fi
12680 sys_lib_dlsearch_path_spec='/usr/lib'
12681 ;;
12682
12683uts4*)
12684 version_type=linux
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 shlibpath_var=LD_LIBRARY_PATH
12688 ;;
12689
12690*)
12691 dynamic_linker=no
12692 ;;
12693esac
12694echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12695echo "${ECHO_T}$dynamic_linker" >&6
12696test "$dynamic_linker" = no && can_build_shared=no
12697
12698variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12699if test "$GCC" = yes; then
12700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12701fi
12702
12703echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12704echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12705hardcode_action_CXX=
12706if test -n "$hardcode_libdir_flag_spec_CXX" || \
12707 test -n "$runpath_var_CXX" || \
12708 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12709
12710 # We can hardcode non-existant directories.
12711 if test "$hardcode_direct_CXX" != no &&
12712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12713 # have to relink, otherwise we might link with an installed library
12714 # when we should be linking with a yet-to-be-installed one
12715 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12716 test "$hardcode_minus_L_CXX" != no; then
12717 # Linking always hardcodes the temporary library directory.
12718 hardcode_action_CXX=relink
12719 else
12720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12721 hardcode_action_CXX=immediate
12722 fi
12723else
12724 # We cannot hardcode anything, or else we can only hardcode existing
12725 # directories.
12726 hardcode_action_CXX=unsupported
12727fi
12728echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12729echo "${ECHO_T}$hardcode_action_CXX" >&6
12730
12731if test "$hardcode_action_CXX" = relink; then
12732 # Fast installation is not supported
12733 enable_fast_install=no
12734elif test "$shlibpath_overrides_runpath" = yes ||
12735 test "$enable_shared" = no; then
12736 # Fast installation is not necessary
12737 enable_fast_install=needless
12738fi
12739
12740
12741# The else clause should only fire when bootstrapping the
12742# libtool distribution, otherwise you forgot to ship ltmain.sh
12743# with your package, and you will get complaints that there are
12744# no rules to generate ltmain.sh.
12745if test -f "$ltmain"; then
12746 # See if we are running on zsh, and set the options which allow our commands through
12747 # without removal of \ escapes.
12748 if test -n "${ZSH_VERSION+set}" ; then
12749 setopt NO_GLOB_SUBST
12750 fi
12751 # Now quote all the things that may contain metacharacters while being
12752 # careful not to overquote the AC_SUBSTed values. We take copies of the
12753 # variables and quote the copies for generation of the libtool script.
12754 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12755 SED SHELL STRIP \
12756 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12757 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12758 deplibs_check_method reload_flag reload_cmds need_locks \
12759 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12760 lt_cv_sys_global_symbol_to_c_name_address \
12761 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12762 old_postinstall_cmds old_postuninstall_cmds \
12763 compiler_CXX \
12764 CC_CXX \
12765 LD_CXX \
12766 lt_prog_compiler_wl_CXX \
12767 lt_prog_compiler_pic_CXX \
12768 lt_prog_compiler_static_CXX \
12769 lt_prog_compiler_no_builtin_flag_CXX \
12770 export_dynamic_flag_spec_CXX \
12771 thread_safe_flag_spec_CXX \
12772 whole_archive_flag_spec_CXX \
12773 enable_shared_with_static_runtimes_CXX \
12774 old_archive_cmds_CXX \
12775 old_archive_from_new_cmds_CXX \
12776 predep_objects_CXX \
12777 postdep_objects_CXX \
12778 predeps_CXX \
12779 postdeps_CXX \
12780 compiler_lib_search_path_CXX \
12781 archive_cmds_CXX \
12782 archive_expsym_cmds_CXX \
12783 postinstall_cmds_CXX \
12784 postuninstall_cmds_CXX \
12785 old_archive_from_expsyms_cmds_CXX \
12786 allow_undefined_flag_CXX \
12787 no_undefined_flag_CXX \
12788 export_symbols_cmds_CXX \
12789 hardcode_libdir_flag_spec_CXX \
12790 hardcode_libdir_flag_spec_ld_CXX \
12791 hardcode_libdir_separator_CXX \
12792 hardcode_automatic_CXX \
12793 module_cmds_CXX \
12794 module_expsym_cmds_CXX \
12795 lt_cv_prog_compiler_c_o_CXX \
12796 exclude_expsyms_CXX \
12797 include_expsyms_CXX; do
12798
12799 case $var in
12800 old_archive_cmds_CXX | \
12801 old_archive_from_new_cmds_CXX | \
12802 archive_cmds_CXX | \
12803 archive_expsym_cmds_CXX | \
12804 module_cmds_CXX | \
12805 module_expsym_cmds_CXX | \
12806 old_archive_from_expsyms_cmds_CXX | \
12807 export_symbols_cmds_CXX | \
12808 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12809 postinstall_cmds | postuninstall_cmds | \
12810 old_postinstall_cmds | old_postuninstall_cmds | \
12811 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12812 # Double-quote double-evaled strings.
12813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12814 ;;
12815 *)
12816 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12817 ;;
12818 esac
12819 done
12820
12821 case $lt_echo in
12822 *'\$0 --fallback-echo"')
12823 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12824 ;;
12825 esac
12826
12827cfgfile="$ofile"
12828
12829 cat <<__EOF__ >> "$cfgfile"
12830# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12831
12832# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12833
12834# Shell to use when invoking shell scripts.
12835SHELL=$lt_SHELL
12836
12837# Whether or not to build shared libraries.
12838build_libtool_libs=$enable_shared
12839
12840# Whether or not to build static libraries.
12841build_old_libs=$enable_static
12842
12843# Whether or not to add -lc for building shared libraries.
12844build_libtool_need_lc=$archive_cmds_need_lc_CXX
12845
12846# Whether or not to disallow shared libs when runtime libs are static
12847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12848
12849# Whether or not to optimize for fast installation.
12850fast_install=$enable_fast_install
12851
12852# The host system.
12853host_alias=$host_alias
12854host=$host
12855host_os=$host_os
12856
12857# The build system.
12858build_alias=$build_alias
12859build=$build
12860build_os=$build_os
12861
12862# An echo program that does not interpret backslashes.
12863echo=$lt_echo
12864
12865# The archiver.
12866AR=$lt_AR
12867AR_FLAGS=$lt_AR_FLAGS
12868
12869# A C compiler.
12870LTCC=$lt_LTCC
12871
12872# LTCC compiler flags.
12873LTCFLAGS=$lt_LTCFLAGS
12874
12875# A language-specific compiler.
12876CC=$lt_compiler_CXX
12877
12878# Is the compiler the GNU C compiler?
12879with_gcc=$GCC_CXX
12880
12881# An ERE matcher.
12882EGREP=$lt_EGREP
12883
12884# The linker used to build libraries.
12885LD=$lt_LD_CXX
12886
12887# Whether we need hard or soft links.
12888LN_S=$lt_LN_S
12889
12890# A BSD-compatible nm program.
12891NM=$lt_NM
12892
12893# A symbol stripping program
12894STRIP=$lt_STRIP
12895
12896# Used to examine libraries when file_magic_cmd begins "file"
12897MAGIC_CMD=$MAGIC_CMD
12898
12899# Used on cygwin: DLL creation program.
12900DLLTOOL="$DLLTOOL"
12901
12902# Used on cygwin: object dumper.
12903OBJDUMP="$OBJDUMP"
12904
12905# Used on cygwin: assembler.
12906AS="$AS"
12907
12908# The name of the directory that contains temporary libtool files.
12909objdir=$objdir
12910
12911# How to create reloadable object files.
12912reload_flag=$lt_reload_flag
12913reload_cmds=$lt_reload_cmds
12914
12915# How to pass a linker flag through the compiler.
12916wl=$lt_lt_prog_compiler_wl_CXX
12917
12918# Object file suffix (normally "o").
12919objext="$ac_objext"
12920
12921# Old archive suffix (normally "a").
12922libext="$libext"
12923
12924# Shared library suffix (normally ".so").
12925shrext_cmds='$shrext_cmds'
12926
12927# Executable file suffix (normally "").
12928exeext="$exeext"
12929
12930# Additional compiler flags for building library objects.
12931pic_flag=$lt_lt_prog_compiler_pic_CXX
12932pic_mode=$pic_mode
12933
12934# What is the maximum length of a command?
12935max_cmd_len=$lt_cv_sys_max_cmd_len
12936
12937# Does compiler simultaneously support -c and -o options?
12938compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12939
12940# Must we lock files when doing compilation?
12941need_locks=$lt_need_locks
12942
12943# Do we need the lib prefix for modules?
12944need_lib_prefix=$need_lib_prefix
12945
12946# Do we need a version for libraries?
12947need_version=$need_version
12948
12949# Whether dlopen is supported.
12950dlopen_support=$enable_dlopen
12951
12952# Whether dlopen of programs is supported.
12953dlopen_self=$enable_dlopen_self
12954
12955# Whether dlopen of statically linked programs is supported.
12956dlopen_self_static=$enable_dlopen_self_static
12957
12958# Compiler flag to prevent dynamic linking.
12959link_static_flag=$lt_lt_prog_compiler_static_CXX
12960
12961# Compiler flag to turn off builtin functions.
12962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12963
12964# Compiler flag to allow reflexive dlopens.
12965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12966
12967# Compiler flag to generate shared objects directly from archives.
12968whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12969
12970# Compiler flag to generate thread-safe objects.
12971thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12972
12973# Library versioning type.
12974version_type=$version_type
12975
12976# Format of library name prefix.
12977libname_spec=$lt_libname_spec
12978
12979# List of archive names. First name is the real one, the rest are links.
12980# The last name is the one that the linker finds with -lNAME.
12981library_names_spec=$lt_library_names_spec
12982
12983# The coded name of the library, if different from the real name.
12984soname_spec=$lt_soname_spec
12985
12986# Commands used to build and install an old-style archive.
12987RANLIB=$lt_RANLIB
12988old_archive_cmds=$lt_old_archive_cmds_CXX
12989old_postinstall_cmds=$lt_old_postinstall_cmds
12990old_postuninstall_cmds=$lt_old_postuninstall_cmds
12991
12992# Create an old-style archive from a shared archive.
12993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12994
12995# Create a temporary old-style archive to link instead of a shared archive.
12996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12997
12998# Commands used to build and install a shared archive.
12999archive_cmds=$lt_archive_cmds_CXX
13000archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13001postinstall_cmds=$lt_postinstall_cmds
13002postuninstall_cmds=$lt_postuninstall_cmds
13003
13004# Commands used to build a loadable module (assumed same as above if empty)
13005module_cmds=$lt_module_cmds_CXX
13006module_expsym_cmds=$lt_module_expsym_cmds_CXX
13007
13008# Commands to strip libraries.
13009old_striplib=$lt_old_striplib
13010striplib=$lt_striplib
13011
13012# Dependencies to place before the objects being linked to create a
13013# shared library.
13014predep_objects=$lt_predep_objects_CXX
13015
13016# Dependencies to place after the objects being linked to create a
13017# shared library.
13018postdep_objects=$lt_postdep_objects_CXX
13019
13020# Dependencies to place before the objects being linked to create a
13021# shared library.
13022predeps=$lt_predeps_CXX
13023
13024# Dependencies to place after the objects being linked to create a
13025# shared library.
13026postdeps=$lt_postdeps_CXX
13027
13028# The library search path used internally by the compiler when linking
13029# a shared library.
13030compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13031
13032# Method to check whether dependent libraries are shared objects.
13033deplibs_check_method=$lt_deplibs_check_method
13034
13035# Command to use when deplibs_check_method == file_magic.
13036file_magic_cmd=$lt_file_magic_cmd
13037
13038# Flag that allows shared libraries with undefined symbols to be built.
13039allow_undefined_flag=$lt_allow_undefined_flag_CXX
13040
13041# Flag that forces no undefined symbols.
13042no_undefined_flag=$lt_no_undefined_flag_CXX
13043
13044# Commands used to finish a libtool library installation in a directory.
13045finish_cmds=$lt_finish_cmds
13046
13047# Same as above, but a single script fragment to be evaled but not shown.
13048finish_eval=$lt_finish_eval
13049
13050# Take the output of nm and produce a listing of raw symbols and C names.
13051global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13052
13053# Transform the output of nm in a proper C declaration
13054global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13055
13056# Transform the output of nm in a C name address pair
13057global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13058
13059# This is the shared library runtime path variable.
13060runpath_var=$runpath_var
13061
13062# This is the shared library path variable.
13063shlibpath_var=$shlibpath_var
13064
13065# Is shlibpath searched before the hard-coded library search path?
13066shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13067
13068# How to hardcode a shared library path into an executable.
13069hardcode_action=$hardcode_action_CXX
13070
13071# Whether we should hardcode library paths into libraries.
13072hardcode_into_libs=$hardcode_into_libs
13073
13074# Flag to hardcode \$libdir into a binary during linking.
13075# This must work even if \$libdir does not exist.
13076hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13077
13078# If ld is used when linking, flag to hardcode \$libdir into
13079# a binary during linking. This must work even if \$libdir does
13080# not exist.
13081hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13082
13083# Whether we need a single -rpath flag with a separated argument.
13084hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13085
13086# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13087# resulting binary.
13088hardcode_direct=$hardcode_direct_CXX
13089
13090# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13091# resulting binary.
13092hardcode_minus_L=$hardcode_minus_L_CXX
13093
13094# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13095# the resulting binary.
13096hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13097
13098# Set to yes if building a shared library automatically hardcodes DIR into the library
13099# and all subsequent libraries and executables linked against it.
13100hardcode_automatic=$hardcode_automatic_CXX
13101
13102# Variables whose values should be saved in libtool wrapper scripts and
13103# restored at relink time.
13104variables_saved_for_relink="$variables_saved_for_relink"
13105
13106# Whether libtool must link a program against all its dependency libraries.
13107link_all_deplibs=$link_all_deplibs_CXX
13108
13109# Compile-time system search path for libraries
13110sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13111
13112# Run-time system search path for libraries
13113sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13114
13115# Fix the shell variable \$srcfile for the compiler.
13116fix_srcfile_path="$fix_srcfile_path_CXX"
13117
13118# Set to yes if exported symbols are required.
13119always_export_symbols=$always_export_symbols_CXX
13120
13121# The commands to list exported symbols.
13122export_symbols_cmds=$lt_export_symbols_cmds_CXX
13123
13124# The commands to extract the exported symbol list from a shared archive.
13125extract_expsyms_cmds=$lt_extract_expsyms_cmds
13126
13127# Symbols that should not be listed in the preloaded symbols.
13128exclude_expsyms=$lt_exclude_expsyms_CXX
13129
13130# Symbols that must always be exported.
13131include_expsyms=$lt_include_expsyms_CXX
13132
13133# ### END LIBTOOL TAG CONFIG: $tagname
13134
13135__EOF__
13136
13137
13138else
13139 # If there is no Makefile yet, we rely on a make rule to execute
13140 # `config.status --recheck' to rerun these tests and create the
13141 # libtool script then.
13142 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13143 if test -f "$ltmain_in"; then
13144 test -f Makefile && make "$ltmain"
13145 fi
13146fi
13147
13148
13149ac_ext=c
13150ac_cpp='$CPP $CPPFLAGS'
13151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13153ac_compiler_gnu=$ac_cv_c_compiler_gnu
13154
13155CC=$lt_save_CC
13156LDCXX=$LD
13157LD=$lt_save_LD
13158GCC=$lt_save_GCC
13159with_gnu_ldcxx=$with_gnu_ld
13160with_gnu_ld=$lt_save_with_gnu_ld
13161lt_cv_path_LDCXX=$lt_cv_path_LD
13162lt_cv_path_LD=$lt_save_path_LD
13163lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13164lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13165
13166 else
13167 tagname=""
13168 fi
13169 ;;
13170
13171 F77)
13172 if test -n "$F77" && test "X$F77" != "Xno"; then
13173
13174ac_ext=f
13175ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13176ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13178
13179
13180archive_cmds_need_lc_F77=no
13181allow_undefined_flag_F77=
13182always_export_symbols_F77=no
13183archive_expsym_cmds_F77=
13184export_dynamic_flag_spec_F77=
13185hardcode_direct_F77=no
13186hardcode_libdir_flag_spec_F77=
13187hardcode_libdir_flag_spec_ld_F77=
13188hardcode_libdir_separator_F77=
13189hardcode_minus_L_F77=no
13190hardcode_automatic_F77=no
13191module_cmds_F77=
13192module_expsym_cmds_F77=
13193link_all_deplibs_F77=unknown
13194old_archive_cmds_F77=$old_archive_cmds
13195no_undefined_flag_F77=
13196whole_archive_flag_spec_F77=
13197enable_shared_with_static_runtimes_F77=no
13198
13199# Source file extension for f77 test sources.
13200ac_ext=f
13201
13202# Object file extension for compiled f77 test sources.
13203objext=o
13204objext_F77=$objext
13205
13206# Code to be used in simple compile tests
13207lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13208
13209# Code to be used in simple link tests
13210lt_simple_link_test_code=" program t\n end\n"
13211
13212# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13213
13214# If no C compiler was specified, use CC.
13215LTCC=${LTCC-"$CC"}
13216
13217# If no C compiler flags were specified, use CFLAGS.
13218LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13219
13220# Allow CC to be a program name with arguments.
13221compiler=$CC
13222
13223
13224# save warnings/boilerplate of simple test code
13225ac_outfile=conftest.$ac_objext
13226printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13227eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13228_lt_compiler_boilerplate=`cat conftest.err`
13229$rm conftest*
13230
13231ac_outfile=conftest.$ac_objext
13232printf "$lt_simple_link_test_code" >conftest.$ac_ext
13233eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13234_lt_linker_boilerplate=`cat conftest.err`
13235$rm conftest*
13236
13237
13238# Allow CC to be a program name with arguments.
13239lt_save_CC="$CC"
13240CC=${F77-"f77"}
13241compiler=$CC
13242compiler_F77=$CC
13243for cc_temp in $compiler""; do
13244 case $cc_temp in
13245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13247 \-*) ;;
13248 *) break;;
13249 esac
13250done
13251cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13252
13253
13254echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13255echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13256echo "$as_me:$LINENO: result: $can_build_shared" >&5
13257echo "${ECHO_T}$can_build_shared" >&6
13258
13259echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13260echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13261test "$can_build_shared" = "no" && enable_shared=no
13262
13263# On AIX, shared libraries and static libraries use the same namespace, and
13264# are all built from PIC.
13265case $host_os in
13266aix3*)
13267 test "$enable_shared" = yes && enable_static=no
13268 if test -n "$RANLIB"; then
13269 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13270 postinstall_cmds='$RANLIB $lib'
13271 fi
13272 ;;
13273aix4* | aix5*)
13274 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13275 test "$enable_shared" = yes && enable_static=no
13276 fi
13277 ;;
13278esac
13279echo "$as_me:$LINENO: result: $enable_shared" >&5
13280echo "${ECHO_T}$enable_shared" >&6
13281
13282echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13283echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13284# Make sure either enable_shared or enable_static is yes.
13285test "$enable_shared" = yes || enable_static=yes
13286echo "$as_me:$LINENO: result: $enable_static" >&5
13287echo "${ECHO_T}$enable_static" >&6
13288
13289GCC_F77="$G77"
13290LD_F77="$LD"
13291
13292lt_prog_compiler_wl_F77=
13293lt_prog_compiler_pic_F77=
13294lt_prog_compiler_static_F77=
13295
13296echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13297echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13298
13299 if test "$GCC" = yes; then
13300 lt_prog_compiler_wl_F77='-Wl,'
13301 lt_prog_compiler_static_F77='-static'
13302
13303 case $host_os in
13304 aix*)
13305 # All AIX code is PIC.
13306 if test "$host_cpu" = ia64; then
13307 # AIX 5 now supports IA64 processor
13308 lt_prog_compiler_static_F77='-Bstatic'
13309 fi
13310 ;;
13311
13312 amigaos*)
13313 # FIXME: we need at least 68020 code to build shared libraries, but
13314 # adding the `-m68020' flag to GCC prevents building anything better,
13315 # like `-m68040'.
13316 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13317 ;;
13318
13319 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13320 # PIC is the default for these OSes.
13321 ;;
13322
13323 mingw* | pw32* | os2*)
13324 # This hack is so that the source file can tell whether it is being
13325 # built for inclusion in a dll (and should export symbols for example).
13326 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13327 ;;
13328
13329 darwin* | rhapsody*)
13330 # PIC is the default on this platform
13331 # Common symbols not allowed in MH_DYLIB files
13332 lt_prog_compiler_pic_F77='-fno-common'
13333 ;;
13334
13335 interix3*)
13336 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13337 # Instead, we relocate shared libraries at runtime.
13338 ;;
13339
13340 msdosdjgpp*)
13341 # Just because we use GCC doesn't mean we suddenly get shared libraries
13342 # on systems that don't support them.
13343 lt_prog_compiler_can_build_shared_F77=no
13344 enable_shared=no
13345 ;;
13346
13347 sysv4*MP*)
13348 if test -d /usr/nec; then
13349 lt_prog_compiler_pic_F77=-Kconform_pic
13350 fi
13351 ;;
13352
13353 hpux*)
13354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13355 # not for PA HP-UX.
13356 case $host_cpu in
13357 hppa*64*|ia64*)
13358 # +Z the default
13359 ;;
13360 *)
13361 lt_prog_compiler_pic_F77='-fPIC'
13362 ;;
13363 esac
13364 ;;
13365
13366 *)
13367 lt_prog_compiler_pic_F77='-fPIC'
13368 ;;
13369 esac
13370 else
13371 # PORTME Check for flag to pass linker flags through the system compiler.
13372 case $host_os in
13373 aix*)
13374 lt_prog_compiler_wl_F77='-Wl,'
13375 if test "$host_cpu" = ia64; then
13376 # AIX 5 now supports IA64 processor
13377 lt_prog_compiler_static_F77='-Bstatic'
13378 else
13379 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13380 fi
13381 ;;
13382 darwin*)
13383 # PIC is the default on this platform
13384 # Common symbols not allowed in MH_DYLIB files
13385 case $cc_basename in
13386 xlc*)
13387 lt_prog_compiler_pic_F77='-qnocommon'
13388 lt_prog_compiler_wl_F77='-Wl,'
13389 ;;
13390 esac
13391 ;;
13392
13393 mingw* | pw32* | os2*)
13394 # This hack is so that the source file can tell whether it is being
13395 # built for inclusion in a dll (and should export symbols for example).
13396 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13397 ;;
13398
13399 hpux9* | hpux10* | hpux11*)
13400 lt_prog_compiler_wl_F77='-Wl,'
13401 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13402 # not for PA HP-UX.
13403 case $host_cpu in
13404 hppa*64*|ia64*)
13405 # +Z the default
13406 ;;
13407 *)
13408 lt_prog_compiler_pic_F77='+Z'
13409 ;;
13410 esac
13411 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13412 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13413 ;;
13414
13415 irix5* | irix6* | nonstopux*)
13416 lt_prog_compiler_wl_F77='-Wl,'
13417 # PIC (with -KPIC) is the default.
13418 lt_prog_compiler_static_F77='-non_shared'
13419 ;;
13420
13421 newsos6)
13422 lt_prog_compiler_pic_F77='-KPIC'
13423 lt_prog_compiler_static_F77='-Bstatic'
13424 ;;
13425
13426 linux*)
13427 case $cc_basename in
13428 icc* | ecc*)
13429 lt_prog_compiler_wl_F77='-Wl,'
13430 lt_prog_compiler_pic_F77='-KPIC'
13431 lt_prog_compiler_static_F77='-static'
13432 ;;
13433 pgcc* | pgf77* | pgf90* | pgf95*)
13434 # Portland Group compilers (*not* the Pentium gcc compiler,
13435 # which looks to be a dead project)
13436 lt_prog_compiler_wl_F77='-Wl,'
13437 lt_prog_compiler_pic_F77='-fpic'
13438 lt_prog_compiler_static_F77='-Bstatic'
13439 ;;
13440 ccc*)
13441 lt_prog_compiler_wl_F77='-Wl,'
13442 # All Alpha code is PIC.
13443 lt_prog_compiler_static_F77='-non_shared'
13444 ;;
13445 esac
13446 ;;
13447
13448 osf3* | osf4* | osf5*)
13449 lt_prog_compiler_wl_F77='-Wl,'
13450 # All OSF/1 code is PIC.
13451 lt_prog_compiler_static_F77='-non_shared'
13452 ;;
13453
13454 solaris*)
13455 lt_prog_compiler_pic_F77='-KPIC'
13456 lt_prog_compiler_static_F77='-Bstatic'
13457 case $cc_basename in
13458 f77* | f90* | f95*)
13459 lt_prog_compiler_wl_F77='-Qoption ld ';;
13460 *)
13461 lt_prog_compiler_wl_F77='-Wl,';;
13462 esac
13463 ;;
13464
13465 sunos4*)
13466 lt_prog_compiler_wl_F77='-Qoption ld '
13467 lt_prog_compiler_pic_F77='-PIC'
13468 lt_prog_compiler_static_F77='-Bstatic'
13469 ;;
13470
13471 sysv4 | sysv4.2uw2* | sysv4.3*)
13472 lt_prog_compiler_wl_F77='-Wl,'
13473 lt_prog_compiler_pic_F77='-KPIC'
13474 lt_prog_compiler_static_F77='-Bstatic'
13475 ;;
13476
13477 sysv4*MP*)
13478 if test -d /usr/nec ;then
13479 lt_prog_compiler_pic_F77='-Kconform_pic'
13480 lt_prog_compiler_static_F77='-Bstatic'
13481 fi
13482 ;;
13483
13484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13485 lt_prog_compiler_wl_F77='-Wl,'
13486 lt_prog_compiler_pic_F77='-KPIC'
13487 lt_prog_compiler_static_F77='-Bstatic'
13488 ;;
13489
13490 unicos*)
13491 lt_prog_compiler_wl_F77='-Wl,'
13492 lt_prog_compiler_can_build_shared_F77=no
13493 ;;
13494
13495 uts4*)
13496 lt_prog_compiler_pic_F77='-pic'
13497 lt_prog_compiler_static_F77='-Bstatic'
13498 ;;
13499
13500 *)
13501 lt_prog_compiler_can_build_shared_F77=no
13502 ;;
13503 esac
13504 fi
13505
13506echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13507echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13508
13509#
13510# Check to make sure the PIC flag actually works.
13511#
13512if test -n "$lt_prog_compiler_pic_F77"; then
13513
13514echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13515echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13516if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518else
13519 lt_prog_compiler_pic_works_F77=no
13520 ac_outfile=conftest.$ac_objext
13521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13522 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13523 # Insert the option either (1) after the last *FLAGS variable, or
13524 # (2) before a word containing "conftest.", or (3) at the end.
13525 # Note that $ac_compile itself does not contain backslashes and begins
13526 # with a dollar sign (not a hyphen), so the echo should work correctly.
13527 # The option is referenced via a variable to avoid confusing sed.
13528 lt_compile=`echo "$ac_compile" | $SED \
13529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13531 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060013532 (eval echo "\"\$as_me:13532: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013533 (eval "$lt_compile" 2>conftest.err)
13534 ac_status=$?
13535 cat conftest.err >&5
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060013536 echo "$as_me:13536: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013537 if (exit $ac_status) && test -s "$ac_outfile"; then
13538 # The compiler can only warn and ignore the option if not recognized
13539 # So say no if there are warnings other than the usual output.
13540 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13543 lt_prog_compiler_pic_works_F77=yes
13544 fi
13545 fi
13546 $rm conftest*
13547
13548fi
13549echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13550echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13551
13552if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13553 case $lt_prog_compiler_pic_F77 in
13554 "" | " "*) ;;
13555 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13556 esac
13557else
13558 lt_prog_compiler_pic_F77=
13559 lt_prog_compiler_can_build_shared_F77=no
13560fi
13561
13562fi
13563case $host_os in
13564 # For platforms which do not support PIC, -DPIC is meaningless:
13565 *djgpp*)
13566 lt_prog_compiler_pic_F77=
13567 ;;
13568 *)
13569 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13570 ;;
13571esac
13572
13573#
13574# Check to make sure the static flag actually works.
13575#
13576wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13577echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13578echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13579if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581else
13582 lt_prog_compiler_static_works_F77=no
13583 save_LDFLAGS="$LDFLAGS"
13584 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13585 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13587 # The linker can only warn and ignore the option if not recognized
13588 # So say no if there are warnings
13589 if test -s conftest.err; then
13590 # Append any errors to the config.log.
13591 cat conftest.err 1>&5
13592 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13594 if diff conftest.exp conftest.er2 >/dev/null; then
13595 lt_prog_compiler_static_works_F77=yes
13596 fi
13597 else
13598 lt_prog_compiler_static_works_F77=yes
13599 fi
13600 fi
13601 $rm conftest*
13602 LDFLAGS="$save_LDFLAGS"
13603
13604fi
13605echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13606echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13607
13608if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13609 :
13610else
13611 lt_prog_compiler_static_F77=
13612fi
13613
13614
13615echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13616echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13617if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619else
13620 lt_cv_prog_compiler_c_o_F77=no
13621 $rm -r conftest 2>/dev/null
13622 mkdir conftest
13623 cd conftest
13624 mkdir out
13625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13626
13627 lt_compiler_flag="-o out/conftest2.$ac_objext"
13628 # Insert the option either (1) after the last *FLAGS variable, or
13629 # (2) before a word containing "conftest.", or (3) at the end.
13630 # Note that $ac_compile itself does not contain backslashes and begins
13631 # with a dollar sign (not a hyphen), so the echo should work correctly.
13632 lt_compile=`echo "$ac_compile" | $SED \
13633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060013636 (eval echo "\"\$as_me:13636: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013637 (eval "$lt_compile" 2>out/conftest.err)
13638 ac_status=$?
13639 cat out/conftest.err >&5
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060013640 echo "$as_me:13640: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13642 then
13643 # The compiler can only warn and ignore the option if not recognized
13644 # So say no if there are warnings
13645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13648 lt_cv_prog_compiler_c_o_F77=yes
13649 fi
13650 fi
13651 chmod u+w . 2>&5
13652 $rm conftest*
13653 # SGI C++ compiler will create directory out/ii_files/ for
13654 # template instantiation
13655 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13656 $rm out/* && rmdir out
13657 cd ..
13658 rmdir conftest
13659 $rm conftest*
13660
13661fi
13662echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13663echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13664
13665
13666hard_links="nottested"
13667if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13668 # do not overwrite the value of need_locks provided by the user
13669 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13670echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13671 hard_links=yes
13672 $rm conftest*
13673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13674 touch conftest.a
13675 ln conftest.a conftest.b 2>&5 || hard_links=no
13676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13677 echo "$as_me:$LINENO: result: $hard_links" >&5
13678echo "${ECHO_T}$hard_links" >&6
13679 if test "$hard_links" = no; then
13680 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13681echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13682 need_locks=warn
13683 fi
13684else
13685 need_locks=no
13686fi
13687
13688echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13689echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13690
13691 runpath_var=
13692 allow_undefined_flag_F77=
13693 enable_shared_with_static_runtimes_F77=no
13694 archive_cmds_F77=
13695 archive_expsym_cmds_F77=
13696 old_archive_From_new_cmds_F77=
13697 old_archive_from_expsyms_cmds_F77=
13698 export_dynamic_flag_spec_F77=
13699 whole_archive_flag_spec_F77=
13700 thread_safe_flag_spec_F77=
13701 hardcode_libdir_flag_spec_F77=
13702 hardcode_libdir_flag_spec_ld_F77=
13703 hardcode_libdir_separator_F77=
13704 hardcode_direct_F77=no
13705 hardcode_minus_L_F77=no
13706 hardcode_shlibpath_var_F77=unsupported
13707 link_all_deplibs_F77=unknown
13708 hardcode_automatic_F77=no
13709 module_cmds_F77=
13710 module_expsym_cmds_F77=
13711 always_export_symbols_F77=no
13712 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13713 # include_expsyms should be a list of space-separated symbols to be *always*
13714 # included in the symbol list
13715 include_expsyms_F77=
13716 # exclude_expsyms can be an extended regexp of symbols to exclude
13717 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13718 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13719 # as well as any symbol that contains `d'.
13720 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13721 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13722 # platforms (ab)use it in PIC code, but their linkers get confused if
13723 # the symbol is explicitly referenced. Since portable code cannot
13724 # rely on this symbol name, it's probably fine to never include it in
13725 # preloaded symbol tables.
13726 extract_expsyms_cmds=
13727 # Just being paranoid about ensuring that cc_basename is set.
13728 for cc_temp in $compiler""; do
13729 case $cc_temp in
13730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13732 \-*) ;;
13733 *) break;;
13734 esac
13735done
13736cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13737
13738 case $host_os in
13739 cygwin* | mingw* | pw32*)
13740 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13741 # When not using gcc, we currently assume that we are using
13742 # Microsoft Visual C++.
13743 if test "$GCC" != yes; then
13744 with_gnu_ld=no
13745 fi
13746 ;;
13747 interix*)
13748 # we just hope/assume this is gcc and not c89 (= MSVC++)
13749 with_gnu_ld=yes
13750 ;;
13751 openbsd*)
13752 with_gnu_ld=no
13753 ;;
13754 esac
13755
13756 ld_shlibs_F77=yes
13757 if test "$with_gnu_ld" = yes; then
13758 # If archive_cmds runs LD, not CC, wlarc should be empty
13759 wlarc='${wl}'
13760
13761 # Set some defaults for GNU ld with shared library support. These
13762 # are reset later if shared libraries are not supported. Putting them
13763 # here allows them to be overridden if necessary.
13764 runpath_var=LD_RUN_PATH
13765 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13766 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13767 # ancient GNU ld didn't support --whole-archive et. al.
13768 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13769 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13770 else
13771 whole_archive_flag_spec_F77=
13772 fi
13773 supports_anon_versioning=no
13774 case `$LD -v 2>/dev/null` in
13775 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13778 *\ 2.11.*) ;; # other 2.11 versions
13779 *) supports_anon_versioning=yes ;;
13780 esac
13781
13782 # See if GNU ld supports shared libraries.
13783 case $host_os in
13784 aix3* | aix4* | aix5*)
13785 # On AIX/PPC, the GNU linker is very broken
13786 if test "$host_cpu" != ia64; then
13787 ld_shlibs_F77=no
13788 cat <<EOF 1>&2
13789
13790*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13791*** to be unable to reliably create shared libraries on AIX.
13792*** Therefore, libtool is disabling shared libraries support. If you
13793*** really care for shared libraries, you may want to modify your PATH
13794*** so that a non-GNU linker is found, and then restart.
13795
13796EOF
13797 fi
13798 ;;
13799
13800 amigaos*)
13801 archive_cmds_F77='$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)'
13802 hardcode_libdir_flag_spec_F77='-L$libdir'
13803 hardcode_minus_L_F77=yes
13804
13805 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13806 # that the semantics of dynamic libraries on AmigaOS, at least up
13807 # to version 4, is to share data among multiple programs linked
13808 # with the same dynamic library. Since this doesn't match the
13809 # behavior of shared libraries on other platforms, we can't use
13810 # them.
13811 ld_shlibs_F77=no
13812 ;;
13813
13814 beos*)
13815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13816 allow_undefined_flag_F77=unsupported
13817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13818 # support --undefined. This deserves some investigation. FIXME
13819 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820 else
13821 ld_shlibs_F77=no
13822 fi
13823 ;;
13824
13825 cygwin* | mingw* | pw32*)
13826 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13827 # as there is no search path for DLLs.
13828 hardcode_libdir_flag_spec_F77='-L$libdir'
13829 allow_undefined_flag_F77=unsupported
13830 always_export_symbols_F77=no
13831 enable_shared_with_static_runtimes_F77=yes
13832 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13833
13834 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13835 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13836 # If the export-symbols file already is a .def file (1st line
13837 # is EXPORTS), use it as is; otherwise, prepend...
13838 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13839 cp $export_symbols $output_objdir/$soname.def;
13840 else
13841 echo EXPORTS > $output_objdir/$soname.def;
13842 cat $export_symbols >> $output_objdir/$soname.def;
13843 fi~
13844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13845 else
13846 ld_shlibs_F77=no
13847 fi
13848 ;;
13849
13850 interix3*)
13851 hardcode_direct_F77=no
13852 hardcode_shlibpath_var_F77=no
13853 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13854 export_dynamic_flag_spec_F77='${wl}-E'
13855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13856 # Instead, shared libraries are loaded at an image base (0x10000000 by
13857 # default) and relocated if they conflict, which is a slow very memory
13858 # consuming and fragmenting process. To avoid this, we pick a random,
13859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13860 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13861 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13862 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13863 ;;
13864
13865 linux*)
13866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13867 tmp_addflag=
13868 case $cc_basename,$host_cpu in
13869 pgcc*) # Portland Group C compiler
13870 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13871 tmp_addflag=' $pic_flag'
13872 ;;
13873 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13874 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13875 tmp_addflag=' $pic_flag -Mnomain' ;;
13876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13877 tmp_addflag=' -i_dynamic' ;;
13878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13879 tmp_addflag=' -i_dynamic -nofor_main' ;;
13880 ifc* | ifort*) # Intel Fortran compiler
13881 tmp_addflag=' -nofor_main' ;;
13882 esac
13883 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13884
13885 if test $supports_anon_versioning = yes; then
13886 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13888 $echo "local: *; };" >> $output_objdir/$libname.ver~
13889 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13890 fi
13891 else
13892 ld_shlibs_F77=no
13893 fi
13894 ;;
13895
13896 netbsd*)
13897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13898 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13899 wlarc=
13900 else
13901 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13903 fi
13904 ;;
13905
13906 solaris*)
13907 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13908 ld_shlibs_F77=no
13909 cat <<EOF 1>&2
13910
13911*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13912*** create shared libraries on Solaris systems. Therefore, libtool
13913*** is disabling shared libraries support. We urge you to upgrade GNU
13914*** binutils to release 2.9.1 or newer. Another option is to modify
13915*** your PATH or compiler configuration so that the native linker is
13916*** used, and then restart.
13917
13918EOF
13919 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13920 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13922 else
13923 ld_shlibs_F77=no
13924 fi
13925 ;;
13926
13927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13928 case `$LD -v 2>&1` in
13929 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13930 ld_shlibs_F77=no
13931 cat <<_LT_EOF 1>&2
13932
13933*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13934*** reliably create shared libraries on SCO systems. Therefore, libtool
13935*** is disabling shared libraries support. We urge you to upgrade GNU
13936*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13937*** your PATH or compiler configuration so that the native linker is
13938*** used, and then restart.
13939
13940_LT_EOF
13941 ;;
13942 *)
13943 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13944 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13946 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13947 else
13948 ld_shlibs_F77=no
13949 fi
13950 ;;
13951 esac
13952 ;;
13953
13954 sunos4*)
13955 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13956 wlarc=
13957 hardcode_direct_F77=yes
13958 hardcode_shlibpath_var_F77=no
13959 ;;
13960
13961 *)
13962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13963 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13964 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13965 else
13966 ld_shlibs_F77=no
13967 fi
13968 ;;
13969 esac
13970
13971 if test "$ld_shlibs_F77" = no; then
13972 runpath_var=
13973 hardcode_libdir_flag_spec_F77=
13974 export_dynamic_flag_spec_F77=
13975 whole_archive_flag_spec_F77=
13976 fi
13977 else
13978 # PORTME fill in a description of your system's linker (not GNU ld)
13979 case $host_os in
13980 aix3*)
13981 allow_undefined_flag_F77=unsupported
13982 always_export_symbols_F77=yes
13983 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13984 # Note: this linker hardcodes the directories in LIBPATH if there
13985 # are no directories specified by -L.
13986 hardcode_minus_L_F77=yes
13987 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13988 # Neither direct hardcoding nor static linking is supported with a
13989 # broken collect2.
13990 hardcode_direct_F77=unsupported
13991 fi
13992 ;;
13993
13994 aix4* | aix5*)
13995 if test "$host_cpu" = ia64; then
13996 # On IA64, the linker does run time linking by default, so we don't
13997 # have to do anything special.
13998 aix_use_runtimelinking=no
13999 exp_sym_flag='-Bexport'
14000 no_entry_flag=""
14001 else
14002 # If we're using GNU nm, then we don't want the "-C" option.
14003 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14004 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14005 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14006 else
14007 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14008 fi
14009 aix_use_runtimelinking=no
14010
14011 # Test if we are trying to use run time linking or normal
14012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14013 # need to do runtime linking.
14014 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14015 for ld_flag in $LDFLAGS; do
14016 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14017 aix_use_runtimelinking=yes
14018 break
14019 fi
14020 done
14021 ;;
14022 esac
14023
14024 exp_sym_flag='-bexport'
14025 no_entry_flag='-bnoentry'
14026 fi
14027
14028 # When large executables or shared objects are built, AIX ld can
14029 # have problems creating the table of contents. If linking a library
14030 # or program results in "error TOC overflow" add -mminimal-toc to
14031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14033
14034 archive_cmds_F77=''
14035 hardcode_direct_F77=yes
14036 hardcode_libdir_separator_F77=':'
14037 link_all_deplibs_F77=yes
14038
14039 if test "$GCC" = yes; then
14040 case $host_os in aix4.[012]|aix4.[012].*)
14041 # We only want to do this on AIX 4.2 and lower, the check
14042 # below for broken collect2 doesn't work under 4.3+
14043 collect2name=`${CC} -print-prog-name=collect2`
14044 if test -f "$collect2name" && \
14045 strings "$collect2name" | grep resolve_lib_name >/dev/null
14046 then
14047 # We have reworked collect2
14048 hardcode_direct_F77=yes
14049 else
14050 # We have old collect2
14051 hardcode_direct_F77=unsupported
14052 # It fails to find uninstalled libraries when the uninstalled
14053 # path is not listed in the libpath. Setting hardcode_minus_L
14054 # to unsupported forces relinking
14055 hardcode_minus_L_F77=yes
14056 hardcode_libdir_flag_spec_F77='-L$libdir'
14057 hardcode_libdir_separator_F77=
14058 fi
14059 ;;
14060 esac
14061 shared_flag='-shared'
14062 if test "$aix_use_runtimelinking" = yes; then
14063 shared_flag="$shared_flag "'${wl}-G'
14064 fi
14065 else
14066 # not using gcc
14067 if test "$host_cpu" = ia64; then
14068 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14069 # chokes on -Wl,-G. The following line is correct:
14070 shared_flag='-G'
14071 else
14072 if test "$aix_use_runtimelinking" = yes; then
14073 shared_flag='${wl}-G'
14074 else
14075 shared_flag='${wl}-bM:SRE'
14076 fi
14077 fi
14078 fi
14079
14080 # It seems that -bexpall does not export symbols beginning with
14081 # underscore (_), so it is better to generate a list of symbols to export.
14082 always_export_symbols_F77=yes
14083 if test "$aix_use_runtimelinking" = yes; then
14084 # Warning - without using the other runtime loading flags (-brtl),
14085 # -berok will link without error, but may produce a broken library.
14086 allow_undefined_flag_F77='-berok'
14087 # Determine the default libpath from the value encoded in an empty executable.
14088 cat >conftest.$ac_ext <<_ACEOF
14089 program main
14090
14091 end
14092_ACEOF
14093rm -f conftest.$ac_objext conftest$ac_exeext
14094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14095 (eval $ac_link) 2>conftest.er1
14096 ac_status=$?
14097 grep -v '^ *+' conftest.er1 >conftest.err
14098 rm -f conftest.er1
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
14102 { ac_try='test -z "$ac_f77_werror_flag"
14103 || test ! -s conftest.err'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; } &&
14109 { ac_try='test -s conftest$ac_exeext'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115
14116aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14117}'`
14118# Check for a 64-bit object if we didn't find anything.
14119if 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; }
14120}'`; fi
14121else
14122 echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125fi
14126rm -f conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14129
14130 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14131 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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"
14132 else
14133 if test "$host_cpu" = ia64; then
14134 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14135 allow_undefined_flag_F77="-z nodefs"
14136 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14137 else
14138 # Determine the default libpath from the value encoded in an empty executable.
14139 cat >conftest.$ac_ext <<_ACEOF
14140 program main
14141
14142 end
14143_ACEOF
14144rm -f conftest.$ac_objext conftest$ac_exeext
14145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14146 (eval $ac_link) 2>conftest.er1
14147 ac_status=$?
14148 grep -v '^ *+' conftest.er1 >conftest.err
14149 rm -f conftest.er1
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } &&
14153 { ac_try='test -z "$ac_f77_werror_flag"
14154 || test ! -s conftest.err'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; } &&
14160 { ac_try='test -s conftest$ac_exeext'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; }; then
14166
14167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14168}'`
14169# Check for a 64-bit object if we didn't find anything.
14170if 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; }
14171}'`; fi
14172else
14173 echo "$as_me: failed program was:" >&5
14174sed 's/^/| /' conftest.$ac_ext >&5
14175
14176fi
14177rm -f conftest.err conftest.$ac_objext \
14178 conftest$ac_exeext conftest.$ac_ext
14179if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14180
14181 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14182 # Warning - without using the other run time loading flags,
14183 # -berok will link without error, but may produce a broken library.
14184 no_undefined_flag_F77=' ${wl}-bernotok'
14185 allow_undefined_flag_F77=' ${wl}-berok'
14186 # Exported symbols can be pulled into shared objects from archives
14187 whole_archive_flag_spec_F77='$convenience'
14188 archive_cmds_need_lc_F77=yes
14189 # This is similar to how AIX traditionally builds its shared libraries.
14190 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14191 fi
14192 fi
14193 ;;
14194
14195 amigaos*)
14196 archive_cmds_F77='$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)'
14197 hardcode_libdir_flag_spec_F77='-L$libdir'
14198 hardcode_minus_L_F77=yes
14199 # see comment about different semantics on the GNU ld section
14200 ld_shlibs_F77=no
14201 ;;
14202
14203 bsdi[45]*)
14204 export_dynamic_flag_spec_F77=-rdynamic
14205 ;;
14206
14207 cygwin* | mingw* | pw32*)
14208 # When not using gcc, we currently assume that we are using
14209 # Microsoft Visual C++.
14210 # hardcode_libdir_flag_spec is actually meaningless, as there is
14211 # no search path for DLLs.
14212 hardcode_libdir_flag_spec_F77=' '
14213 allow_undefined_flag_F77=unsupported
14214 # Tell ltmain to make .lib files, not .a files.
14215 libext=lib
14216 # Tell ltmain to make .dll files, not .so files.
14217 shrext_cmds=".dll"
14218 # FIXME: Setting linknames here is a bad hack.
14219 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14220 # The linker will automatically build a .lib file if we build a DLL.
14221 old_archive_From_new_cmds_F77='true'
14222 # FIXME: Should let the user specify the lib program.
14223 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14224 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14225 enable_shared_with_static_runtimes_F77=yes
14226 ;;
14227
14228 darwin* | rhapsody*)
14229 case $host_os in
14230 rhapsody* | darwin1.[012])
14231 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14232 ;;
14233 *) # Darwin 1.3 on
14234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14235 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14236 else
14237 case ${MACOSX_DEPLOYMENT_TARGET} in
14238 10.[012])
14239 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14240 ;;
14241 10.*)
14242 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14243 ;;
14244 esac
14245 fi
14246 ;;
14247 esac
14248 archive_cmds_need_lc_F77=no
14249 hardcode_direct_F77=no
14250 hardcode_automatic_F77=yes
14251 hardcode_shlibpath_var_F77=unsupported
14252 whole_archive_flag_spec_F77=''
14253 link_all_deplibs_F77=yes
14254 if test "$GCC" = yes ; then
14255 output_verbose_link_cmd='echo'
14256 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14257 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14259 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14260 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14261 else
14262 case $cc_basename in
14263 xlc*)
14264 output_verbose_link_cmd='echo'
14265 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14266 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14268 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14269 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14270 ;;
14271 *)
14272 ld_shlibs_F77=no
14273 ;;
14274 esac
14275 fi
14276 ;;
14277
14278 dgux*)
14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280 hardcode_libdir_flag_spec_F77='-L$libdir'
14281 hardcode_shlibpath_var_F77=no
14282 ;;
14283
14284 freebsd1*)
14285 ld_shlibs_F77=no
14286 ;;
14287
14288 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14289 # support. Future versions do this automatically, but an explicit c++rt0.o
14290 # does not break anything, and helps significantly (at the cost of a little
14291 # extra space).
14292 freebsd2.2*)
14293 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14294 hardcode_libdir_flag_spec_F77='-R$libdir'
14295 hardcode_direct_F77=yes
14296 hardcode_shlibpath_var_F77=no
14297 ;;
14298
14299 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14300 freebsd2*)
14301 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14302 hardcode_direct_F77=yes
14303 hardcode_minus_L_F77=yes
14304 hardcode_shlibpath_var_F77=no
14305 ;;
14306
14307 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14308 freebsd* | kfreebsd*-gnu | dragonfly*)
14309 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14310 hardcode_libdir_flag_spec_F77='-R$libdir'
14311 hardcode_direct_F77=yes
14312 hardcode_shlibpath_var_F77=no
14313 ;;
14314
14315 hpux9*)
14316 if test "$GCC" = yes; then
14317 archive_cmds_F77='$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'
14318 else
14319 archive_cmds_F77='$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'
14320 fi
14321 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14322 hardcode_libdir_separator_F77=:
14323 hardcode_direct_F77=yes
14324
14325 # hardcode_minus_L: Not really in the search PATH,
14326 # but as the default location of the library.
14327 hardcode_minus_L_F77=yes
14328 export_dynamic_flag_spec_F77='${wl}-E'
14329 ;;
14330
14331 hpux10*)
14332 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14333 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14334 else
14335 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14336 fi
14337 if test "$with_gnu_ld" = no; then
14338 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14339 hardcode_libdir_separator_F77=:
14340
14341 hardcode_direct_F77=yes
14342 export_dynamic_flag_spec_F77='${wl}-E'
14343
14344 # hardcode_minus_L: Not really in the search PATH,
14345 # but as the default location of the library.
14346 hardcode_minus_L_F77=yes
14347 fi
14348 ;;
14349
14350 hpux11*)
14351 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14352 case $host_cpu in
14353 hppa*64*)
14354 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14355 ;;
14356 ia64*)
14357 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14358 ;;
14359 *)
14360 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14361 ;;
14362 esac
14363 else
14364 case $host_cpu in
14365 hppa*64*)
14366 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14367 ;;
14368 ia64*)
14369 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14370 ;;
14371 *)
14372 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14373 ;;
14374 esac
14375 fi
14376 if test "$with_gnu_ld" = no; then
14377 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14378 hardcode_libdir_separator_F77=:
14379
14380 case $host_cpu in
14381 hppa*64*|ia64*)
14382 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14383 hardcode_direct_F77=no
14384 hardcode_shlibpath_var_F77=no
14385 ;;
14386 *)
14387 hardcode_direct_F77=yes
14388 export_dynamic_flag_spec_F77='${wl}-E'
14389
14390 # hardcode_minus_L: Not really in the search PATH,
14391 # but as the default location of the library.
14392 hardcode_minus_L_F77=yes
14393 ;;
14394 esac
14395 fi
14396 ;;
14397
14398 irix5* | irix6* | nonstopux*)
14399 if test "$GCC" = yes; then
14400 archive_cmds_F77='$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'
14401 else
14402 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14403 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14404 fi
14405 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14406 hardcode_libdir_separator_F77=:
14407 link_all_deplibs_F77=yes
14408 ;;
14409
14410 netbsd*)
14411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14412 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14413 else
14414 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14415 fi
14416 hardcode_libdir_flag_spec_F77='-R$libdir'
14417 hardcode_direct_F77=yes
14418 hardcode_shlibpath_var_F77=no
14419 ;;
14420
14421 newsos6)
14422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14423 hardcode_direct_F77=yes
14424 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14425 hardcode_libdir_separator_F77=:
14426 hardcode_shlibpath_var_F77=no
14427 ;;
14428
14429 openbsd*)
14430 hardcode_direct_F77=yes
14431 hardcode_shlibpath_var_F77=no
14432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14433 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14434 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14435 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14436 export_dynamic_flag_spec_F77='${wl}-E'
14437 else
14438 case $host_os in
14439 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14440 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14441 hardcode_libdir_flag_spec_F77='-R$libdir'
14442 ;;
14443 *)
14444 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14445 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14446 ;;
14447 esac
14448 fi
14449 ;;
14450
14451 os2*)
14452 hardcode_libdir_flag_spec_F77='-L$libdir'
14453 hardcode_minus_L_F77=yes
14454 allow_undefined_flag_F77=unsupported
14455 archive_cmds_F77='$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'
14456 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14457 ;;
14458
14459 osf3*)
14460 if test "$GCC" = yes; then
14461 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14462 archive_cmds_F77='$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'
14463 else
14464 allow_undefined_flag_F77=' -expect_unresolved \*'
14465 archive_cmds_F77='$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'
14466 fi
14467 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14468 hardcode_libdir_separator_F77=:
14469 ;;
14470
14471 osf4* | osf5*) # as osf3* with the addition of -msym flag
14472 if test "$GCC" = yes; then
14473 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14474 archive_cmds_F77='$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'
14475 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14476 else
14477 allow_undefined_flag_F77=' -expect_unresolved \*'
14478 archive_cmds_F77='$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'
14479 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14480 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14481
14482 # Both c and cxx compiler support -rpath directly
14483 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14484 fi
14485 hardcode_libdir_separator_F77=:
14486 ;;
14487
14488 solaris*)
14489 no_undefined_flag_F77=' -z text'
14490 if test "$GCC" = yes; then
14491 wlarc='${wl}'
14492 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14493 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14494 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14495 else
14496 wlarc=''
14497 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14499 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14500 fi
14501 hardcode_libdir_flag_spec_F77='-R$libdir'
14502 hardcode_shlibpath_var_F77=no
14503 case $host_os in
14504 solaris2.[0-5] | solaris2.[0-5].*) ;;
14505 *)
14506 # The compiler driver will combine linker options so we
14507 # cannot just pass the convience library names through
14508 # without $wl, iff we do not link with $LD.
14509 # Luckily, gcc supports the same syntax we need for Sun Studio.
14510 # Supported since Solaris 2.6 (maybe 2.5.1?)
14511 case $wlarc in
14512 '')
14513 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14514 *)
14515 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14516 esac ;;
14517 esac
14518 link_all_deplibs_F77=yes
14519 ;;
14520
14521 sunos4*)
14522 if test "x$host_vendor" = xsequent; then
14523 # Use $CC to link under sequent, because it throws in some extra .o
14524 # files that make .init and .fini sections work.
14525 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14526 else
14527 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14528 fi
14529 hardcode_libdir_flag_spec_F77='-L$libdir'
14530 hardcode_direct_F77=yes
14531 hardcode_minus_L_F77=yes
14532 hardcode_shlibpath_var_F77=no
14533 ;;
14534
14535 sysv4)
14536 case $host_vendor in
14537 sni)
14538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14539 hardcode_direct_F77=yes # is this really true???
14540 ;;
14541 siemens)
14542 ## LD is ld it makes a PLAMLIB
14543 ## CC just makes a GrossModule.
14544 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14545 reload_cmds_F77='$CC -r -o $output$reload_objs'
14546 hardcode_direct_F77=no
14547 ;;
14548 motorola)
14549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14551 ;;
14552 esac
14553 runpath_var='LD_RUN_PATH'
14554 hardcode_shlibpath_var_F77=no
14555 ;;
14556
14557 sysv4.3*)
14558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559 hardcode_shlibpath_var_F77=no
14560 export_dynamic_flag_spec_F77='-Bexport'
14561 ;;
14562
14563 sysv4*MP*)
14564 if test -d /usr/nec; then
14565 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566 hardcode_shlibpath_var_F77=no
14567 runpath_var=LD_RUN_PATH
14568 hardcode_runpath_var=yes
14569 ld_shlibs_F77=yes
14570 fi
14571 ;;
14572
14573 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14574 no_undefined_flag_F77='${wl}-z,text'
14575 archive_cmds_need_lc_F77=no
14576 hardcode_shlibpath_var_F77=no
14577 runpath_var='LD_RUN_PATH'
14578
14579 if test "$GCC" = yes; then
14580 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14581 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14582 else
14583 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14585 fi
14586 ;;
14587
14588 sysv5* | sco3.2v5* | sco5v6*)
14589 # Note: We can NOT use -z defs as we might desire, because we do not
14590 # link with -lc, and that would cause any symbols used from libc to
14591 # always be unresolved, which means just about no library would
14592 # ever link correctly. If we're not using GNU ld we use -z text
14593 # though, which does catch some bad symbols but isn't as heavy-handed
14594 # as -z defs.
14595 no_undefined_flag_F77='${wl}-z,text'
14596 allow_undefined_flag_F77='${wl}-z,nodefs'
14597 archive_cmds_need_lc_F77=no
14598 hardcode_shlibpath_var_F77=no
14599 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14600 hardcode_libdir_separator_F77=':'
14601 link_all_deplibs_F77=yes
14602 export_dynamic_flag_spec_F77='${wl}-Bexport'
14603 runpath_var='LD_RUN_PATH'
14604
14605 if test "$GCC" = yes; then
14606 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14607 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14608 else
14609 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14610 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14611 fi
14612 ;;
14613
14614 uts4*)
14615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14616 hardcode_libdir_flag_spec_F77='-L$libdir'
14617 hardcode_shlibpath_var_F77=no
14618 ;;
14619
14620 *)
14621 ld_shlibs_F77=no
14622 ;;
14623 esac
14624 fi
14625
14626echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14627echo "${ECHO_T}$ld_shlibs_F77" >&6
14628test "$ld_shlibs_F77" = no && can_build_shared=no
14629
14630#
14631# Do we need to explicitly link libc?
14632#
14633case "x$archive_cmds_need_lc_F77" in
14634x|xyes)
14635 # Assume -lc should be added
14636 archive_cmds_need_lc_F77=yes
14637
14638 if test "$enable_shared" = yes && test "$GCC" = yes; then
14639 case $archive_cmds_F77 in
14640 *'~'*)
14641 # FIXME: we may have to deal with multi-command sequences.
14642 ;;
14643 '$CC '*)
14644 # Test whether the compiler implicitly links with -lc since on some
14645 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14646 # to ld, don't add -lc before -lgcc.
14647 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14648echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14649 $rm conftest*
14650 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14651
14652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } 2>conftest.err; then
14657 soname=conftest
14658 lib=conftest
14659 libobjs=conftest.$ac_objext
14660 deplibs=
14661 wl=$lt_prog_compiler_wl_F77
14662 pic_flag=$lt_prog_compiler_pic_F77
14663 compiler_flags=-v
14664 linker_flags=-v
14665 verstring=
14666 output_objdir=.
14667 libname=conftest
14668 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14669 allow_undefined_flag_F77=
14670 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14671 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }
14675 then
14676 archive_cmds_need_lc_F77=no
14677 else
14678 archive_cmds_need_lc_F77=yes
14679 fi
14680 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14681 else
14682 cat conftest.err 1>&5
14683 fi
14684 $rm conftest*
14685 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14686echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14687 ;;
14688 esac
14689 fi
14690 ;;
14691esac
14692
14693echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14694echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14695library_names_spec=
14696libname_spec='lib$name'
14697soname_spec=
14698shrext_cmds=".so"
14699postinstall_cmds=
14700postuninstall_cmds=
14701finish_cmds=
14702finish_eval=
14703shlibpath_var=
14704shlibpath_overrides_runpath=unknown
14705version_type=none
14706dynamic_linker="$host_os ld.so"
14707sys_lib_dlsearch_path_spec="/lib /usr/lib"
14708if test "$GCC" = yes; then
14709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14710 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14711 # if the path contains ";" then we assume it to be the separator
14712 # otherwise default to the standard path separator (i.e. ":") - it is
14713 # assumed that no part of a normal pathname contains ";" but that should
14714 # okay in the real world where ";" in dirpaths is itself problematic.
14715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14716 else
14717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14718 fi
14719else
14720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14721fi
14722need_lib_prefix=unknown
14723hardcode_into_libs=no
14724
14725# when you set need_version to no, make sure it does not cause -set_version
14726# flags to be left without arguments
14727need_version=unknown
14728
14729case $host_os in
14730aix3*)
14731 version_type=linux
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14733 shlibpath_var=LIBPATH
14734
14735 # AIX 3 has no versioning support, so we append a major version to the name.
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 ;;
14738
14739aix4* | aix5*)
14740 version_type=linux
14741 need_lib_prefix=no
14742 need_version=no
14743 hardcode_into_libs=yes
14744 if test "$host_cpu" = ia64; then
14745 # AIX 5 supports IA64
14746 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 else
14749 # With GCC up to 2.95.x, collect2 would create an import file
14750 # for dependence libraries. The import file would start with
14751 # the line `#! .'. This would cause the generated library to
14752 # depend on `.', always an invalid library. This was fixed in
14753 # development snapshots of GCC prior to 3.0.
14754 case $host_os in
14755 aix4 | aix4.[01] | aix4.[01].*)
14756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14757 echo ' yes '
14758 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14759 :
14760 else
14761 can_build_shared=no
14762 fi
14763 ;;
14764 esac
14765 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14766 # soname into executable. Probably we can add versioning support to
14767 # collect2, so additional links can be useful in future.
14768 if test "$aix_use_runtimelinking" = yes; then
14769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14770 # instead of lib<name>.a to let people know that these are not
14771 # typical AIX shared libraries.
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 else
14774 # We preserve .a as extension for shared libraries through AIX4.2
14775 # and later when we are not doing run time linking.
14776 library_names_spec='${libname}${release}.a $libname.a'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14778 fi
14779 shlibpath_var=LIBPATH
14780 fi
14781 ;;
14782
14783amigaos*)
14784 library_names_spec='$libname.ixlibrary $libname.a'
14785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14786 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'
14787 ;;
14788
14789beos*)
14790 library_names_spec='${libname}${shared_ext}'
14791 dynamic_linker="$host_os ld.so"
14792 shlibpath_var=LIBRARY_PATH
14793 ;;
14794
14795bsdi[45]*)
14796 version_type=linux
14797 need_version=no
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14804 # the default ld.so.conf also contains /usr/contrib/lib and
14805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14806 # libtool to hard-code these into programs
14807 ;;
14808
14809cygwin* | mingw* | pw32*)
14810 version_type=windows
14811 shrext_cmds=".dll"
14812 need_version=no
14813 need_lib_prefix=no
14814
14815 case $GCC,$host_os in
14816 yes,cygwin* | yes,mingw* | yes,pw32*)
14817 library_names_spec='$libname.dll.a'
14818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14819 postinstall_cmds='base_file=`basename \${file}`~
14820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14821 dldir=$destdir/`dirname \$dlpath`~
14822 test -d \$dldir || mkdir -p \$dldir~
14823 $install_prog $dir/$dlname \$dldir/$dlname~
14824 chmod a+x \$dldir/$dlname'
14825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14826 dlpath=$dir/\$dldll~
14827 $rm \$dlpath'
14828 shlibpath_overrides_runpath=yes
14829
14830 case $host_os in
14831 cygwin*)
14832 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14833 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14834 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14835 ;;
14836 mingw*)
14837 # MinGW DLLs use traditional 'lib' prefix
14838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14840 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14841 # It is most probably a Windows format PATH printed by
14842 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14843 # path with ; separators, and with drive letters. We can handle the
14844 # drive letters (cygwin fileutils understands them), so leave them,
14845 # especially as we might pass files found there to a mingw objdump,
14846 # which wouldn't understand a cygwinified path. Ahh.
14847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14848 else
14849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14850 fi
14851 ;;
14852 pw32*)
14853 # pw32 DLLs use 'pw' prefix rather than 'lib'
14854 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14855 ;;
14856 esac
14857 ;;
14858
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060014859 linux*)
14860 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862 supports_anon_versioning=no
14863 case `$LD -v 2>/dev/null` in
14864 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14865 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14866 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14867 *\ 2.11.*) ;; # other 2.11 versions
14868 *) supports_anon_versioning=yes ;;
14869 esac
14870 if test $supports_anon_versioning = yes; then
14871 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14872cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14873$echo "local: *; };" >> $output_objdir/$libname.ver~
14874 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14875 else
14876 $archive_expsym_cmds="$archive_cmds"
14877 fi
14878 else
14879 ld_shlibs=no
14880 fi
14881 ;;
14882
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014883 *)
14884 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14885 ;;
14886 esac
14887 dynamic_linker='Win32 ld.exe'
14888 # FIXME: first we should search . and the directory the executable is in
14889 shlibpath_var=PATH
14890 ;;
14891
14892darwin* | rhapsody*)
14893 dynamic_linker="$host_os dyld"
14894 version_type=darwin
14895 need_lib_prefix=no
14896 need_version=no
14897 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14898 soname_spec='${libname}${release}${major}$shared_ext'
14899 shlibpath_overrides_runpath=yes
14900 shlibpath_var=DYLD_LIBRARY_PATH
14901 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14902 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14903 if test "$GCC" = yes; then
14904 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14905 else
14906 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14907 fi
14908 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14909 ;;
14910
14911dgux*)
14912 version_type=linux
14913 need_lib_prefix=no
14914 need_version=no
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 shlibpath_var=LD_LIBRARY_PATH
14918 ;;
14919
14920freebsd1*)
14921 dynamic_linker=no
14922 ;;
14923
14924kfreebsd*-gnu)
14925 version_type=linux
14926 need_lib_prefix=no
14927 need_version=no
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 shlibpath_overrides_runpath=no
14932 hardcode_into_libs=yes
14933 dynamic_linker='GNU ld.so'
14934 ;;
14935
14936freebsd* | dragonfly*)
14937 # DragonFly does not have aout. When/if they implement a new
14938 # versioning mechanism, adjust this.
14939 if test -x /usr/bin/objformat; then
14940 objformat=`/usr/bin/objformat`
14941 else
14942 case $host_os in
14943 freebsd[123]*) objformat=aout ;;
14944 *) objformat=elf ;;
14945 esac
14946 fi
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060014947 # Handle Gentoo/FreeBSD as it was Linux
14948 case $host_vendor in
14949 gentoo)
14950 version_type=linux ;;
14951 *)
14952 version_type=freebsd-$objformat ;;
14953 esac
14954
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014955 case $version_type in
14956 freebsd-elf*)
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14958 need_version=no
14959 need_lib_prefix=no
14960 ;;
14961 freebsd-*)
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14963 need_version=yes
14964 ;;
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060014965 linux)
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 need_lib_prefix=no
14969 need_version=no
14970 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014971 esac
14972 shlibpath_var=LD_LIBRARY_PATH
14973 case $host_os in
14974 freebsd2*)
14975 shlibpath_overrides_runpath=yes
14976 ;;
14977 freebsd3.[01]* | freebsdelf3.[01]*)
14978 shlibpath_overrides_runpath=yes
14979 hardcode_into_libs=yes
14980 ;;
14981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14983 shlibpath_overrides_runpath=no
14984 hardcode_into_libs=yes
14985 ;;
14986 freebsd*) # from 4.6 on
14987 shlibpath_overrides_runpath=yes
14988 hardcode_into_libs=yes
14989 ;;
14990 esac
14991 ;;
14992
14993gnu*)
14994 version_type=linux
14995 need_lib_prefix=no
14996 need_version=no
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 shlibpath_var=LD_LIBRARY_PATH
15000 hardcode_into_libs=yes
15001 ;;
15002
15003hpux9* | hpux10* | hpux11*)
15004 # Give a soname corresponding to the major version so that dld.sl refuses to
15005 # link against other versions.
15006 version_type=sunos
15007 need_lib_prefix=no
15008 need_version=no
15009 case $host_cpu in
15010 ia64*)
15011 shrext_cmds='.so'
15012 hardcode_into_libs=yes
15013 dynamic_linker="$host_os dld.so"
15014 shlibpath_var=LD_LIBRARY_PATH
15015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 if test "X$HPUX_IA64_MODE" = X32; then
15019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15020 else
15021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15022 fi
15023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15024 ;;
15025 hppa*64*)
15026 shrext_cmds='.sl'
15027 hardcode_into_libs=yes
15028 dynamic_linker="$host_os dld.sl"
15029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15035 ;;
15036 *)
15037 shrext_cmds='.sl'
15038 dynamic_linker="$host_os dld.sl"
15039 shlibpath_var=SHLIB_PATH
15040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042 soname_spec='${libname}${release}${shared_ext}$major'
15043 ;;
15044 esac
15045 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15046 postinstall_cmds='chmod 555 $lib'
15047 ;;
15048
15049interix3*)
15050 version_type=linux
15051 need_lib_prefix=no
15052 need_version=no
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15054 soname_spec='${libname}${release}${shared_ext}$major'
15055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15056 shlibpath_var=LD_LIBRARY_PATH
15057 shlibpath_overrides_runpath=no
15058 hardcode_into_libs=yes
15059 ;;
15060
15061irix5* | irix6* | nonstopux*)
15062 case $host_os in
15063 nonstopux*) version_type=nonstopux ;;
15064 *)
15065 if test "$lt_cv_prog_gnu_ld" = yes; then
15066 version_type=linux
15067 else
15068 version_type=irix
15069 fi ;;
15070 esac
15071 need_lib_prefix=no
15072 need_version=no
15073 soname_spec='${libname}${release}${shared_ext}$major'
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15075 case $host_os in
15076 irix5* | nonstopux*)
15077 libsuff= shlibsuff=
15078 ;;
15079 *)
15080 case $LD in # libtool.m4 will add one of these switches to LD
15081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15082 libsuff= shlibsuff= libmagic=32-bit;;
15083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15084 libsuff=32 shlibsuff=N32 libmagic=N32;;
15085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15087 *) libsuff= shlibsuff= libmagic=never-match;;
15088 esac
15089 ;;
15090 esac
15091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15092 shlibpath_overrides_runpath=no
15093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15095 hardcode_into_libs=yes
15096 ;;
15097
15098# No shared lib support for Linux oldld, aout, or coff.
15099linux*oldld* | linux*aout* | linux*coff*)
15100 dynamic_linker=no
15101 ;;
15102
15103# This must be Linux ELF.
15104linux*)
15105 version_type=linux
15106 need_lib_prefix=no
15107 need_version=no
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109 soname_spec='${libname}${release}${shared_ext}$major'
15110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15111 shlibpath_var=LD_LIBRARY_PATH
15112 shlibpath_overrides_runpath=no
15113 # This implies no fast_install, which is unacceptable.
15114 # Some rework will be needed to allow for fast_install
15115 # before this can be enabled.
15116 hardcode_into_libs=yes
15117
15118 # Append ld.so.conf contents to the search path
15119 if test -f /etc/ld.so.conf; then
15120 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15122 fi
15123
15124 # We used to test for /lib/ld.so.1 and disable shared libraries on
15125 # powerpc, because MkLinux only supported shared libraries with the
15126 # GNU dynamic linker. Since this was broken with cross compilers,
15127 # most powerpc-linux boxes support dynamic linking these days and
15128 # people can always --disable-shared, the test was removed, and we
15129 # assume the GNU/Linux dynamic linker is in use.
15130 dynamic_linker='GNU/Linux ld.so'
15131 ;;
15132
15133knetbsd*-gnu)
15134 version_type=linux
15135 need_lib_prefix=no
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 shlibpath_var=LD_LIBRARY_PATH
15140 shlibpath_overrides_runpath=no
15141 hardcode_into_libs=yes
15142 dynamic_linker='GNU ld.so'
15143 ;;
15144
15145netbsd*)
15146 version_type=sunos
15147 need_lib_prefix=no
15148 need_version=no
15149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15152 dynamic_linker='NetBSD (a.out) ld.so'
15153 else
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15155 soname_spec='${libname}${release}${shared_ext}$major'
15156 dynamic_linker='NetBSD ld.elf_so'
15157 fi
15158 shlibpath_var=LD_LIBRARY_PATH
15159 shlibpath_overrides_runpath=yes
15160 hardcode_into_libs=yes
15161 ;;
15162
15163newsos6)
15164 version_type=linux
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15166 shlibpath_var=LD_LIBRARY_PATH
15167 shlibpath_overrides_runpath=yes
15168 ;;
15169
15170nto-qnx*)
15171 version_type=linux
15172 need_lib_prefix=no
15173 need_version=no
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 shlibpath_overrides_runpath=yes
15178 ;;
15179
15180openbsd*)
15181 version_type=sunos
15182 sys_lib_dlsearch_path_spec="/usr/lib"
15183 need_lib_prefix=no
15184 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15185 case $host_os in
15186 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15187 *) need_version=no ;;
15188 esac
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15191 shlibpath_var=LD_LIBRARY_PATH
15192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15193 case $host_os in
15194 openbsd2.[89] | openbsd2.[89].*)
15195 shlibpath_overrides_runpath=no
15196 ;;
15197 *)
15198 shlibpath_overrides_runpath=yes
15199 ;;
15200 esac
15201 else
15202 shlibpath_overrides_runpath=yes
15203 fi
15204 ;;
15205
15206os2*)
15207 libname_spec='$name'
15208 shrext_cmds=".dll"
15209 need_lib_prefix=no
15210 library_names_spec='$libname${shared_ext} $libname.a'
15211 dynamic_linker='OS/2 ld.exe'
15212 shlibpath_var=LIBPATH
15213 ;;
15214
15215osf3* | osf4* | osf5*)
15216 version_type=osf
15217 need_lib_prefix=no
15218 need_version=no
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15223 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15224 ;;
15225
15226solaris*)
15227 version_type=linux
15228 need_lib_prefix=no
15229 need_version=no
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 shlibpath_overrides_runpath=yes
15234 hardcode_into_libs=yes
15235 # ldd complains unless libraries are executable
15236 postinstall_cmds='chmod +x $lib'
15237 ;;
15238
15239sunos4*)
15240 version_type=sunos
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15243 shlibpath_var=LD_LIBRARY_PATH
15244 shlibpath_overrides_runpath=yes
15245 if test "$with_gnu_ld" = yes; then
15246 need_lib_prefix=no
15247 fi
15248 need_version=yes
15249 ;;
15250
15251sysv4 | sysv4.3*)
15252 version_type=linux
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 soname_spec='${libname}${release}${shared_ext}$major'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 case $host_vendor in
15257 sni)
15258 shlibpath_overrides_runpath=no
15259 need_lib_prefix=no
15260 export_dynamic_flag_spec='${wl}-Blargedynsym'
15261 runpath_var=LD_RUN_PATH
15262 ;;
15263 siemens)
15264 need_lib_prefix=no
15265 ;;
15266 motorola)
15267 need_lib_prefix=no
15268 need_version=no
15269 shlibpath_overrides_runpath=no
15270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15271 ;;
15272 esac
15273 ;;
15274
15275sysv4*MP*)
15276 if test -d /usr/nec ;then
15277 version_type=linux
15278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15279 soname_spec='$libname${shared_ext}.$major'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 fi
15282 ;;
15283
15284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15285 version_type=freebsd-elf
15286 need_lib_prefix=no
15287 need_version=no
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15289 soname_spec='${libname}${release}${shared_ext}$major'
15290 shlibpath_var=LD_LIBRARY_PATH
15291 hardcode_into_libs=yes
15292 if test "$with_gnu_ld" = yes; then
15293 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15294 shlibpath_overrides_runpath=no
15295 else
15296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15297 shlibpath_overrides_runpath=yes
15298 case $host_os in
15299 sco3.2v5*)
15300 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15301 ;;
15302 esac
15303 fi
15304 sys_lib_dlsearch_path_spec='/usr/lib'
15305 ;;
15306
15307uts4*)
15308 version_type=linux
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310 soname_spec='${libname}${release}${shared_ext}$major'
15311 shlibpath_var=LD_LIBRARY_PATH
15312 ;;
15313
15314*)
15315 dynamic_linker=no
15316 ;;
15317esac
15318echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15319echo "${ECHO_T}$dynamic_linker" >&6
15320test "$dynamic_linker" = no && can_build_shared=no
15321
15322variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15323if test "$GCC" = yes; then
15324 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15325fi
15326
15327echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15328echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15329hardcode_action_F77=
15330if test -n "$hardcode_libdir_flag_spec_F77" || \
15331 test -n "$runpath_var_F77" || \
15332 test "X$hardcode_automatic_F77" = "Xyes" ; then
15333
15334 # We can hardcode non-existant directories.
15335 if test "$hardcode_direct_F77" != no &&
15336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15337 # have to relink, otherwise we might link with an installed library
15338 # when we should be linking with a yet-to-be-installed one
15339 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15340 test "$hardcode_minus_L_F77" != no; then
15341 # Linking always hardcodes the temporary library directory.
15342 hardcode_action_F77=relink
15343 else
15344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15345 hardcode_action_F77=immediate
15346 fi
15347else
15348 # We cannot hardcode anything, or else we can only hardcode existing
15349 # directories.
15350 hardcode_action_F77=unsupported
15351fi
15352echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15353echo "${ECHO_T}$hardcode_action_F77" >&6
15354
15355if test "$hardcode_action_F77" = relink; then
15356 # Fast installation is not supported
15357 enable_fast_install=no
15358elif test "$shlibpath_overrides_runpath" = yes ||
15359 test "$enable_shared" = no; then
15360 # Fast installation is not necessary
15361 enable_fast_install=needless
15362fi
15363
15364
15365# The else clause should only fire when bootstrapping the
15366# libtool distribution, otherwise you forgot to ship ltmain.sh
15367# with your package, and you will get complaints that there are
15368# no rules to generate ltmain.sh.
15369if test -f "$ltmain"; then
15370 # See if we are running on zsh, and set the options which allow our commands through
15371 # without removal of \ escapes.
15372 if test -n "${ZSH_VERSION+set}" ; then
15373 setopt NO_GLOB_SUBST
15374 fi
15375 # Now quote all the things that may contain metacharacters while being
15376 # careful not to overquote the AC_SUBSTed values. We take copies of the
15377 # variables and quote the copies for generation of the libtool script.
15378 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15379 SED SHELL STRIP \
15380 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15381 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15382 deplibs_check_method reload_flag reload_cmds need_locks \
15383 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15384 lt_cv_sys_global_symbol_to_c_name_address \
15385 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15386 old_postinstall_cmds old_postuninstall_cmds \
15387 compiler_F77 \
15388 CC_F77 \
15389 LD_F77 \
15390 lt_prog_compiler_wl_F77 \
15391 lt_prog_compiler_pic_F77 \
15392 lt_prog_compiler_static_F77 \
15393 lt_prog_compiler_no_builtin_flag_F77 \
15394 export_dynamic_flag_spec_F77 \
15395 thread_safe_flag_spec_F77 \
15396 whole_archive_flag_spec_F77 \
15397 enable_shared_with_static_runtimes_F77 \
15398 old_archive_cmds_F77 \
15399 old_archive_from_new_cmds_F77 \
15400 predep_objects_F77 \
15401 postdep_objects_F77 \
15402 predeps_F77 \
15403 postdeps_F77 \
15404 compiler_lib_search_path_F77 \
15405 archive_cmds_F77 \
15406 archive_expsym_cmds_F77 \
15407 postinstall_cmds_F77 \
15408 postuninstall_cmds_F77 \
15409 old_archive_from_expsyms_cmds_F77 \
15410 allow_undefined_flag_F77 \
15411 no_undefined_flag_F77 \
15412 export_symbols_cmds_F77 \
15413 hardcode_libdir_flag_spec_F77 \
15414 hardcode_libdir_flag_spec_ld_F77 \
15415 hardcode_libdir_separator_F77 \
15416 hardcode_automatic_F77 \
15417 module_cmds_F77 \
15418 module_expsym_cmds_F77 \
15419 lt_cv_prog_compiler_c_o_F77 \
15420 exclude_expsyms_F77 \
15421 include_expsyms_F77; do
15422
15423 case $var in
15424 old_archive_cmds_F77 | \
15425 old_archive_from_new_cmds_F77 | \
15426 archive_cmds_F77 | \
15427 archive_expsym_cmds_F77 | \
15428 module_cmds_F77 | \
15429 module_expsym_cmds_F77 | \
15430 old_archive_from_expsyms_cmds_F77 | \
15431 export_symbols_cmds_F77 | \
15432 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15433 postinstall_cmds | postuninstall_cmds | \
15434 old_postinstall_cmds | old_postuninstall_cmds | \
15435 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15436 # Double-quote double-evaled strings.
15437 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15438 ;;
15439 *)
15440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15441 ;;
15442 esac
15443 done
15444
15445 case $lt_echo in
15446 *'\$0 --fallback-echo"')
15447 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15448 ;;
15449 esac
15450
15451cfgfile="$ofile"
15452
15453 cat <<__EOF__ >> "$cfgfile"
15454# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15455
15456# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15457
15458# Shell to use when invoking shell scripts.
15459SHELL=$lt_SHELL
15460
15461# Whether or not to build shared libraries.
15462build_libtool_libs=$enable_shared
15463
15464# Whether or not to build static libraries.
15465build_old_libs=$enable_static
15466
15467# Whether or not to add -lc for building shared libraries.
15468build_libtool_need_lc=$archive_cmds_need_lc_F77
15469
15470# Whether or not to disallow shared libs when runtime libs are static
15471allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15472
15473# Whether or not to optimize for fast installation.
15474fast_install=$enable_fast_install
15475
15476# The host system.
15477host_alias=$host_alias
15478host=$host
15479host_os=$host_os
15480
15481# The build system.
15482build_alias=$build_alias
15483build=$build
15484build_os=$build_os
15485
15486# An echo program that does not interpret backslashes.
15487echo=$lt_echo
15488
15489# The archiver.
15490AR=$lt_AR
15491AR_FLAGS=$lt_AR_FLAGS
15492
15493# A C compiler.
15494LTCC=$lt_LTCC
15495
15496# LTCC compiler flags.
15497LTCFLAGS=$lt_LTCFLAGS
15498
15499# A language-specific compiler.
15500CC=$lt_compiler_F77
15501
15502# Is the compiler the GNU C compiler?
15503with_gcc=$GCC_F77
15504
15505# An ERE matcher.
15506EGREP=$lt_EGREP
15507
15508# The linker used to build libraries.
15509LD=$lt_LD_F77
15510
15511# Whether we need hard or soft links.
15512LN_S=$lt_LN_S
15513
15514# A BSD-compatible nm program.
15515NM=$lt_NM
15516
15517# A symbol stripping program
15518STRIP=$lt_STRIP
15519
15520# Used to examine libraries when file_magic_cmd begins "file"
15521MAGIC_CMD=$MAGIC_CMD
15522
15523# Used on cygwin: DLL creation program.
15524DLLTOOL="$DLLTOOL"
15525
15526# Used on cygwin: object dumper.
15527OBJDUMP="$OBJDUMP"
15528
15529# Used on cygwin: assembler.
15530AS="$AS"
15531
15532# The name of the directory that contains temporary libtool files.
15533objdir=$objdir
15534
15535# How to create reloadable object files.
15536reload_flag=$lt_reload_flag
15537reload_cmds=$lt_reload_cmds
15538
15539# How to pass a linker flag through the compiler.
15540wl=$lt_lt_prog_compiler_wl_F77
15541
15542# Object file suffix (normally "o").
15543objext="$ac_objext"
15544
15545# Old archive suffix (normally "a").
15546libext="$libext"
15547
15548# Shared library suffix (normally ".so").
15549shrext_cmds='$shrext_cmds'
15550
15551# Executable file suffix (normally "").
15552exeext="$exeext"
15553
15554# Additional compiler flags for building library objects.
15555pic_flag=$lt_lt_prog_compiler_pic_F77
15556pic_mode=$pic_mode
15557
15558# What is the maximum length of a command?
15559max_cmd_len=$lt_cv_sys_max_cmd_len
15560
15561# Does compiler simultaneously support -c and -o options?
15562compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15563
15564# Must we lock files when doing compilation?
15565need_locks=$lt_need_locks
15566
15567# Do we need the lib prefix for modules?
15568need_lib_prefix=$need_lib_prefix
15569
15570# Do we need a version for libraries?
15571need_version=$need_version
15572
15573# Whether dlopen is supported.
15574dlopen_support=$enable_dlopen
15575
15576# Whether dlopen of programs is supported.
15577dlopen_self=$enable_dlopen_self
15578
15579# Whether dlopen of statically linked programs is supported.
15580dlopen_self_static=$enable_dlopen_self_static
15581
15582# Compiler flag to prevent dynamic linking.
15583link_static_flag=$lt_lt_prog_compiler_static_F77
15584
15585# Compiler flag to turn off builtin functions.
15586no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15587
15588# Compiler flag to allow reflexive dlopens.
15589export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15590
15591# Compiler flag to generate shared objects directly from archives.
15592whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15593
15594# Compiler flag to generate thread-safe objects.
15595thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15596
15597# Library versioning type.
15598version_type=$version_type
15599
15600# Format of library name prefix.
15601libname_spec=$lt_libname_spec
15602
15603# List of archive names. First name is the real one, the rest are links.
15604# The last name is the one that the linker finds with -lNAME.
15605library_names_spec=$lt_library_names_spec
15606
15607# The coded name of the library, if different from the real name.
15608soname_spec=$lt_soname_spec
15609
15610# Commands used to build and install an old-style archive.
15611RANLIB=$lt_RANLIB
15612old_archive_cmds=$lt_old_archive_cmds_F77
15613old_postinstall_cmds=$lt_old_postinstall_cmds
15614old_postuninstall_cmds=$lt_old_postuninstall_cmds
15615
15616# Create an old-style archive from a shared archive.
15617old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15618
15619# Create a temporary old-style archive to link instead of a shared archive.
15620old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15621
15622# Commands used to build and install a shared archive.
15623archive_cmds=$lt_archive_cmds_F77
15624archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15625postinstall_cmds=$lt_postinstall_cmds
15626postuninstall_cmds=$lt_postuninstall_cmds
15627
15628# Commands used to build a loadable module (assumed same as above if empty)
15629module_cmds=$lt_module_cmds_F77
15630module_expsym_cmds=$lt_module_expsym_cmds_F77
15631
15632# Commands to strip libraries.
15633old_striplib=$lt_old_striplib
15634striplib=$lt_striplib
15635
15636# Dependencies to place before the objects being linked to create a
15637# shared library.
15638predep_objects=$lt_predep_objects_F77
15639
15640# Dependencies to place after the objects being linked to create a
15641# shared library.
15642postdep_objects=$lt_postdep_objects_F77
15643
15644# Dependencies to place before the objects being linked to create a
15645# shared library.
15646predeps=$lt_predeps_F77
15647
15648# Dependencies to place after the objects being linked to create a
15649# shared library.
15650postdeps=$lt_postdeps_F77
15651
15652# The library search path used internally by the compiler when linking
15653# a shared library.
15654compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15655
15656# Method to check whether dependent libraries are shared objects.
15657deplibs_check_method=$lt_deplibs_check_method
15658
15659# Command to use when deplibs_check_method == file_magic.
15660file_magic_cmd=$lt_file_magic_cmd
15661
15662# Flag that allows shared libraries with undefined symbols to be built.
15663allow_undefined_flag=$lt_allow_undefined_flag_F77
15664
15665# Flag that forces no undefined symbols.
15666no_undefined_flag=$lt_no_undefined_flag_F77
15667
15668# Commands used to finish a libtool library installation in a directory.
15669finish_cmds=$lt_finish_cmds
15670
15671# Same as above, but a single script fragment to be evaled but not shown.
15672finish_eval=$lt_finish_eval
15673
15674# Take the output of nm and produce a listing of raw symbols and C names.
15675global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15676
15677# Transform the output of nm in a proper C declaration
15678global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15679
15680# Transform the output of nm in a C name address pair
15681global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15682
15683# This is the shared library runtime path variable.
15684runpath_var=$runpath_var
15685
15686# This is the shared library path variable.
15687shlibpath_var=$shlibpath_var
15688
15689# Is shlibpath searched before the hard-coded library search path?
15690shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15691
15692# How to hardcode a shared library path into an executable.
15693hardcode_action=$hardcode_action_F77
15694
15695# Whether we should hardcode library paths into libraries.
15696hardcode_into_libs=$hardcode_into_libs
15697
15698# Flag to hardcode \$libdir into a binary during linking.
15699# This must work even if \$libdir does not exist.
15700hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15701
15702# If ld is used when linking, flag to hardcode \$libdir into
15703# a binary during linking. This must work even if \$libdir does
15704# not exist.
15705hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15706
15707# Whether we need a single -rpath flag with a separated argument.
15708hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15709
15710# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15711# resulting binary.
15712hardcode_direct=$hardcode_direct_F77
15713
15714# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15715# resulting binary.
15716hardcode_minus_L=$hardcode_minus_L_F77
15717
15718# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15719# the resulting binary.
15720hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15721
15722# Set to yes if building a shared library automatically hardcodes DIR into the library
15723# and all subsequent libraries and executables linked against it.
15724hardcode_automatic=$hardcode_automatic_F77
15725
15726# Variables whose values should be saved in libtool wrapper scripts and
15727# restored at relink time.
15728variables_saved_for_relink="$variables_saved_for_relink"
15729
15730# Whether libtool must link a program against all its dependency libraries.
15731link_all_deplibs=$link_all_deplibs_F77
15732
15733# Compile-time system search path for libraries
15734sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15735
15736# Run-time system search path for libraries
15737sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15738
15739# Fix the shell variable \$srcfile for the compiler.
15740fix_srcfile_path="$fix_srcfile_path_F77"
15741
15742# Set to yes if exported symbols are required.
15743always_export_symbols=$always_export_symbols_F77
15744
15745# The commands to list exported symbols.
15746export_symbols_cmds=$lt_export_symbols_cmds_F77
15747
15748# The commands to extract the exported symbol list from a shared archive.
15749extract_expsyms_cmds=$lt_extract_expsyms_cmds
15750
15751# Symbols that should not be listed in the preloaded symbols.
15752exclude_expsyms=$lt_exclude_expsyms_F77
15753
15754# Symbols that must always be exported.
15755include_expsyms=$lt_include_expsyms_F77
15756
15757# ### END LIBTOOL TAG CONFIG: $tagname
15758
15759__EOF__
15760
15761
15762else
15763 # If there is no Makefile yet, we rely on a make rule to execute
15764 # `config.status --recheck' to rerun these tests and create the
15765 # libtool script then.
15766 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15767 if test -f "$ltmain_in"; then
15768 test -f Makefile && make "$ltmain"
15769 fi
15770fi
15771
15772
15773ac_ext=c
15774ac_cpp='$CPP $CPPFLAGS'
15775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15777ac_compiler_gnu=$ac_cv_c_compiler_gnu
15778
15779CC="$lt_save_CC"
15780
15781 else
15782 tagname=""
15783 fi
15784 ;;
15785
15786 GCJ)
15787 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15788
15789
15790
15791# Source file extension for Java test sources.
15792ac_ext=java
15793
15794# Object file extension for compiled Java test sources.
15795objext=o
15796objext_GCJ=$objext
15797
15798# Code to be used in simple compile tests
15799lt_simple_compile_test_code="class foo {}\n"
15800
15801# Code to be used in simple link tests
15802lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15803
15804# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15805
15806# If no C compiler was specified, use CC.
15807LTCC=${LTCC-"$CC"}
15808
15809# If no C compiler flags were specified, use CFLAGS.
15810LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15811
15812# Allow CC to be a program name with arguments.
15813compiler=$CC
15814
15815
15816# save warnings/boilerplate of simple test code
15817ac_outfile=conftest.$ac_objext
15818printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15819eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15820_lt_compiler_boilerplate=`cat conftest.err`
15821$rm conftest*
15822
15823ac_outfile=conftest.$ac_objext
15824printf "$lt_simple_link_test_code" >conftest.$ac_ext
15825eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15826_lt_linker_boilerplate=`cat conftest.err`
15827$rm conftest*
15828
15829
15830# Allow CC to be a program name with arguments.
15831lt_save_CC="$CC"
15832CC=${GCJ-"gcj"}
15833compiler=$CC
15834compiler_GCJ=$CC
15835for cc_temp in $compiler""; do
15836 case $cc_temp in
15837 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15838 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15839 \-*) ;;
15840 *) break;;
15841 esac
15842done
15843cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15844
15845
15846# GCJ did not exist at the time GCC didn't implicitly link libc in.
15847archive_cmds_need_lc_GCJ=no
15848
15849old_archive_cmds_GCJ=$old_archive_cmds
15850
15851
15852lt_prog_compiler_no_builtin_flag_GCJ=
15853
15854if test "$GCC" = yes; then
15855 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15856
15857
15858echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15859echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15860if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15861 echo $ECHO_N "(cached) $ECHO_C" >&6
15862else
15863 lt_cv_prog_compiler_rtti_exceptions=no
15864 ac_outfile=conftest.$ac_objext
15865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15866 lt_compiler_flag="-fno-rtti -fno-exceptions"
15867 # Insert the option either (1) after the last *FLAGS variable, or
15868 # (2) before a word containing "conftest.", or (3) at the end.
15869 # Note that $ac_compile itself does not contain backslashes and begins
15870 # with a dollar sign (not a hyphen), so the echo should work correctly.
15871 # The option is referenced via a variable to avoid confusing sed.
15872 lt_compile=`echo "$ac_compile" | $SED \
15873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15875 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060015876 (eval echo "\"\$as_me:15876: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015877 (eval "$lt_compile" 2>conftest.err)
15878 ac_status=$?
15879 cat conftest.err >&5
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060015880 echo "$as_me:15880: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015881 if (exit $ac_status) && test -s "$ac_outfile"; then
15882 # The compiler can only warn and ignore the option if not recognized
15883 # So say no if there are warnings other than the usual output.
15884 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15887 lt_cv_prog_compiler_rtti_exceptions=yes
15888 fi
15889 fi
15890 $rm conftest*
15891
15892fi
15893echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15894echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15895
15896if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15897 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15898else
15899 :
15900fi
15901
15902fi
15903
15904lt_prog_compiler_wl_GCJ=
15905lt_prog_compiler_pic_GCJ=
15906lt_prog_compiler_static_GCJ=
15907
15908echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15909echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15910
15911 if test "$GCC" = yes; then
15912 lt_prog_compiler_wl_GCJ='-Wl,'
15913 lt_prog_compiler_static_GCJ='-static'
15914
15915 case $host_os in
15916 aix*)
15917 # All AIX code is PIC.
15918 if test "$host_cpu" = ia64; then
15919 # AIX 5 now supports IA64 processor
15920 lt_prog_compiler_static_GCJ='-Bstatic'
15921 fi
15922 ;;
15923
15924 amigaos*)
15925 # FIXME: we need at least 68020 code to build shared libraries, but
15926 # adding the `-m68020' flag to GCC prevents building anything better,
15927 # like `-m68040'.
15928 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15929 ;;
15930
15931 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15932 # PIC is the default for these OSes.
15933 ;;
15934
15935 mingw* | pw32* | os2*)
15936 # This hack is so that the source file can tell whether it is being
15937 # built for inclusion in a dll (and should export symbols for example).
15938 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15939 ;;
15940
15941 darwin* | rhapsody*)
15942 # PIC is the default on this platform
15943 # Common symbols not allowed in MH_DYLIB files
15944 lt_prog_compiler_pic_GCJ='-fno-common'
15945 ;;
15946
15947 interix3*)
15948 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15949 # Instead, we relocate shared libraries at runtime.
15950 ;;
15951
15952 msdosdjgpp*)
15953 # Just because we use GCC doesn't mean we suddenly get shared libraries
15954 # on systems that don't support them.
15955 lt_prog_compiler_can_build_shared_GCJ=no
15956 enable_shared=no
15957 ;;
15958
15959 sysv4*MP*)
15960 if test -d /usr/nec; then
15961 lt_prog_compiler_pic_GCJ=-Kconform_pic
15962 fi
15963 ;;
15964
15965 hpux*)
15966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15967 # not for PA HP-UX.
15968 case $host_cpu in
15969 hppa*64*|ia64*)
15970 # +Z the default
15971 ;;
15972 *)
15973 lt_prog_compiler_pic_GCJ='-fPIC'
15974 ;;
15975 esac
15976 ;;
15977
15978 *)
15979 lt_prog_compiler_pic_GCJ='-fPIC'
15980 ;;
15981 esac
15982 else
15983 # PORTME Check for flag to pass linker flags through the system compiler.
15984 case $host_os in
15985 aix*)
15986 lt_prog_compiler_wl_GCJ='-Wl,'
15987 if test "$host_cpu" = ia64; then
15988 # AIX 5 now supports IA64 processor
15989 lt_prog_compiler_static_GCJ='-Bstatic'
15990 else
15991 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15992 fi
15993 ;;
15994 darwin*)
15995 # PIC is the default on this platform
15996 # Common symbols not allowed in MH_DYLIB files
15997 case $cc_basename in
15998 xlc*)
15999 lt_prog_compiler_pic_GCJ='-qnocommon'
16000 lt_prog_compiler_wl_GCJ='-Wl,'
16001 ;;
16002 esac
16003 ;;
16004
16005 mingw* | pw32* | os2*)
16006 # This hack is so that the source file can tell whether it is being
16007 # built for inclusion in a dll (and should export symbols for example).
16008 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16009 ;;
16010
16011 hpux9* | hpux10* | hpux11*)
16012 lt_prog_compiler_wl_GCJ='-Wl,'
16013 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16014 # not for PA HP-UX.
16015 case $host_cpu in
16016 hppa*64*|ia64*)
16017 # +Z the default
16018 ;;
16019 *)
16020 lt_prog_compiler_pic_GCJ='+Z'
16021 ;;
16022 esac
16023 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16024 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16025 ;;
16026
16027 irix5* | irix6* | nonstopux*)
16028 lt_prog_compiler_wl_GCJ='-Wl,'
16029 # PIC (with -KPIC) is the default.
16030 lt_prog_compiler_static_GCJ='-non_shared'
16031 ;;
16032
16033 newsos6)
16034 lt_prog_compiler_pic_GCJ='-KPIC'
16035 lt_prog_compiler_static_GCJ='-Bstatic'
16036 ;;
16037
16038 linux*)
16039 case $cc_basename in
16040 icc* | ecc*)
16041 lt_prog_compiler_wl_GCJ='-Wl,'
16042 lt_prog_compiler_pic_GCJ='-KPIC'
16043 lt_prog_compiler_static_GCJ='-static'
16044 ;;
16045 pgcc* | pgf77* | pgf90* | pgf95*)
16046 # Portland Group compilers (*not* the Pentium gcc compiler,
16047 # which looks to be a dead project)
16048 lt_prog_compiler_wl_GCJ='-Wl,'
16049 lt_prog_compiler_pic_GCJ='-fpic'
16050 lt_prog_compiler_static_GCJ='-Bstatic'
16051 ;;
16052 ccc*)
16053 lt_prog_compiler_wl_GCJ='-Wl,'
16054 # All Alpha code is PIC.
16055 lt_prog_compiler_static_GCJ='-non_shared'
16056 ;;
16057 esac
16058 ;;
16059
16060 osf3* | osf4* | osf5*)
16061 lt_prog_compiler_wl_GCJ='-Wl,'
16062 # All OSF/1 code is PIC.
16063 lt_prog_compiler_static_GCJ='-non_shared'
16064 ;;
16065
16066 solaris*)
16067 lt_prog_compiler_pic_GCJ='-KPIC'
16068 lt_prog_compiler_static_GCJ='-Bstatic'
16069 case $cc_basename in
16070 f77* | f90* | f95*)
16071 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16072 *)
16073 lt_prog_compiler_wl_GCJ='-Wl,';;
16074 esac
16075 ;;
16076
16077 sunos4*)
16078 lt_prog_compiler_wl_GCJ='-Qoption ld '
16079 lt_prog_compiler_pic_GCJ='-PIC'
16080 lt_prog_compiler_static_GCJ='-Bstatic'
16081 ;;
16082
16083 sysv4 | sysv4.2uw2* | sysv4.3*)
16084 lt_prog_compiler_wl_GCJ='-Wl,'
16085 lt_prog_compiler_pic_GCJ='-KPIC'
16086 lt_prog_compiler_static_GCJ='-Bstatic'
16087 ;;
16088
16089 sysv4*MP*)
16090 if test -d /usr/nec ;then
16091 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16092 lt_prog_compiler_static_GCJ='-Bstatic'
16093 fi
16094 ;;
16095
16096 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16097 lt_prog_compiler_wl_GCJ='-Wl,'
16098 lt_prog_compiler_pic_GCJ='-KPIC'
16099 lt_prog_compiler_static_GCJ='-Bstatic'
16100 ;;
16101
16102 unicos*)
16103 lt_prog_compiler_wl_GCJ='-Wl,'
16104 lt_prog_compiler_can_build_shared_GCJ=no
16105 ;;
16106
16107 uts4*)
16108 lt_prog_compiler_pic_GCJ='-pic'
16109 lt_prog_compiler_static_GCJ='-Bstatic'
16110 ;;
16111
16112 *)
16113 lt_prog_compiler_can_build_shared_GCJ=no
16114 ;;
16115 esac
16116 fi
16117
16118echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16119echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16120
16121#
16122# Check to make sure the PIC flag actually works.
16123#
16124if test -n "$lt_prog_compiler_pic_GCJ"; then
16125
16126echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16127echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16128if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16130else
16131 lt_prog_compiler_pic_works_GCJ=no
16132 ac_outfile=conftest.$ac_objext
16133 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16134 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16135 # Insert the option either (1) after the last *FLAGS variable, or
16136 # (2) before a word containing "conftest.", or (3) at the end.
16137 # Note that $ac_compile itself does not contain backslashes and begins
16138 # with a dollar sign (not a hyphen), so the echo should work correctly.
16139 # The option is referenced via a variable to avoid confusing sed.
16140 lt_compile=`echo "$ac_compile" | $SED \
16141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16143 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060016144 (eval echo "\"\$as_me:16144: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016145 (eval "$lt_compile" 2>conftest.err)
16146 ac_status=$?
16147 cat conftest.err >&5
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060016148 echo "$as_me:16148: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016149 if (exit $ac_status) && test -s "$ac_outfile"; then
16150 # The compiler can only warn and ignore the option if not recognized
16151 # So say no if there are warnings other than the usual output.
16152 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16155 lt_prog_compiler_pic_works_GCJ=yes
16156 fi
16157 fi
16158 $rm conftest*
16159
16160fi
16161echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16162echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16163
16164if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16165 case $lt_prog_compiler_pic_GCJ in
16166 "" | " "*) ;;
16167 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16168 esac
16169else
16170 lt_prog_compiler_pic_GCJ=
16171 lt_prog_compiler_can_build_shared_GCJ=no
16172fi
16173
16174fi
16175case $host_os in
16176 # For platforms which do not support PIC, -DPIC is meaningless:
16177 *djgpp*)
16178 lt_prog_compiler_pic_GCJ=
16179 ;;
16180 *)
16181 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16182 ;;
16183esac
16184
16185#
16186# Check to make sure the static flag actually works.
16187#
16188wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16189echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16190echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16191if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193else
16194 lt_prog_compiler_static_works_GCJ=no
16195 save_LDFLAGS="$LDFLAGS"
16196 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16197 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16199 # The linker can only warn and ignore the option if not recognized
16200 # So say no if there are warnings
16201 if test -s conftest.err; then
16202 # Append any errors to the config.log.
16203 cat conftest.err 1>&5
16204 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16206 if diff conftest.exp conftest.er2 >/dev/null; then
16207 lt_prog_compiler_static_works_GCJ=yes
16208 fi
16209 else
16210 lt_prog_compiler_static_works_GCJ=yes
16211 fi
16212 fi
16213 $rm conftest*
16214 LDFLAGS="$save_LDFLAGS"
16215
16216fi
16217echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16218echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16219
16220if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16221 :
16222else
16223 lt_prog_compiler_static_GCJ=
16224fi
16225
16226
16227echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16228echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16229if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231else
16232 lt_cv_prog_compiler_c_o_GCJ=no
16233 $rm -r conftest 2>/dev/null
16234 mkdir conftest
16235 cd conftest
16236 mkdir out
16237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16238
16239 lt_compiler_flag="-o out/conftest2.$ac_objext"
16240 # Insert the option either (1) after the last *FLAGS variable, or
16241 # (2) before a word containing "conftest.", or (3) at the end.
16242 # Note that $ac_compile itself does not contain backslashes and begins
16243 # with a dollar sign (not a hyphen), so the echo should work correctly.
16244 lt_compile=`echo "$ac_compile" | $SED \
16245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16247 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060016248 (eval echo "\"\$as_me:16248: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016249 (eval "$lt_compile" 2>out/conftest.err)
16250 ac_status=$?
16251 cat out/conftest.err >&5
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060016252 echo "$as_me:16252: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016253 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16254 then
16255 # The compiler can only warn and ignore the option if not recognized
16256 # So say no if there are warnings
16257 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16258 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16259 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16260 lt_cv_prog_compiler_c_o_GCJ=yes
16261 fi
16262 fi
16263 chmod u+w . 2>&5
16264 $rm conftest*
16265 # SGI C++ compiler will create directory out/ii_files/ for
16266 # template instantiation
16267 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16268 $rm out/* && rmdir out
16269 cd ..
16270 rmdir conftest
16271 $rm conftest*
16272
16273fi
16274echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16275echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16276
16277
16278hard_links="nottested"
16279if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16280 # do not overwrite the value of need_locks provided by the user
16281 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16282echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16283 hard_links=yes
16284 $rm conftest*
16285 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16286 touch conftest.a
16287 ln conftest.a conftest.b 2>&5 || hard_links=no
16288 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16289 echo "$as_me:$LINENO: result: $hard_links" >&5
16290echo "${ECHO_T}$hard_links" >&6
16291 if test "$hard_links" = no; then
16292 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16293echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16294 need_locks=warn
16295 fi
16296else
16297 need_locks=no
16298fi
16299
16300echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16301echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16302
16303 runpath_var=
16304 allow_undefined_flag_GCJ=
16305 enable_shared_with_static_runtimes_GCJ=no
16306 archive_cmds_GCJ=
16307 archive_expsym_cmds_GCJ=
16308 old_archive_From_new_cmds_GCJ=
16309 old_archive_from_expsyms_cmds_GCJ=
16310 export_dynamic_flag_spec_GCJ=
16311 whole_archive_flag_spec_GCJ=
16312 thread_safe_flag_spec_GCJ=
16313 hardcode_libdir_flag_spec_GCJ=
16314 hardcode_libdir_flag_spec_ld_GCJ=
16315 hardcode_libdir_separator_GCJ=
16316 hardcode_direct_GCJ=no
16317 hardcode_minus_L_GCJ=no
16318 hardcode_shlibpath_var_GCJ=unsupported
16319 link_all_deplibs_GCJ=unknown
16320 hardcode_automatic_GCJ=no
16321 module_cmds_GCJ=
16322 module_expsym_cmds_GCJ=
16323 always_export_symbols_GCJ=no
16324 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16325 # include_expsyms should be a list of space-separated symbols to be *always*
16326 # included in the symbol list
16327 include_expsyms_GCJ=
16328 # exclude_expsyms can be an extended regexp of symbols to exclude
16329 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16330 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16331 # as well as any symbol that contains `d'.
16332 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16333 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16334 # platforms (ab)use it in PIC code, but their linkers get confused if
16335 # the symbol is explicitly referenced. Since portable code cannot
16336 # rely on this symbol name, it's probably fine to never include it in
16337 # preloaded symbol tables.
16338 extract_expsyms_cmds=
16339 # Just being paranoid about ensuring that cc_basename is set.
16340 for cc_temp in $compiler""; do
16341 case $cc_temp in
16342 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16343 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16344 \-*) ;;
16345 *) break;;
16346 esac
16347done
16348cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16349
16350 case $host_os in
16351 cygwin* | mingw* | pw32*)
16352 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16353 # When not using gcc, we currently assume that we are using
16354 # Microsoft Visual C++.
16355 if test "$GCC" != yes; then
16356 with_gnu_ld=no
16357 fi
16358 ;;
16359 interix*)
16360 # we just hope/assume this is gcc and not c89 (= MSVC++)
16361 with_gnu_ld=yes
16362 ;;
16363 openbsd*)
16364 with_gnu_ld=no
16365 ;;
16366 esac
16367
16368 ld_shlibs_GCJ=yes
16369 if test "$with_gnu_ld" = yes; then
16370 # If archive_cmds runs LD, not CC, wlarc should be empty
16371 wlarc='${wl}'
16372
16373 # Set some defaults for GNU ld with shared library support. These
16374 # are reset later if shared libraries are not supported. Putting them
16375 # here allows them to be overridden if necessary.
16376 runpath_var=LD_RUN_PATH
16377 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16378 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16379 # ancient GNU ld didn't support --whole-archive et. al.
16380 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16381 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16382 else
16383 whole_archive_flag_spec_GCJ=
16384 fi
16385 supports_anon_versioning=no
16386 case `$LD -v 2>/dev/null` in
16387 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16388 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16389 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16390 *\ 2.11.*) ;; # other 2.11 versions
16391 *) supports_anon_versioning=yes ;;
16392 esac
16393
16394 # See if GNU ld supports shared libraries.
16395 case $host_os in
16396 aix3* | aix4* | aix5*)
16397 # On AIX/PPC, the GNU linker is very broken
16398 if test "$host_cpu" != ia64; then
16399 ld_shlibs_GCJ=no
16400 cat <<EOF 1>&2
16401
16402*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16403*** to be unable to reliably create shared libraries on AIX.
16404*** Therefore, libtool is disabling shared libraries support. If you
16405*** really care for shared libraries, you may want to modify your PATH
16406*** so that a non-GNU linker is found, and then restart.
16407
16408EOF
16409 fi
16410 ;;
16411
16412 amigaos*)
16413 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)'
16414 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16415 hardcode_minus_L_GCJ=yes
16416
16417 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16418 # that the semantics of dynamic libraries on AmigaOS, at least up
16419 # to version 4, is to share data among multiple programs linked
16420 # with the same dynamic library. Since this doesn't match the
16421 # behavior of shared libraries on other platforms, we can't use
16422 # them.
16423 ld_shlibs_GCJ=no
16424 ;;
16425
16426 beos*)
16427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16428 allow_undefined_flag_GCJ=unsupported
16429 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16430 # support --undefined. This deserves some investigation. FIXME
16431 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16432 else
16433 ld_shlibs_GCJ=no
16434 fi
16435 ;;
16436
16437 cygwin* | mingw* | pw32*)
16438 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16439 # as there is no search path for DLLs.
16440 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16441 allow_undefined_flag_GCJ=unsupported
16442 always_export_symbols_GCJ=no
16443 enable_shared_with_static_runtimes_GCJ=yes
16444 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16445
16446 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16447 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16448 # If the export-symbols file already is a .def file (1st line
16449 # is EXPORTS), use it as is; otherwise, prepend...
16450 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16451 cp $export_symbols $output_objdir/$soname.def;
16452 else
16453 echo EXPORTS > $output_objdir/$soname.def;
16454 cat $export_symbols >> $output_objdir/$soname.def;
16455 fi~
16456 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16457 else
16458 ld_shlibs_GCJ=no
16459 fi
16460 ;;
16461
16462 interix3*)
16463 hardcode_direct_GCJ=no
16464 hardcode_shlibpath_var_GCJ=no
16465 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16466 export_dynamic_flag_spec_GCJ='${wl}-E'
16467 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16468 # Instead, shared libraries are loaded at an image base (0x10000000 by
16469 # default) and relocated if they conflict, which is a slow very memory
16470 # consuming and fragmenting process. To avoid this, we pick a random,
16471 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16472 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16473 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16474 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16475 ;;
16476
16477 linux*)
16478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16479 tmp_addflag=
16480 case $cc_basename,$host_cpu in
16481 pgcc*) # Portland Group C compiler
16482 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16483 tmp_addflag=' $pic_flag'
16484 ;;
16485 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16486 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16487 tmp_addflag=' $pic_flag -Mnomain' ;;
16488 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16489 tmp_addflag=' -i_dynamic' ;;
16490 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16491 tmp_addflag=' -i_dynamic -nofor_main' ;;
16492 ifc* | ifort*) # Intel Fortran compiler
16493 tmp_addflag=' -nofor_main' ;;
16494 esac
16495 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16496
16497 if test $supports_anon_versioning = yes; then
16498 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16499 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16500 $echo "local: *; };" >> $output_objdir/$libname.ver~
16501 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16502 fi
16503 else
16504 ld_shlibs_GCJ=no
16505 fi
16506 ;;
16507
16508 netbsd*)
16509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16510 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16511 wlarc=
16512 else
16513 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16514 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16515 fi
16516 ;;
16517
16518 solaris*)
16519 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16520 ld_shlibs_GCJ=no
16521 cat <<EOF 1>&2
16522
16523*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16524*** create shared libraries on Solaris systems. Therefore, libtool
16525*** is disabling shared libraries support. We urge you to upgrade GNU
16526*** binutils to release 2.9.1 or newer. Another option is to modify
16527*** your PATH or compiler configuration so that the native linker is
16528*** used, and then restart.
16529
16530EOF
16531 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16532 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16533 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16534 else
16535 ld_shlibs_GCJ=no
16536 fi
16537 ;;
16538
16539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16540 case `$LD -v 2>&1` in
16541 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16542 ld_shlibs_GCJ=no
16543 cat <<_LT_EOF 1>&2
16544
16545*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16546*** reliably create shared libraries on SCO systems. Therefore, libtool
16547*** is disabling shared libraries support. We urge you to upgrade GNU
16548*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16549*** your PATH or compiler configuration so that the native linker is
16550*** used, and then restart.
16551
16552_LT_EOF
16553 ;;
16554 *)
16555 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16556 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16557 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16558 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16559 else
16560 ld_shlibs_GCJ=no
16561 fi
16562 ;;
16563 esac
16564 ;;
16565
16566 sunos4*)
16567 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16568 wlarc=
16569 hardcode_direct_GCJ=yes
16570 hardcode_shlibpath_var_GCJ=no
16571 ;;
16572
16573 *)
16574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16575 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16576 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16577 else
16578 ld_shlibs_GCJ=no
16579 fi
16580 ;;
16581 esac
16582
16583 if test "$ld_shlibs_GCJ" = no; then
16584 runpath_var=
16585 hardcode_libdir_flag_spec_GCJ=
16586 export_dynamic_flag_spec_GCJ=
16587 whole_archive_flag_spec_GCJ=
16588 fi
16589 else
16590 # PORTME fill in a description of your system's linker (not GNU ld)
16591 case $host_os in
16592 aix3*)
16593 allow_undefined_flag_GCJ=unsupported
16594 always_export_symbols_GCJ=yes
16595 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'
16596 # Note: this linker hardcodes the directories in LIBPATH if there
16597 # are no directories specified by -L.
16598 hardcode_minus_L_GCJ=yes
16599 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16600 # Neither direct hardcoding nor static linking is supported with a
16601 # broken collect2.
16602 hardcode_direct_GCJ=unsupported
16603 fi
16604 ;;
16605
16606 aix4* | aix5*)
16607 if test "$host_cpu" = ia64; then
16608 # On IA64, the linker does run time linking by default, so we don't
16609 # have to do anything special.
16610 aix_use_runtimelinking=no
16611 exp_sym_flag='-Bexport'
16612 no_entry_flag=""
16613 else
16614 # If we're using GNU nm, then we don't want the "-C" option.
16615 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16616 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16617 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'
16618 else
16619 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'
16620 fi
16621 aix_use_runtimelinking=no
16622
16623 # Test if we are trying to use run time linking or normal
16624 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16625 # need to do runtime linking.
16626 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16627 for ld_flag in $LDFLAGS; do
16628 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16629 aix_use_runtimelinking=yes
16630 break
16631 fi
16632 done
16633 ;;
16634 esac
16635
16636 exp_sym_flag='-bexport'
16637 no_entry_flag='-bnoentry'
16638 fi
16639
16640 # When large executables or shared objects are built, AIX ld can
16641 # have problems creating the table of contents. If linking a library
16642 # or program results in "error TOC overflow" add -mminimal-toc to
16643 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16644 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16645
16646 archive_cmds_GCJ=''
16647 hardcode_direct_GCJ=yes
16648 hardcode_libdir_separator_GCJ=':'
16649 link_all_deplibs_GCJ=yes
16650
16651 if test "$GCC" = yes; then
16652 case $host_os in aix4.[012]|aix4.[012].*)
16653 # We only want to do this on AIX 4.2 and lower, the check
16654 # below for broken collect2 doesn't work under 4.3+
16655 collect2name=`${CC} -print-prog-name=collect2`
16656 if test -f "$collect2name" && \
16657 strings "$collect2name" | grep resolve_lib_name >/dev/null
16658 then
16659 # We have reworked collect2
16660 hardcode_direct_GCJ=yes
16661 else
16662 # We have old collect2
16663 hardcode_direct_GCJ=unsupported
16664 # It fails to find uninstalled libraries when the uninstalled
16665 # path is not listed in the libpath. Setting hardcode_minus_L
16666 # to unsupported forces relinking
16667 hardcode_minus_L_GCJ=yes
16668 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16669 hardcode_libdir_separator_GCJ=
16670 fi
16671 ;;
16672 esac
16673 shared_flag='-shared'
16674 if test "$aix_use_runtimelinking" = yes; then
16675 shared_flag="$shared_flag "'${wl}-G'
16676 fi
16677 else
16678 # not using gcc
16679 if test "$host_cpu" = ia64; then
16680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16681 # chokes on -Wl,-G. The following line is correct:
16682 shared_flag='-G'
16683 else
16684 if test "$aix_use_runtimelinking" = yes; then
16685 shared_flag='${wl}-G'
16686 else
16687 shared_flag='${wl}-bM:SRE'
16688 fi
16689 fi
16690 fi
16691
16692 # It seems that -bexpall does not export symbols beginning with
16693 # underscore (_), so it is better to generate a list of symbols to export.
16694 always_export_symbols_GCJ=yes
16695 if test "$aix_use_runtimelinking" = yes; then
16696 # Warning - without using the other runtime loading flags (-brtl),
16697 # -berok will link without error, but may produce a broken library.
16698 allow_undefined_flag_GCJ='-berok'
16699 # Determine the default libpath from the value encoded in an empty executable.
16700 cat >conftest.$ac_ext <<_ACEOF
16701/* confdefs.h. */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h. */
16706
16707int
16708main ()
16709{
16710
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext conftest$ac_exeext
16716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16717 (eval $ac_link) 2>conftest.er1
16718 ac_status=$?
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -z "$ac_c_werror_flag"
16725 || test ! -s conftest.err'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest$ac_exeext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737
16738aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16739}'`
16740# Check for a 64-bit object if we didn't find anything.
16741if 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; }
16742}'`; fi
16743else
16744 echo "$as_me: failed program was:" >&5
16745sed 's/^/| /' conftest.$ac_ext >&5
16746
16747fi
16748rm -f conftest.err conftest.$ac_objext \
16749 conftest$ac_exeext conftest.$ac_ext
16750if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16751
16752 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16753 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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"
16754 else
16755 if test "$host_cpu" = ia64; then
16756 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16757 allow_undefined_flag_GCJ="-z nodefs"
16758 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16759 else
16760 # Determine the default libpath from the value encoded in an empty executable.
16761 cat >conftest.$ac_ext <<_ACEOF
16762/* confdefs.h. */
16763_ACEOF
16764cat confdefs.h >>conftest.$ac_ext
16765cat >>conftest.$ac_ext <<_ACEOF
16766/* end confdefs.h. */
16767
16768int
16769main ()
16770{
16771
16772 ;
16773 return 0;
16774}
16775_ACEOF
16776rm -f conftest.$ac_objext conftest$ac_exeext
16777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16778 (eval $ac_link) 2>conftest.er1
16779 ac_status=$?
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag"
16786 || test ! -s conftest.err'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest$ac_exeext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798
16799aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16800}'`
16801# Check for a 64-bit object if we didn't find anything.
16802if 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; }
16803}'`; fi
16804else
16805 echo "$as_me: failed program was:" >&5
16806sed 's/^/| /' conftest.$ac_ext >&5
16807
16808fi
16809rm -f conftest.err conftest.$ac_objext \
16810 conftest$ac_exeext conftest.$ac_ext
16811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16812
16813 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16814 # Warning - without using the other run time loading flags,
16815 # -berok will link without error, but may produce a broken library.
16816 no_undefined_flag_GCJ=' ${wl}-bernotok'
16817 allow_undefined_flag_GCJ=' ${wl}-berok'
16818 # Exported symbols can be pulled into shared objects from archives
16819 whole_archive_flag_spec_GCJ='$convenience'
16820 archive_cmds_need_lc_GCJ=yes
16821 # This is similar to how AIX traditionally builds its shared libraries.
16822 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16823 fi
16824 fi
16825 ;;
16826
16827 amigaos*)
16828 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)'
16829 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16830 hardcode_minus_L_GCJ=yes
16831 # see comment about different semantics on the GNU ld section
16832 ld_shlibs_GCJ=no
16833 ;;
16834
16835 bsdi[45]*)
16836 export_dynamic_flag_spec_GCJ=-rdynamic
16837 ;;
16838
16839 cygwin* | mingw* | pw32*)
16840 # When not using gcc, we currently assume that we are using
16841 # Microsoft Visual C++.
16842 # hardcode_libdir_flag_spec is actually meaningless, as there is
16843 # no search path for DLLs.
16844 hardcode_libdir_flag_spec_GCJ=' '
16845 allow_undefined_flag_GCJ=unsupported
16846 # Tell ltmain to make .lib files, not .a files.
16847 libext=lib
16848 # Tell ltmain to make .dll files, not .so files.
16849 shrext_cmds=".dll"
16850 # FIXME: Setting linknames here is a bad hack.
16851 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16852 # The linker will automatically build a .lib file if we build a DLL.
16853 old_archive_From_new_cmds_GCJ='true'
16854 # FIXME: Should let the user specify the lib program.
16855 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16856 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16857 enable_shared_with_static_runtimes_GCJ=yes
16858 ;;
16859
16860 darwin* | rhapsody*)
16861 case $host_os in
16862 rhapsody* | darwin1.[012])
16863 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16864 ;;
16865 *) # Darwin 1.3 on
16866 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16867 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16868 else
16869 case ${MACOSX_DEPLOYMENT_TARGET} in
16870 10.[012])
16871 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16872 ;;
16873 10.*)
16874 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16875 ;;
16876 esac
16877 fi
16878 ;;
16879 esac
16880 archive_cmds_need_lc_GCJ=no
16881 hardcode_direct_GCJ=no
16882 hardcode_automatic_GCJ=yes
16883 hardcode_shlibpath_var_GCJ=unsupported
16884 whole_archive_flag_spec_GCJ=''
16885 link_all_deplibs_GCJ=yes
16886 if test "$GCC" = yes ; then
16887 output_verbose_link_cmd='echo'
16888 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16889 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16890 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16891 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16892 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16893 else
16894 case $cc_basename in
16895 xlc*)
16896 output_verbose_link_cmd='echo'
16897 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16898 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16899 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16900 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16901 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16902 ;;
16903 *)
16904 ld_shlibs_GCJ=no
16905 ;;
16906 esac
16907 fi
16908 ;;
16909
16910 dgux*)
16911 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16912 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16913 hardcode_shlibpath_var_GCJ=no
16914 ;;
16915
16916 freebsd1*)
16917 ld_shlibs_GCJ=no
16918 ;;
16919
16920 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16921 # support. Future versions do this automatically, but an explicit c++rt0.o
16922 # does not break anything, and helps significantly (at the cost of a little
16923 # extra space).
16924 freebsd2.2*)
16925 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16926 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16927 hardcode_direct_GCJ=yes
16928 hardcode_shlibpath_var_GCJ=no
16929 ;;
16930
16931 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16932 freebsd2*)
16933 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16934 hardcode_direct_GCJ=yes
16935 hardcode_minus_L_GCJ=yes
16936 hardcode_shlibpath_var_GCJ=no
16937 ;;
16938
16939 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16940 freebsd* | kfreebsd*-gnu | dragonfly*)
16941 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16942 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16943 hardcode_direct_GCJ=yes
16944 hardcode_shlibpath_var_GCJ=no
16945 ;;
16946
16947 hpux9*)
16948 if test "$GCC" = yes; then
16949 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'
16950 else
16951 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'
16952 fi
16953 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16954 hardcode_libdir_separator_GCJ=:
16955 hardcode_direct_GCJ=yes
16956
16957 # hardcode_minus_L: Not really in the search PATH,
16958 # but as the default location of the library.
16959 hardcode_minus_L_GCJ=yes
16960 export_dynamic_flag_spec_GCJ='${wl}-E'
16961 ;;
16962
16963 hpux10*)
16964 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16965 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16966 else
16967 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16968 fi
16969 if test "$with_gnu_ld" = no; then
16970 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16971 hardcode_libdir_separator_GCJ=:
16972
16973 hardcode_direct_GCJ=yes
16974 export_dynamic_flag_spec_GCJ='${wl}-E'
16975
16976 # hardcode_minus_L: Not really in the search PATH,
16977 # but as the default location of the library.
16978 hardcode_minus_L_GCJ=yes
16979 fi
16980 ;;
16981
16982 hpux11*)
16983 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16984 case $host_cpu in
16985 hppa*64*)
16986 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16987 ;;
16988 ia64*)
16989 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16990 ;;
16991 *)
16992 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16993 ;;
16994 esac
16995 else
16996 case $host_cpu in
16997 hppa*64*)
16998 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16999 ;;
17000 ia64*)
17001 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17002 ;;
17003 *)
17004 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17005 ;;
17006 esac
17007 fi
17008 if test "$with_gnu_ld" = no; then
17009 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17010 hardcode_libdir_separator_GCJ=:
17011
17012 case $host_cpu in
17013 hppa*64*|ia64*)
17014 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17015 hardcode_direct_GCJ=no
17016 hardcode_shlibpath_var_GCJ=no
17017 ;;
17018 *)
17019 hardcode_direct_GCJ=yes
17020 export_dynamic_flag_spec_GCJ='${wl}-E'
17021
17022 # hardcode_minus_L: Not really in the search PATH,
17023 # but as the default location of the library.
17024 hardcode_minus_L_GCJ=yes
17025 ;;
17026 esac
17027 fi
17028 ;;
17029
17030 irix5* | irix6* | nonstopux*)
17031 if test "$GCC" = yes; then
17032 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'
17033 else
17034 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'
17035 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17036 fi
17037 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17038 hardcode_libdir_separator_GCJ=:
17039 link_all_deplibs_GCJ=yes
17040 ;;
17041
17042 netbsd*)
17043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17044 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17045 else
17046 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17047 fi
17048 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17049 hardcode_direct_GCJ=yes
17050 hardcode_shlibpath_var_GCJ=no
17051 ;;
17052
17053 newsos6)
17054 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17055 hardcode_direct_GCJ=yes
17056 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17057 hardcode_libdir_separator_GCJ=:
17058 hardcode_shlibpath_var_GCJ=no
17059 ;;
17060
17061 openbsd*)
17062 hardcode_direct_GCJ=yes
17063 hardcode_shlibpath_var_GCJ=no
17064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17065 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17066 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17067 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17068 export_dynamic_flag_spec_GCJ='${wl}-E'
17069 else
17070 case $host_os in
17071 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17072 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17074 ;;
17075 *)
17076 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17078 ;;
17079 esac
17080 fi
17081 ;;
17082
17083 os2*)
17084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17085 hardcode_minus_L_GCJ=yes
17086 allow_undefined_flag_GCJ=unsupported
17087 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'
17088 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17089 ;;
17090
17091 osf3*)
17092 if test "$GCC" = yes; then
17093 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17094 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'
17095 else
17096 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17097 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'
17098 fi
17099 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17100 hardcode_libdir_separator_GCJ=:
17101 ;;
17102
17103 osf4* | osf5*) # as osf3* with the addition of -msym flag
17104 if test "$GCC" = yes; then
17105 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17106 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'
17107 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17108 else
17109 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17110 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'
17111 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17112 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17113
17114 # Both c and cxx compiler support -rpath directly
17115 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17116 fi
17117 hardcode_libdir_separator_GCJ=:
17118 ;;
17119
17120 solaris*)
17121 no_undefined_flag_GCJ=' -z text'
17122 if test "$GCC" = yes; then
17123 wlarc='${wl}'
17124 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17125 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17126 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17127 else
17128 wlarc=''
17129 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17130 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17131 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17132 fi
17133 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17134 hardcode_shlibpath_var_GCJ=no
17135 case $host_os in
17136 solaris2.[0-5] | solaris2.[0-5].*) ;;
17137 *)
17138 # The compiler driver will combine linker options so we
17139 # cannot just pass the convience library names through
17140 # without $wl, iff we do not link with $LD.
17141 # Luckily, gcc supports the same syntax we need for Sun Studio.
17142 # Supported since Solaris 2.6 (maybe 2.5.1?)
17143 case $wlarc in
17144 '')
17145 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17146 *)
17147 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17148 esac ;;
17149 esac
17150 link_all_deplibs_GCJ=yes
17151 ;;
17152
17153 sunos4*)
17154 if test "x$host_vendor" = xsequent; then
17155 # Use $CC to link under sequent, because it throws in some extra .o
17156 # files that make .init and .fini sections work.
17157 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17158 else
17159 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17160 fi
17161 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17162 hardcode_direct_GCJ=yes
17163 hardcode_minus_L_GCJ=yes
17164 hardcode_shlibpath_var_GCJ=no
17165 ;;
17166
17167 sysv4)
17168 case $host_vendor in
17169 sni)
17170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17171 hardcode_direct_GCJ=yes # is this really true???
17172 ;;
17173 siemens)
17174 ## LD is ld it makes a PLAMLIB
17175 ## CC just makes a GrossModule.
17176 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17177 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17178 hardcode_direct_GCJ=no
17179 ;;
17180 motorola)
17181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17182 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17183 ;;
17184 esac
17185 runpath_var='LD_RUN_PATH'
17186 hardcode_shlibpath_var_GCJ=no
17187 ;;
17188
17189 sysv4.3*)
17190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17191 hardcode_shlibpath_var_GCJ=no
17192 export_dynamic_flag_spec_GCJ='-Bexport'
17193 ;;
17194
17195 sysv4*MP*)
17196 if test -d /usr/nec; then
17197 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17198 hardcode_shlibpath_var_GCJ=no
17199 runpath_var=LD_RUN_PATH
17200 hardcode_runpath_var=yes
17201 ld_shlibs_GCJ=yes
17202 fi
17203 ;;
17204
17205 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17206 no_undefined_flag_GCJ='${wl}-z,text'
17207 archive_cmds_need_lc_GCJ=no
17208 hardcode_shlibpath_var_GCJ=no
17209 runpath_var='LD_RUN_PATH'
17210
17211 if test "$GCC" = yes; then
17212 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17213 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17214 else
17215 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17216 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17217 fi
17218 ;;
17219
17220 sysv5* | sco3.2v5* | sco5v6*)
17221 # Note: We can NOT use -z defs as we might desire, because we do not
17222 # link with -lc, and that would cause any symbols used from libc to
17223 # always be unresolved, which means just about no library would
17224 # ever link correctly. If we're not using GNU ld we use -z text
17225 # though, which does catch some bad symbols but isn't as heavy-handed
17226 # as -z defs.
17227 no_undefined_flag_GCJ='${wl}-z,text'
17228 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17229 archive_cmds_need_lc_GCJ=no
17230 hardcode_shlibpath_var_GCJ=no
17231 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17232 hardcode_libdir_separator_GCJ=':'
17233 link_all_deplibs_GCJ=yes
17234 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17235 runpath_var='LD_RUN_PATH'
17236
17237 if test "$GCC" = yes; then
17238 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17239 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17240 else
17241 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17242 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17243 fi
17244 ;;
17245
17246 uts4*)
17247 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17248 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17249 hardcode_shlibpath_var_GCJ=no
17250 ;;
17251
17252 *)
17253 ld_shlibs_GCJ=no
17254 ;;
17255 esac
17256 fi
17257
17258echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17259echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17260test "$ld_shlibs_GCJ" = no && can_build_shared=no
17261
17262#
17263# Do we need to explicitly link libc?
17264#
17265case "x$archive_cmds_need_lc_GCJ" in
17266x|xyes)
17267 # Assume -lc should be added
17268 archive_cmds_need_lc_GCJ=yes
17269
17270 if test "$enable_shared" = yes && test "$GCC" = yes; then
17271 case $archive_cmds_GCJ in
17272 *'~'*)
17273 # FIXME: we may have to deal with multi-command sequences.
17274 ;;
17275 '$CC '*)
17276 # Test whether the compiler implicitly links with -lc since on some
17277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17278 # to ld, don't add -lc before -lgcc.
17279 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17280echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17281 $rm conftest*
17282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17283
17284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17285 (eval $ac_compile) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } 2>conftest.err; then
17289 soname=conftest
17290 lib=conftest
17291 libobjs=conftest.$ac_objext
17292 deplibs=
17293 wl=$lt_prog_compiler_wl_GCJ
17294 pic_flag=$lt_prog_compiler_pic_GCJ
17295 compiler_flags=-v
17296 linker_flags=-v
17297 verstring=
17298 output_objdir=.
17299 libname=conftest
17300 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17301 allow_undefined_flag_GCJ=
17302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17303 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }
17307 then
17308 archive_cmds_need_lc_GCJ=no
17309 else
17310 archive_cmds_need_lc_GCJ=yes
17311 fi
17312 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17313 else
17314 cat conftest.err 1>&5
17315 fi
17316 $rm conftest*
17317 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17318echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17319 ;;
17320 esac
17321 fi
17322 ;;
17323esac
17324
17325echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17326echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17327library_names_spec=
17328libname_spec='lib$name'
17329soname_spec=
17330shrext_cmds=".so"
17331postinstall_cmds=
17332postuninstall_cmds=
17333finish_cmds=
17334finish_eval=
17335shlibpath_var=
17336shlibpath_overrides_runpath=unknown
17337version_type=none
17338dynamic_linker="$host_os ld.so"
17339sys_lib_dlsearch_path_spec="/lib /usr/lib"
17340if test "$GCC" = yes; then
17341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17342 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17343 # if the path contains ";" then we assume it to be the separator
17344 # otherwise default to the standard path separator (i.e. ":") - it is
17345 # assumed that no part of a normal pathname contains ";" but that should
17346 # okay in the real world where ";" in dirpaths is itself problematic.
17347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17348 else
17349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17350 fi
17351else
17352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17353fi
17354need_lib_prefix=unknown
17355hardcode_into_libs=no
17356
17357# when you set need_version to no, make sure it does not cause -set_version
17358# flags to be left without arguments
17359need_version=unknown
17360
17361case $host_os in
17362aix3*)
17363 version_type=linux
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17365 shlibpath_var=LIBPATH
17366
17367 # AIX 3 has no versioning support, so we append a major version to the name.
17368 soname_spec='${libname}${release}${shared_ext}$major'
17369 ;;
17370
17371aix4* | aix5*)
17372 version_type=linux
17373 need_lib_prefix=no
17374 need_version=no
17375 hardcode_into_libs=yes
17376 if test "$host_cpu" = ia64; then
17377 # AIX 5 supports IA64
17378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 else
17381 # With GCC up to 2.95.x, collect2 would create an import file
17382 # for dependence libraries. The import file would start with
17383 # the line `#! .'. This would cause the generated library to
17384 # depend on `.', always an invalid library. This was fixed in
17385 # development snapshots of GCC prior to 3.0.
17386 case $host_os in
17387 aix4 | aix4.[01] | aix4.[01].*)
17388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17389 echo ' yes '
17390 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17391 :
17392 else
17393 can_build_shared=no
17394 fi
17395 ;;
17396 esac
17397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17398 # soname into executable. Probably we can add versioning support to
17399 # collect2, so additional links can be useful in future.
17400 if test "$aix_use_runtimelinking" = yes; then
17401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17402 # instead of lib<name>.a to let people know that these are not
17403 # typical AIX shared libraries.
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 else
17406 # We preserve .a as extension for shared libraries through AIX4.2
17407 # and later when we are not doing run time linking.
17408 library_names_spec='${libname}${release}.a $libname.a'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 fi
17411 shlibpath_var=LIBPATH
17412 fi
17413 ;;
17414
17415amigaos*)
17416 library_names_spec='$libname.ixlibrary $libname.a'
17417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17418 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'
17419 ;;
17420
17421beos*)
17422 library_names_spec='${libname}${shared_ext}'
17423 dynamic_linker="$host_os ld.so"
17424 shlibpath_var=LIBRARY_PATH
17425 ;;
17426
17427bsdi[45]*)
17428 version_type=linux
17429 need_version=no
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17433 shlibpath_var=LD_LIBRARY_PATH
17434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17436 # the default ld.so.conf also contains /usr/contrib/lib and
17437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17438 # libtool to hard-code these into programs
17439 ;;
17440
17441cygwin* | mingw* | pw32*)
17442 version_type=windows
17443 shrext_cmds=".dll"
17444 need_version=no
17445 need_lib_prefix=no
17446
17447 case $GCC,$host_os in
17448 yes,cygwin* | yes,mingw* | yes,pw32*)
17449 library_names_spec='$libname.dll.a'
17450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17451 postinstall_cmds='base_file=`basename \${file}`~
17452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17453 dldir=$destdir/`dirname \$dlpath`~
17454 test -d \$dldir || mkdir -p \$dldir~
17455 $install_prog $dir/$dlname \$dldir/$dlname~
17456 chmod a+x \$dldir/$dlname'
17457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17458 dlpath=$dir/\$dldll~
17459 $rm \$dlpath'
17460 shlibpath_overrides_runpath=yes
17461
17462 case $host_os in
17463 cygwin*)
17464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17467 ;;
17468 mingw*)
17469 # MinGW DLLs use traditional 'lib' prefix
17470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17473 # It is most probably a Windows format PATH printed by
17474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17475 # path with ; separators, and with drive letters. We can handle the
17476 # drive letters (cygwin fileutils understands them), so leave them,
17477 # especially as we might pass files found there to a mingw objdump,
17478 # which wouldn't understand a cygwinified path. Ahh.
17479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17480 else
17481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17482 fi
17483 ;;
17484 pw32*)
17485 # pw32 DLLs use 'pw' prefix rather than 'lib'
17486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17487 ;;
17488 esac
17489 ;;
17490
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060017491 linux*)
17492 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17494 supports_anon_versioning=no
17495 case `$LD -v 2>/dev/null` in
17496 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17499 *\ 2.11.*) ;; # other 2.11 versions
17500 *) supports_anon_versioning=yes ;;
17501 esac
17502 if test $supports_anon_versioning = yes; then
17503 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17504cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17505$echo "local: *; };" >> $output_objdir/$libname.ver~
17506 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17507 else
17508 $archive_expsym_cmds="$archive_cmds"
17509 fi
17510 else
17511 ld_shlibs=no
17512 fi
17513 ;;
17514
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017515 *)
17516 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17517 ;;
17518 esac
17519 dynamic_linker='Win32 ld.exe'
17520 # FIXME: first we should search . and the directory the executable is in
17521 shlibpath_var=PATH
17522 ;;
17523
17524darwin* | rhapsody*)
17525 dynamic_linker="$host_os dyld"
17526 version_type=darwin
17527 need_lib_prefix=no
17528 need_version=no
17529 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17530 soname_spec='${libname}${release}${major}$shared_ext'
17531 shlibpath_overrides_runpath=yes
17532 shlibpath_var=DYLD_LIBRARY_PATH
17533 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17534 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17535 if test "$GCC" = yes; then
17536 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17537 else
17538 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17539 fi
17540 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17541 ;;
17542
17543dgux*)
17544 version_type=linux
17545 need_lib_prefix=no
17546 need_version=no
17547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17548 soname_spec='${libname}${release}${shared_ext}$major'
17549 shlibpath_var=LD_LIBRARY_PATH
17550 ;;
17551
17552freebsd1*)
17553 dynamic_linker=no
17554 ;;
17555
17556kfreebsd*-gnu)
17557 version_type=linux
17558 need_lib_prefix=no
17559 need_version=no
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17561 soname_spec='${libname}${release}${shared_ext}$major'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=no
17564 hardcode_into_libs=yes
17565 dynamic_linker='GNU ld.so'
17566 ;;
17567
17568freebsd* | dragonfly*)
17569 # DragonFly does not have aout. When/if they implement a new
17570 # versioning mechanism, adjust this.
17571 if test -x /usr/bin/objformat; then
17572 objformat=`/usr/bin/objformat`
17573 else
17574 case $host_os in
17575 freebsd[123]*) objformat=aout ;;
17576 *) objformat=elf ;;
17577 esac
17578 fi
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060017579 # Handle Gentoo/FreeBSD as it was Linux
17580 case $host_vendor in
17581 gentoo)
17582 version_type=linux ;;
17583 *)
17584 version_type=freebsd-$objformat ;;
17585 esac
17586
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017587 case $version_type in
17588 freebsd-elf*)
17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17590 need_version=no
17591 need_lib_prefix=no
17592 ;;
17593 freebsd-*)
17594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17595 need_version=yes
17596 ;;
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060017597 linux)
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 need_lib_prefix=no
17601 need_version=no
17602 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017603 esac
17604 shlibpath_var=LD_LIBRARY_PATH
17605 case $host_os in
17606 freebsd2*)
17607 shlibpath_overrides_runpath=yes
17608 ;;
17609 freebsd3.[01]* | freebsdelf3.[01]*)
17610 shlibpath_overrides_runpath=yes
17611 hardcode_into_libs=yes
17612 ;;
17613 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17614 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17615 shlibpath_overrides_runpath=no
17616 hardcode_into_libs=yes
17617 ;;
17618 freebsd*) # from 4.6 on
17619 shlibpath_overrides_runpath=yes
17620 hardcode_into_libs=yes
17621 ;;
17622 esac
17623 ;;
17624
17625gnu*)
17626 version_type=linux
17627 need_lib_prefix=no
17628 need_version=no
17629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17630 soname_spec='${libname}${release}${shared_ext}$major'
17631 shlibpath_var=LD_LIBRARY_PATH
17632 hardcode_into_libs=yes
17633 ;;
17634
17635hpux9* | hpux10* | hpux11*)
17636 # Give a soname corresponding to the major version so that dld.sl refuses to
17637 # link against other versions.
17638 version_type=sunos
17639 need_lib_prefix=no
17640 need_version=no
17641 case $host_cpu in
17642 ia64*)
17643 shrext_cmds='.so'
17644 hardcode_into_libs=yes
17645 dynamic_linker="$host_os dld.so"
17646 shlibpath_var=LD_LIBRARY_PATH
17647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17650 if test "X$HPUX_IA64_MODE" = X32; then
17651 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17652 else
17653 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17654 fi
17655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17656 ;;
17657 hppa*64*)
17658 shrext_cmds='.sl'
17659 hardcode_into_libs=yes
17660 dynamic_linker="$host_os dld.sl"
17661 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664 soname_spec='${libname}${release}${shared_ext}$major'
17665 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17667 ;;
17668 *)
17669 shrext_cmds='.sl'
17670 dynamic_linker="$host_os dld.sl"
17671 shlibpath_var=SHLIB_PATH
17672 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17674 soname_spec='${libname}${release}${shared_ext}$major'
17675 ;;
17676 esac
17677 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17678 postinstall_cmds='chmod 555 $lib'
17679 ;;
17680
17681interix3*)
17682 version_type=linux
17683 need_lib_prefix=no
17684 need_version=no
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17688 shlibpath_var=LD_LIBRARY_PATH
17689 shlibpath_overrides_runpath=no
17690 hardcode_into_libs=yes
17691 ;;
17692
17693irix5* | irix6* | nonstopux*)
17694 case $host_os in
17695 nonstopux*) version_type=nonstopux ;;
17696 *)
17697 if test "$lt_cv_prog_gnu_ld" = yes; then
17698 version_type=linux
17699 else
17700 version_type=irix
17701 fi ;;
17702 esac
17703 need_lib_prefix=no
17704 need_version=no
17705 soname_spec='${libname}${release}${shared_ext}$major'
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17707 case $host_os in
17708 irix5* | nonstopux*)
17709 libsuff= shlibsuff=
17710 ;;
17711 *)
17712 case $LD in # libtool.m4 will add one of these switches to LD
17713 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17714 libsuff= shlibsuff= libmagic=32-bit;;
17715 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17716 libsuff=32 shlibsuff=N32 libmagic=N32;;
17717 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17718 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17719 *) libsuff= shlibsuff= libmagic=never-match;;
17720 esac
17721 ;;
17722 esac
17723 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17724 shlibpath_overrides_runpath=no
17725 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17726 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17727 hardcode_into_libs=yes
17728 ;;
17729
17730# No shared lib support for Linux oldld, aout, or coff.
17731linux*oldld* | linux*aout* | linux*coff*)
17732 dynamic_linker=no
17733 ;;
17734
17735# This must be Linux ELF.
17736linux*)
17737 version_type=linux
17738 need_lib_prefix=no
17739 need_version=no
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17741 soname_spec='${libname}${release}${shared_ext}$major'
17742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17743 shlibpath_var=LD_LIBRARY_PATH
17744 shlibpath_overrides_runpath=no
17745 # This implies no fast_install, which is unacceptable.
17746 # Some rework will be needed to allow for fast_install
17747 # before this can be enabled.
17748 hardcode_into_libs=yes
17749
17750 # Append ld.so.conf contents to the search path
17751 if test -f /etc/ld.so.conf; then
17752 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17753 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17754 fi
17755
17756 # We used to test for /lib/ld.so.1 and disable shared libraries on
17757 # powerpc, because MkLinux only supported shared libraries with the
17758 # GNU dynamic linker. Since this was broken with cross compilers,
17759 # most powerpc-linux boxes support dynamic linking these days and
17760 # people can always --disable-shared, the test was removed, and we
17761 # assume the GNU/Linux dynamic linker is in use.
17762 dynamic_linker='GNU/Linux ld.so'
17763 ;;
17764
17765knetbsd*-gnu)
17766 version_type=linux
17767 need_lib_prefix=no
17768 need_version=no
17769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17770 soname_spec='${libname}${release}${shared_ext}$major'
17771 shlibpath_var=LD_LIBRARY_PATH
17772 shlibpath_overrides_runpath=no
17773 hardcode_into_libs=yes
17774 dynamic_linker='GNU ld.so'
17775 ;;
17776
17777netbsd*)
17778 version_type=sunos
17779 need_lib_prefix=no
17780 need_version=no
17781 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17784 dynamic_linker='NetBSD (a.out) ld.so'
17785 else
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 dynamic_linker='NetBSD ld.elf_so'
17789 fi
17790 shlibpath_var=LD_LIBRARY_PATH
17791 shlibpath_overrides_runpath=yes
17792 hardcode_into_libs=yes
17793 ;;
17794
17795newsos6)
17796 version_type=linux
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798 shlibpath_var=LD_LIBRARY_PATH
17799 shlibpath_overrides_runpath=yes
17800 ;;
17801
17802nto-qnx*)
17803 version_type=linux
17804 need_lib_prefix=no
17805 need_version=no
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17807 soname_spec='${libname}${release}${shared_ext}$major'
17808 shlibpath_var=LD_LIBRARY_PATH
17809 shlibpath_overrides_runpath=yes
17810 ;;
17811
17812openbsd*)
17813 version_type=sunos
17814 sys_lib_dlsearch_path_spec="/usr/lib"
17815 need_lib_prefix=no
17816 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17817 case $host_os in
17818 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17819 *) need_version=no ;;
17820 esac
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17823 shlibpath_var=LD_LIBRARY_PATH
17824 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17825 case $host_os in
17826 openbsd2.[89] | openbsd2.[89].*)
17827 shlibpath_overrides_runpath=no
17828 ;;
17829 *)
17830 shlibpath_overrides_runpath=yes
17831 ;;
17832 esac
17833 else
17834 shlibpath_overrides_runpath=yes
17835 fi
17836 ;;
17837
17838os2*)
17839 libname_spec='$name'
17840 shrext_cmds=".dll"
17841 need_lib_prefix=no
17842 library_names_spec='$libname${shared_ext} $libname.a'
17843 dynamic_linker='OS/2 ld.exe'
17844 shlibpath_var=LIBPATH
17845 ;;
17846
17847osf3* | osf4* | osf5*)
17848 version_type=osf
17849 need_lib_prefix=no
17850 need_version=no
17851 soname_spec='${libname}${release}${shared_ext}$major'
17852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17853 shlibpath_var=LD_LIBRARY_PATH
17854 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17855 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17856 ;;
17857
17858solaris*)
17859 version_type=linux
17860 need_lib_prefix=no
17861 need_version=no
17862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17863 soname_spec='${libname}${release}${shared_ext}$major'
17864 shlibpath_var=LD_LIBRARY_PATH
17865 shlibpath_overrides_runpath=yes
17866 hardcode_into_libs=yes
17867 # ldd complains unless libraries are executable
17868 postinstall_cmds='chmod +x $lib'
17869 ;;
17870
17871sunos4*)
17872 version_type=sunos
17873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17875 shlibpath_var=LD_LIBRARY_PATH
17876 shlibpath_overrides_runpath=yes
17877 if test "$with_gnu_ld" = yes; then
17878 need_lib_prefix=no
17879 fi
17880 need_version=yes
17881 ;;
17882
17883sysv4 | sysv4.3*)
17884 version_type=linux
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 soname_spec='${libname}${release}${shared_ext}$major'
17887 shlibpath_var=LD_LIBRARY_PATH
17888 case $host_vendor in
17889 sni)
17890 shlibpath_overrides_runpath=no
17891 need_lib_prefix=no
17892 export_dynamic_flag_spec='${wl}-Blargedynsym'
17893 runpath_var=LD_RUN_PATH
17894 ;;
17895 siemens)
17896 need_lib_prefix=no
17897 ;;
17898 motorola)
17899 need_lib_prefix=no
17900 need_version=no
17901 shlibpath_overrides_runpath=no
17902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17903 ;;
17904 esac
17905 ;;
17906
17907sysv4*MP*)
17908 if test -d /usr/nec ;then
17909 version_type=linux
17910 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17911 soname_spec='$libname${shared_ext}.$major'
17912 shlibpath_var=LD_LIBRARY_PATH
17913 fi
17914 ;;
17915
17916sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17917 version_type=freebsd-elf
17918 need_lib_prefix=no
17919 need_version=no
17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17921 soname_spec='${libname}${release}${shared_ext}$major'
17922 shlibpath_var=LD_LIBRARY_PATH
17923 hardcode_into_libs=yes
17924 if test "$with_gnu_ld" = yes; then
17925 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17926 shlibpath_overrides_runpath=no
17927 else
17928 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17929 shlibpath_overrides_runpath=yes
17930 case $host_os in
17931 sco3.2v5*)
17932 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17933 ;;
17934 esac
17935 fi
17936 sys_lib_dlsearch_path_spec='/usr/lib'
17937 ;;
17938
17939uts4*)
17940 version_type=linux
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942 soname_spec='${libname}${release}${shared_ext}$major'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 ;;
17945
17946*)
17947 dynamic_linker=no
17948 ;;
17949esac
17950echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17951echo "${ECHO_T}$dynamic_linker" >&6
17952test "$dynamic_linker" = no && can_build_shared=no
17953
17954variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17955if test "$GCC" = yes; then
17956 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17957fi
17958
17959echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17960echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17961hardcode_action_GCJ=
17962if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17963 test -n "$runpath_var_GCJ" || \
17964 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17965
17966 # We can hardcode non-existant directories.
17967 if test "$hardcode_direct_GCJ" != no &&
17968 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17969 # have to relink, otherwise we might link with an installed library
17970 # when we should be linking with a yet-to-be-installed one
17971 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17972 test "$hardcode_minus_L_GCJ" != no; then
17973 # Linking always hardcodes the temporary library directory.
17974 hardcode_action_GCJ=relink
17975 else
17976 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17977 hardcode_action_GCJ=immediate
17978 fi
17979else
17980 # We cannot hardcode anything, or else we can only hardcode existing
17981 # directories.
17982 hardcode_action_GCJ=unsupported
17983fi
17984echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17985echo "${ECHO_T}$hardcode_action_GCJ" >&6
17986
17987if test "$hardcode_action_GCJ" = relink; then
17988 # Fast installation is not supported
17989 enable_fast_install=no
17990elif test "$shlibpath_overrides_runpath" = yes ||
17991 test "$enable_shared" = no; then
17992 # Fast installation is not necessary
17993 enable_fast_install=needless
17994fi
17995
17996
17997# The else clause should only fire when bootstrapping the
17998# libtool distribution, otherwise you forgot to ship ltmain.sh
17999# with your package, and you will get complaints that there are
18000# no rules to generate ltmain.sh.
18001if test -f "$ltmain"; then
18002 # See if we are running on zsh, and set the options which allow our commands through
18003 # without removal of \ escapes.
18004 if test -n "${ZSH_VERSION+set}" ; then
18005 setopt NO_GLOB_SUBST
18006 fi
18007 # Now quote all the things that may contain metacharacters while being
18008 # careful not to overquote the AC_SUBSTed values. We take copies of the
18009 # variables and quote the copies for generation of the libtool script.
18010 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18011 SED SHELL STRIP \
18012 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18013 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18014 deplibs_check_method reload_flag reload_cmds need_locks \
18015 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18016 lt_cv_sys_global_symbol_to_c_name_address \
18017 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18018 old_postinstall_cmds old_postuninstall_cmds \
18019 compiler_GCJ \
18020 CC_GCJ \
18021 LD_GCJ \
18022 lt_prog_compiler_wl_GCJ \
18023 lt_prog_compiler_pic_GCJ \
18024 lt_prog_compiler_static_GCJ \
18025 lt_prog_compiler_no_builtin_flag_GCJ \
18026 export_dynamic_flag_spec_GCJ \
18027 thread_safe_flag_spec_GCJ \
18028 whole_archive_flag_spec_GCJ \
18029 enable_shared_with_static_runtimes_GCJ \
18030 old_archive_cmds_GCJ \
18031 old_archive_from_new_cmds_GCJ \
18032 predep_objects_GCJ \
18033 postdep_objects_GCJ \
18034 predeps_GCJ \
18035 postdeps_GCJ \
18036 compiler_lib_search_path_GCJ \
18037 archive_cmds_GCJ \
18038 archive_expsym_cmds_GCJ \
18039 postinstall_cmds_GCJ \
18040 postuninstall_cmds_GCJ \
18041 old_archive_from_expsyms_cmds_GCJ \
18042 allow_undefined_flag_GCJ \
18043 no_undefined_flag_GCJ \
18044 export_symbols_cmds_GCJ \
18045 hardcode_libdir_flag_spec_GCJ \
18046 hardcode_libdir_flag_spec_ld_GCJ \
18047 hardcode_libdir_separator_GCJ \
18048 hardcode_automatic_GCJ \
18049 module_cmds_GCJ \
18050 module_expsym_cmds_GCJ \
18051 lt_cv_prog_compiler_c_o_GCJ \
18052 exclude_expsyms_GCJ \
18053 include_expsyms_GCJ; do
18054
18055 case $var in
18056 old_archive_cmds_GCJ | \
18057 old_archive_from_new_cmds_GCJ | \
18058 archive_cmds_GCJ | \
18059 archive_expsym_cmds_GCJ | \
18060 module_cmds_GCJ | \
18061 module_expsym_cmds_GCJ | \
18062 old_archive_from_expsyms_cmds_GCJ | \
18063 export_symbols_cmds_GCJ | \
18064 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18065 postinstall_cmds | postuninstall_cmds | \
18066 old_postinstall_cmds | old_postuninstall_cmds | \
18067 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18068 # Double-quote double-evaled strings.
18069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18070 ;;
18071 *)
18072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18073 ;;
18074 esac
18075 done
18076
18077 case $lt_echo in
18078 *'\$0 --fallback-echo"')
18079 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18080 ;;
18081 esac
18082
18083cfgfile="$ofile"
18084
18085 cat <<__EOF__ >> "$cfgfile"
18086# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18087
18088# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18089
18090# Shell to use when invoking shell scripts.
18091SHELL=$lt_SHELL
18092
18093# Whether or not to build shared libraries.
18094build_libtool_libs=$enable_shared
18095
18096# Whether or not to build static libraries.
18097build_old_libs=$enable_static
18098
18099# Whether or not to add -lc for building shared libraries.
18100build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18101
18102# Whether or not to disallow shared libs when runtime libs are static
18103allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18104
18105# Whether or not to optimize for fast installation.
18106fast_install=$enable_fast_install
18107
18108# The host system.
18109host_alias=$host_alias
18110host=$host
18111host_os=$host_os
18112
18113# The build system.
18114build_alias=$build_alias
18115build=$build
18116build_os=$build_os
18117
18118# An echo program that does not interpret backslashes.
18119echo=$lt_echo
18120
18121# The archiver.
18122AR=$lt_AR
18123AR_FLAGS=$lt_AR_FLAGS
18124
18125# A C compiler.
18126LTCC=$lt_LTCC
18127
18128# LTCC compiler flags.
18129LTCFLAGS=$lt_LTCFLAGS
18130
18131# A language-specific compiler.
18132CC=$lt_compiler_GCJ
18133
18134# Is the compiler the GNU C compiler?
18135with_gcc=$GCC_GCJ
18136
18137# An ERE matcher.
18138EGREP=$lt_EGREP
18139
18140# The linker used to build libraries.
18141LD=$lt_LD_GCJ
18142
18143# Whether we need hard or soft links.
18144LN_S=$lt_LN_S
18145
18146# A BSD-compatible nm program.
18147NM=$lt_NM
18148
18149# A symbol stripping program
18150STRIP=$lt_STRIP
18151
18152# Used to examine libraries when file_magic_cmd begins "file"
18153MAGIC_CMD=$MAGIC_CMD
18154
18155# Used on cygwin: DLL creation program.
18156DLLTOOL="$DLLTOOL"
18157
18158# Used on cygwin: object dumper.
18159OBJDUMP="$OBJDUMP"
18160
18161# Used on cygwin: assembler.
18162AS="$AS"
18163
18164# The name of the directory that contains temporary libtool files.
18165objdir=$objdir
18166
18167# How to create reloadable object files.
18168reload_flag=$lt_reload_flag
18169reload_cmds=$lt_reload_cmds
18170
18171# How to pass a linker flag through the compiler.
18172wl=$lt_lt_prog_compiler_wl_GCJ
18173
18174# Object file suffix (normally "o").
18175objext="$ac_objext"
18176
18177# Old archive suffix (normally "a").
18178libext="$libext"
18179
18180# Shared library suffix (normally ".so").
18181shrext_cmds='$shrext_cmds'
18182
18183# Executable file suffix (normally "").
18184exeext="$exeext"
18185
18186# Additional compiler flags for building library objects.
18187pic_flag=$lt_lt_prog_compiler_pic_GCJ
18188pic_mode=$pic_mode
18189
18190# What is the maximum length of a command?
18191max_cmd_len=$lt_cv_sys_max_cmd_len
18192
18193# Does compiler simultaneously support -c and -o options?
18194compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18195
18196# Must we lock files when doing compilation?
18197need_locks=$lt_need_locks
18198
18199# Do we need the lib prefix for modules?
18200need_lib_prefix=$need_lib_prefix
18201
18202# Do we need a version for libraries?
18203need_version=$need_version
18204
18205# Whether dlopen is supported.
18206dlopen_support=$enable_dlopen
18207
18208# Whether dlopen of programs is supported.
18209dlopen_self=$enable_dlopen_self
18210
18211# Whether dlopen of statically linked programs is supported.
18212dlopen_self_static=$enable_dlopen_self_static
18213
18214# Compiler flag to prevent dynamic linking.
18215link_static_flag=$lt_lt_prog_compiler_static_GCJ
18216
18217# Compiler flag to turn off builtin functions.
18218no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18219
18220# Compiler flag to allow reflexive dlopens.
18221export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18222
18223# Compiler flag to generate shared objects directly from archives.
18224whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18225
18226# Compiler flag to generate thread-safe objects.
18227thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18228
18229# Library versioning type.
18230version_type=$version_type
18231
18232# Format of library name prefix.
18233libname_spec=$lt_libname_spec
18234
18235# List of archive names. First name is the real one, the rest are links.
18236# The last name is the one that the linker finds with -lNAME.
18237library_names_spec=$lt_library_names_spec
18238
18239# The coded name of the library, if different from the real name.
18240soname_spec=$lt_soname_spec
18241
18242# Commands used to build and install an old-style archive.
18243RANLIB=$lt_RANLIB
18244old_archive_cmds=$lt_old_archive_cmds_GCJ
18245old_postinstall_cmds=$lt_old_postinstall_cmds
18246old_postuninstall_cmds=$lt_old_postuninstall_cmds
18247
18248# Create an old-style archive from a shared archive.
18249old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18250
18251# Create a temporary old-style archive to link instead of a shared archive.
18252old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18253
18254# Commands used to build and install a shared archive.
18255archive_cmds=$lt_archive_cmds_GCJ
18256archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18257postinstall_cmds=$lt_postinstall_cmds
18258postuninstall_cmds=$lt_postuninstall_cmds
18259
18260# Commands used to build a loadable module (assumed same as above if empty)
18261module_cmds=$lt_module_cmds_GCJ
18262module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18263
18264# Commands to strip libraries.
18265old_striplib=$lt_old_striplib
18266striplib=$lt_striplib
18267
18268# Dependencies to place before the objects being linked to create a
18269# shared library.
18270predep_objects=$lt_predep_objects_GCJ
18271
18272# Dependencies to place after the objects being linked to create a
18273# shared library.
18274postdep_objects=$lt_postdep_objects_GCJ
18275
18276# Dependencies to place before the objects being linked to create a
18277# shared library.
18278predeps=$lt_predeps_GCJ
18279
18280# Dependencies to place after the objects being linked to create a
18281# shared library.
18282postdeps=$lt_postdeps_GCJ
18283
18284# The library search path used internally by the compiler when linking
18285# a shared library.
18286compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18287
18288# Method to check whether dependent libraries are shared objects.
18289deplibs_check_method=$lt_deplibs_check_method
18290
18291# Command to use when deplibs_check_method == file_magic.
18292file_magic_cmd=$lt_file_magic_cmd
18293
18294# Flag that allows shared libraries with undefined symbols to be built.
18295allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18296
18297# Flag that forces no undefined symbols.
18298no_undefined_flag=$lt_no_undefined_flag_GCJ
18299
18300# Commands used to finish a libtool library installation in a directory.
18301finish_cmds=$lt_finish_cmds
18302
18303# Same as above, but a single script fragment to be evaled but not shown.
18304finish_eval=$lt_finish_eval
18305
18306# Take the output of nm and produce a listing of raw symbols and C names.
18307global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18308
18309# Transform the output of nm in a proper C declaration
18310global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18311
18312# Transform the output of nm in a C name address pair
18313global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18314
18315# This is the shared library runtime path variable.
18316runpath_var=$runpath_var
18317
18318# This is the shared library path variable.
18319shlibpath_var=$shlibpath_var
18320
18321# Is shlibpath searched before the hard-coded library search path?
18322shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18323
18324# How to hardcode a shared library path into an executable.
18325hardcode_action=$hardcode_action_GCJ
18326
18327# Whether we should hardcode library paths into libraries.
18328hardcode_into_libs=$hardcode_into_libs
18329
18330# Flag to hardcode \$libdir into a binary during linking.
18331# This must work even if \$libdir does not exist.
18332hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18333
18334# If ld is used when linking, flag to hardcode \$libdir into
18335# a binary during linking. This must work even if \$libdir does
18336# not exist.
18337hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18338
18339# Whether we need a single -rpath flag with a separated argument.
18340hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18341
18342# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18343# resulting binary.
18344hardcode_direct=$hardcode_direct_GCJ
18345
18346# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18347# resulting binary.
18348hardcode_minus_L=$hardcode_minus_L_GCJ
18349
18350# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18351# the resulting binary.
18352hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18353
18354# Set to yes if building a shared library automatically hardcodes DIR into the library
18355# and all subsequent libraries and executables linked against it.
18356hardcode_automatic=$hardcode_automatic_GCJ
18357
18358# Variables whose values should be saved in libtool wrapper scripts and
18359# restored at relink time.
18360variables_saved_for_relink="$variables_saved_for_relink"
18361
18362# Whether libtool must link a program against all its dependency libraries.
18363link_all_deplibs=$link_all_deplibs_GCJ
18364
18365# Compile-time system search path for libraries
18366sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18367
18368# Run-time system search path for libraries
18369sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18370
18371# Fix the shell variable \$srcfile for the compiler.
18372fix_srcfile_path="$fix_srcfile_path_GCJ"
18373
18374# Set to yes if exported symbols are required.
18375always_export_symbols=$always_export_symbols_GCJ
18376
18377# The commands to list exported symbols.
18378export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18379
18380# The commands to extract the exported symbol list from a shared archive.
18381extract_expsyms_cmds=$lt_extract_expsyms_cmds
18382
18383# Symbols that should not be listed in the preloaded symbols.
18384exclude_expsyms=$lt_exclude_expsyms_GCJ
18385
18386# Symbols that must always be exported.
18387include_expsyms=$lt_include_expsyms_GCJ
18388
18389# ### END LIBTOOL TAG CONFIG: $tagname
18390
18391__EOF__
18392
18393
18394else
18395 # If there is no Makefile yet, we rely on a make rule to execute
18396 # `config.status --recheck' to rerun these tests and create the
18397 # libtool script then.
18398 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18399 if test -f "$ltmain_in"; then
18400 test -f Makefile && make "$ltmain"
18401 fi
18402fi
18403
18404
18405ac_ext=c
18406ac_cpp='$CPP $CPPFLAGS'
18407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409ac_compiler_gnu=$ac_cv_c_compiler_gnu
18410
18411CC="$lt_save_CC"
18412
18413 else
18414 tagname=""
18415 fi
18416 ;;
18417
18418 RC)
18419
18420
18421
18422# Source file extension for RC test sources.
18423ac_ext=rc
18424
18425# Object file extension for compiled RC test sources.
18426objext=o
18427objext_RC=$objext
18428
18429# Code to be used in simple compile tests
18430lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18431
18432# Code to be used in simple link tests
18433lt_simple_link_test_code="$lt_simple_compile_test_code"
18434
18435# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18436
18437# If no C compiler was specified, use CC.
18438LTCC=${LTCC-"$CC"}
18439
18440# If no C compiler flags were specified, use CFLAGS.
18441LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18442
18443# Allow CC to be a program name with arguments.
18444compiler=$CC
18445
18446
18447# save warnings/boilerplate of simple test code
18448ac_outfile=conftest.$ac_objext
18449printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18450eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18451_lt_compiler_boilerplate=`cat conftest.err`
18452$rm conftest*
18453
18454ac_outfile=conftest.$ac_objext
18455printf "$lt_simple_link_test_code" >conftest.$ac_ext
18456eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18457_lt_linker_boilerplate=`cat conftest.err`
18458$rm conftest*
18459
18460
18461# Allow CC to be a program name with arguments.
18462lt_save_CC="$CC"
18463CC=${RC-"windres"}
18464compiler=$CC
18465compiler_RC=$CC
18466for cc_temp in $compiler""; do
18467 case $cc_temp in
18468 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18469 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18470 \-*) ;;
18471 *) break;;
18472 esac
18473done
18474cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18475
18476lt_cv_prog_compiler_c_o_RC=yes
18477
18478# The else clause should only fire when bootstrapping the
18479# libtool distribution, otherwise you forgot to ship ltmain.sh
18480# with your package, and you will get complaints that there are
18481# no rules to generate ltmain.sh.
18482if test -f "$ltmain"; then
18483 # See if we are running on zsh, and set the options which allow our commands through
18484 # without removal of \ escapes.
18485 if test -n "${ZSH_VERSION+set}" ; then
18486 setopt NO_GLOB_SUBST
18487 fi
18488 # Now quote all the things that may contain metacharacters while being
18489 # careful not to overquote the AC_SUBSTed values. We take copies of the
18490 # variables and quote the copies for generation of the libtool script.
18491 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18492 SED SHELL STRIP \
18493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18495 deplibs_check_method reload_flag reload_cmds need_locks \
18496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18497 lt_cv_sys_global_symbol_to_c_name_address \
18498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18499 old_postinstall_cmds old_postuninstall_cmds \
18500 compiler_RC \
18501 CC_RC \
18502 LD_RC \
18503 lt_prog_compiler_wl_RC \
18504 lt_prog_compiler_pic_RC \
18505 lt_prog_compiler_static_RC \
18506 lt_prog_compiler_no_builtin_flag_RC \
18507 export_dynamic_flag_spec_RC \
18508 thread_safe_flag_spec_RC \
18509 whole_archive_flag_spec_RC \
18510 enable_shared_with_static_runtimes_RC \
18511 old_archive_cmds_RC \
18512 old_archive_from_new_cmds_RC \
18513 predep_objects_RC \
18514 postdep_objects_RC \
18515 predeps_RC \
18516 postdeps_RC \
18517 compiler_lib_search_path_RC \
18518 archive_cmds_RC \
18519 archive_expsym_cmds_RC \
18520 postinstall_cmds_RC \
18521 postuninstall_cmds_RC \
18522 old_archive_from_expsyms_cmds_RC \
18523 allow_undefined_flag_RC \
18524 no_undefined_flag_RC \
18525 export_symbols_cmds_RC \
18526 hardcode_libdir_flag_spec_RC \
18527 hardcode_libdir_flag_spec_ld_RC \
18528 hardcode_libdir_separator_RC \
18529 hardcode_automatic_RC \
18530 module_cmds_RC \
18531 module_expsym_cmds_RC \
18532 lt_cv_prog_compiler_c_o_RC \
18533 exclude_expsyms_RC \
18534 include_expsyms_RC; do
18535
18536 case $var in
18537 old_archive_cmds_RC | \
18538 old_archive_from_new_cmds_RC | \
18539 archive_cmds_RC | \
18540 archive_expsym_cmds_RC | \
18541 module_cmds_RC | \
18542 module_expsym_cmds_RC | \
18543 old_archive_from_expsyms_cmds_RC | \
18544 export_symbols_cmds_RC | \
18545 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18546 postinstall_cmds | postuninstall_cmds | \
18547 old_postinstall_cmds | old_postuninstall_cmds | \
18548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18549 # Double-quote double-evaled strings.
18550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18551 ;;
18552 *)
18553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18554 ;;
18555 esac
18556 done
18557
18558 case $lt_echo in
18559 *'\$0 --fallback-echo"')
18560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18561 ;;
18562 esac
18563
18564cfgfile="$ofile"
18565
18566 cat <<__EOF__ >> "$cfgfile"
18567# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18568
18569# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18570
18571# Shell to use when invoking shell scripts.
18572SHELL=$lt_SHELL
18573
18574# Whether or not to build shared libraries.
18575build_libtool_libs=$enable_shared
18576
18577# Whether or not to build static libraries.
18578build_old_libs=$enable_static
18579
18580# Whether or not to add -lc for building shared libraries.
18581build_libtool_need_lc=$archive_cmds_need_lc_RC
18582
18583# Whether or not to disallow shared libs when runtime libs are static
18584allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18585
18586# Whether or not to optimize for fast installation.
18587fast_install=$enable_fast_install
18588
18589# The host system.
18590host_alias=$host_alias
18591host=$host
18592host_os=$host_os
18593
18594# The build system.
18595build_alias=$build_alias
18596build=$build
18597build_os=$build_os
18598
18599# An echo program that does not interpret backslashes.
18600echo=$lt_echo
18601
18602# The archiver.
18603AR=$lt_AR
18604AR_FLAGS=$lt_AR_FLAGS
18605
18606# A C compiler.
18607LTCC=$lt_LTCC
18608
18609# LTCC compiler flags.
18610LTCFLAGS=$lt_LTCFLAGS
18611
18612# A language-specific compiler.
18613CC=$lt_compiler_RC
18614
18615# Is the compiler the GNU C compiler?
18616with_gcc=$GCC_RC
18617
18618# An ERE matcher.
18619EGREP=$lt_EGREP
18620
18621# The linker used to build libraries.
18622LD=$lt_LD_RC
18623
18624# Whether we need hard or soft links.
18625LN_S=$lt_LN_S
18626
18627# A BSD-compatible nm program.
18628NM=$lt_NM
18629
18630# A symbol stripping program
18631STRIP=$lt_STRIP
18632
18633# Used to examine libraries when file_magic_cmd begins "file"
18634MAGIC_CMD=$MAGIC_CMD
18635
18636# Used on cygwin: DLL creation program.
18637DLLTOOL="$DLLTOOL"
18638
18639# Used on cygwin: object dumper.
18640OBJDUMP="$OBJDUMP"
18641
18642# Used on cygwin: assembler.
18643AS="$AS"
18644
18645# The name of the directory that contains temporary libtool files.
18646objdir=$objdir
18647
18648# How to create reloadable object files.
18649reload_flag=$lt_reload_flag
18650reload_cmds=$lt_reload_cmds
18651
18652# How to pass a linker flag through the compiler.
18653wl=$lt_lt_prog_compiler_wl_RC
18654
18655# Object file suffix (normally "o").
18656objext="$ac_objext"
18657
18658# Old archive suffix (normally "a").
18659libext="$libext"
18660
18661# Shared library suffix (normally ".so").
18662shrext_cmds='$shrext_cmds'
18663
18664# Executable file suffix (normally "").
18665exeext="$exeext"
18666
18667# Additional compiler flags for building library objects.
18668pic_flag=$lt_lt_prog_compiler_pic_RC
18669pic_mode=$pic_mode
18670
18671# What is the maximum length of a command?
18672max_cmd_len=$lt_cv_sys_max_cmd_len
18673
18674# Does compiler simultaneously support -c and -o options?
18675compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18676
18677# Must we lock files when doing compilation?
18678need_locks=$lt_need_locks
18679
18680# Do we need the lib prefix for modules?
18681need_lib_prefix=$need_lib_prefix
18682
18683# Do we need a version for libraries?
18684need_version=$need_version
18685
18686# Whether dlopen is supported.
18687dlopen_support=$enable_dlopen
18688
18689# Whether dlopen of programs is supported.
18690dlopen_self=$enable_dlopen_self
18691
18692# Whether dlopen of statically linked programs is supported.
18693dlopen_self_static=$enable_dlopen_self_static
18694
18695# Compiler flag to prevent dynamic linking.
18696link_static_flag=$lt_lt_prog_compiler_static_RC
18697
18698# Compiler flag to turn off builtin functions.
18699no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18700
18701# Compiler flag to allow reflexive dlopens.
18702export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18703
18704# Compiler flag to generate shared objects directly from archives.
18705whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18706
18707# Compiler flag to generate thread-safe objects.
18708thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18709
18710# Library versioning type.
18711version_type=$version_type
18712
18713# Format of library name prefix.
18714libname_spec=$lt_libname_spec
18715
18716# List of archive names. First name is the real one, the rest are links.
18717# The last name is the one that the linker finds with -lNAME.
18718library_names_spec=$lt_library_names_spec
18719
18720# The coded name of the library, if different from the real name.
18721soname_spec=$lt_soname_spec
18722
18723# Commands used to build and install an old-style archive.
18724RANLIB=$lt_RANLIB
18725old_archive_cmds=$lt_old_archive_cmds_RC
18726old_postinstall_cmds=$lt_old_postinstall_cmds
18727old_postuninstall_cmds=$lt_old_postuninstall_cmds
18728
18729# Create an old-style archive from a shared archive.
18730old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18731
18732# Create a temporary old-style archive to link instead of a shared archive.
18733old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18734
18735# Commands used to build and install a shared archive.
18736archive_cmds=$lt_archive_cmds_RC
18737archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18738postinstall_cmds=$lt_postinstall_cmds
18739postuninstall_cmds=$lt_postuninstall_cmds
18740
18741# Commands used to build a loadable module (assumed same as above if empty)
18742module_cmds=$lt_module_cmds_RC
18743module_expsym_cmds=$lt_module_expsym_cmds_RC
18744
18745# Commands to strip libraries.
18746old_striplib=$lt_old_striplib
18747striplib=$lt_striplib
18748
18749# Dependencies to place before the objects being linked to create a
18750# shared library.
18751predep_objects=$lt_predep_objects_RC
18752
18753# Dependencies to place after the objects being linked to create a
18754# shared library.
18755postdep_objects=$lt_postdep_objects_RC
18756
18757# Dependencies to place before the objects being linked to create a
18758# shared library.
18759predeps=$lt_predeps_RC
18760
18761# Dependencies to place after the objects being linked to create a
18762# shared library.
18763postdeps=$lt_postdeps_RC
18764
18765# The library search path used internally by the compiler when linking
18766# a shared library.
18767compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18768
18769# Method to check whether dependent libraries are shared objects.
18770deplibs_check_method=$lt_deplibs_check_method
18771
18772# Command to use when deplibs_check_method == file_magic.
18773file_magic_cmd=$lt_file_magic_cmd
18774
18775# Flag that allows shared libraries with undefined symbols to be built.
18776allow_undefined_flag=$lt_allow_undefined_flag_RC
18777
18778# Flag that forces no undefined symbols.
18779no_undefined_flag=$lt_no_undefined_flag_RC
18780
18781# Commands used to finish a libtool library installation in a directory.
18782finish_cmds=$lt_finish_cmds
18783
18784# Same as above, but a single script fragment to be evaled but not shown.
18785finish_eval=$lt_finish_eval
18786
18787# Take the output of nm and produce a listing of raw symbols and C names.
18788global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18789
18790# Transform the output of nm in a proper C declaration
18791global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18792
18793# Transform the output of nm in a C name address pair
18794global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18795
18796# This is the shared library runtime path variable.
18797runpath_var=$runpath_var
18798
18799# This is the shared library path variable.
18800shlibpath_var=$shlibpath_var
18801
18802# Is shlibpath searched before the hard-coded library search path?
18803shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18804
18805# How to hardcode a shared library path into an executable.
18806hardcode_action=$hardcode_action_RC
18807
18808# Whether we should hardcode library paths into libraries.
18809hardcode_into_libs=$hardcode_into_libs
18810
18811# Flag to hardcode \$libdir into a binary during linking.
18812# This must work even if \$libdir does not exist.
18813hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18814
18815# If ld is used when linking, flag to hardcode \$libdir into
18816# a binary during linking. This must work even if \$libdir does
18817# not exist.
18818hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18819
18820# Whether we need a single -rpath flag with a separated argument.
18821hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18822
18823# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18824# resulting binary.
18825hardcode_direct=$hardcode_direct_RC
18826
18827# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18828# resulting binary.
18829hardcode_minus_L=$hardcode_minus_L_RC
18830
18831# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18832# the resulting binary.
18833hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18834
18835# Set to yes if building a shared library automatically hardcodes DIR into the library
18836# and all subsequent libraries and executables linked against it.
18837hardcode_automatic=$hardcode_automatic_RC
18838
18839# Variables whose values should be saved in libtool wrapper scripts and
18840# restored at relink time.
18841variables_saved_for_relink="$variables_saved_for_relink"
18842
18843# Whether libtool must link a program against all its dependency libraries.
18844link_all_deplibs=$link_all_deplibs_RC
18845
18846# Compile-time system search path for libraries
18847sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18848
18849# Run-time system search path for libraries
18850sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18851
18852# Fix the shell variable \$srcfile for the compiler.
18853fix_srcfile_path="$fix_srcfile_path_RC"
18854
18855# Set to yes if exported symbols are required.
18856always_export_symbols=$always_export_symbols_RC
18857
18858# The commands to list exported symbols.
18859export_symbols_cmds=$lt_export_symbols_cmds_RC
18860
18861# The commands to extract the exported symbol list from a shared archive.
18862extract_expsyms_cmds=$lt_extract_expsyms_cmds
18863
18864# Symbols that should not be listed in the preloaded symbols.
18865exclude_expsyms=$lt_exclude_expsyms_RC
18866
18867# Symbols that must always be exported.
18868include_expsyms=$lt_include_expsyms_RC
18869
18870# ### END LIBTOOL TAG CONFIG: $tagname
18871
18872__EOF__
18873
18874
18875else
18876 # If there is no Makefile yet, we rely on a make rule to execute
18877 # `config.status --recheck' to rerun these tests and create the
18878 # libtool script then.
18879 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18880 if test -f "$ltmain_in"; then
18881 test -f Makefile && make "$ltmain"
18882 fi
18883fi
18884
18885
18886ac_ext=c
18887ac_cpp='$CPP $CPPFLAGS'
18888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890ac_compiler_gnu=$ac_cv_c_compiler_gnu
18891
18892CC="$lt_save_CC"
18893
18894 ;;
18895
18896 *)
18897 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18898echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18899 { (exit 1); exit 1; }; }
18900 ;;
18901 esac
18902
18903 # Append the new tag name to the list of available tags.
18904 if test -n "$tagname" ; then
18905 available_tags="$available_tags $tagname"
18906 fi
18907 fi
18908 done
18909 IFS="$lt_save_ifs"
18910
18911 # Now substitute the updated list of available tags.
18912 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18913 mv "${ofile}T" "$ofile"
18914 chmod +x "$ofile"
18915 else
18916 rm -f "${ofile}T"
18917 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18918echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18919 { (exit 1); exit 1; }; }
18920 fi
18921fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018922
18923
18924
18925# This can be used to rebuild libtool when needed
18926LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18927
18928# Always use our own libtool.
18929LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18930
18931# Prevent multiple expansion
18932
18933
18934
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018953# Checks for header files.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018954echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18955echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18956if test "${ac_cv_header_stdc+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18958else
18959 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018960/* confdefs.h. */
18961_ACEOF
18962cat confdefs.h >>conftest.$ac_ext
18963cat >>conftest.$ac_ext <<_ACEOF
18964/* end confdefs.h. */
18965#include <stdlib.h>
18966#include <stdarg.h>
18967#include <string.h>
18968#include <float.h>
18969
18970int
18971main ()
18972{
18973
18974 ;
18975 return 0;
18976}
18977_ACEOF
18978rm -f conftest.$ac_objext
18979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018980 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018981 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018987 { ac_try='test -z "$ac_c_werror_flag"
18988 || test ! -s conftest.err'
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; } &&
18994 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996 (eval $ac_try) 2>&5
18997 ac_status=$?
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; }; then
19000 ac_cv_header_stdc=yes
19001else
19002 echo "$as_me: failed program was:" >&5
19003sed 's/^/| /' conftest.$ac_ext >&5
19004
19005ac_cv_header_stdc=no
19006fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019008
19009if test $ac_cv_header_stdc = yes; then
19010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19011 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017#include <string.h>
19018
19019_ACEOF
19020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19021 $EGREP "memchr" >/dev/null 2>&1; then
19022 :
19023else
19024 ac_cv_header_stdc=no
19025fi
19026rm -f conftest*
19027
19028fi
19029
19030if test $ac_cv_header_stdc = yes; then
19031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19032 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019033/* confdefs.h. */
19034_ACEOF
19035cat confdefs.h >>conftest.$ac_ext
19036cat >>conftest.$ac_ext <<_ACEOF
19037/* end confdefs.h. */
19038#include <stdlib.h>
19039
19040_ACEOF
19041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19042 $EGREP "free" >/dev/null 2>&1; then
19043 :
19044else
19045 ac_cv_header_stdc=no
19046fi
19047rm -f conftest*
19048
19049fi
19050
19051if test $ac_cv_header_stdc = yes; then
19052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19053 if test "$cross_compiling" = yes; then
19054 :
19055else
19056 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019057/* confdefs.h. */
19058_ACEOF
19059cat confdefs.h >>conftest.$ac_ext
19060cat >>conftest.$ac_ext <<_ACEOF
19061/* end confdefs.h. */
19062#include <ctype.h>
19063#if ((' ' & 0x0FF) == 0x020)
19064# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19065# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19066#else
19067# define ISLOWER(c) \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019068 (('a' <= (c) && (c) <= 'i') \
19069 || ('j' <= (c) && (c) <= 'r') \
19070 || ('s' <= (c) && (c) <= 'z'))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019071# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19072#endif
19073
19074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19075int
19076main ()
19077{
19078 int i;
19079 for (i = 0; i < 256; i++)
19080 if (XOR (islower (i), ISLOWER (i))
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019081 || toupper (i) != TOUPPER (i))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019082 exit(2);
19083 exit (0);
19084}
19085_ACEOF
19086rm -f conftest$ac_exeext
19087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19088 (eval $ac_link) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 :
19098else
19099 echo "$as_me: program exited with status $ac_status" >&5
19100echo "$as_me: failed program was:" >&5
19101sed 's/^/| /' conftest.$ac_ext >&5
19102
19103( exit $ac_status )
19104ac_cv_header_stdc=no
19105fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019106rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019107fi
19108fi
19109fi
19110echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19111echo "${ECHO_T}$ac_cv_header_stdc" >&6
19112if test $ac_cv_header_stdc = yes; then
19113
19114cat >>confdefs.h <<\_ACEOF
19115#define STDC_HEADERS 1
19116_ACEOF
19117
19118fi
19119
19120
19121
19122
19123
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019124for ac_header in malloc.h stdlib.h string.h strings.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019125do
19126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19127if eval "test \"\${$as_ac_Header+set}\" = set"; then
19128 echo "$as_me:$LINENO: checking for $ac_header" >&5
19129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19130if eval "test \"\${$as_ac_Header+set}\" = set"; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19132fi
19133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19135else
19136 # Is the header compilable?
19137echo "$as_me:$LINENO: checking $ac_header usability" >&5
19138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19139cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019140/* confdefs.h. */
19141_ACEOF
19142cat confdefs.h >>conftest.$ac_ext
19143cat >>conftest.$ac_ext <<_ACEOF
19144/* end confdefs.h. */
19145$ac_includes_default
19146#include <$ac_header>
19147_ACEOF
19148rm -f conftest.$ac_objext
19149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019150 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019151 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019152 grep -v '^ *+' conftest.er1 >conftest.err
19153 rm -f conftest.er1
19154 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019157 { ac_try='test -z "$ac_c_werror_flag"
19158 || test ! -s conftest.err'
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
19170 ac_header_compiler=yes
19171else
19172 echo "$as_me: failed program was:" >&5
19173sed 's/^/| /' conftest.$ac_ext >&5
19174
19175ac_header_compiler=no
19176fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019178echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19179echo "${ECHO_T}$ac_header_compiler" >&6
19180
19181# Is the header present?
19182echo "$as_me:$LINENO: checking $ac_header presence" >&5
19183echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19184cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190#include <$ac_header>
19191_ACEOF
19192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19194 ac_status=$?
19195 grep -v '^ *+' conftest.er1 >conftest.err
19196 rm -f conftest.er1
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } >/dev/null; then
19200 if test -s conftest.err; then
19201 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019203 else
19204 ac_cpp_err=
19205 fi
19206else
19207 ac_cpp_err=yes
19208fi
19209if test -z "$ac_cpp_err"; then
19210 ac_header_preproc=yes
19211else
19212 echo "$as_me: failed program was:" >&5
19213sed 's/^/| /' conftest.$ac_ext >&5
19214
19215 ac_header_preproc=no
19216fi
19217rm -f conftest.err conftest.$ac_ext
19218echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19219echo "${ECHO_T}$ac_header_preproc" >&6
19220
19221# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19223 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19228 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019229 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019230 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019243 (
19244 cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019245## ------------------------------------------------------ ##
19246## Report this to png-mng-implement@lists.sourceforge.net ##
19247## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019248_ASBOX
19249 ) |
19250 sed "s/^/$as_me: WARNING: /" >&2
19251 ;;
19252esac
19253echo "$as_me:$LINENO: checking for $ac_header" >&5
19254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19255if eval "test \"\${$as_ac_Header+set}\" = set"; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19257else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019258 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019259fi
19260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19262
19263fi
19264if test `eval echo '${'$as_ac_Header'}'` = yes; then
19265 cat >>confdefs.h <<_ACEOF
19266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19267_ACEOF
19268
19269fi
19270
19271done
19272
19273
19274# Checks for typedefs, structures, and compiler characteristics.
19275echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19276echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19277if test "${ac_cv_c_const+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19279else
19280 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019281/* confdefs.h. */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h. */
19286
19287int
19288main ()
19289{
19290/* FIXME: Include the comments suggested by Paul. */
19291#ifndef __cplusplus
19292 /* Ultrix mips cc rejects this. */
19293 typedef int charset[2];
19294 const charset x;
19295 /* SunOS 4.1.1 cc rejects this. */
19296 char const *const *ccp;
19297 char **p;
19298 /* NEC SVR4.0.2 mips cc rejects this. */
19299 struct point {int x, y;};
19300 static struct point const zero = {0,0};
19301 /* AIX XL C 1.02.0.0 rejects this.
19302 It does not let you subtract one const X* pointer from another in
19303 an arm of an if-expression whose if-part is not a constant
19304 expression */
19305 const char *g = "string";
19306 ccp = &g + (g ? g-g : 0);
19307 /* HPUX 7.0 cc rejects these. */
19308 ++ccp;
19309 p = (char**) ccp;
19310 ccp = (char const *const *) p;
19311 { /* SCO 3.2v4 cc rejects this. */
19312 char *t;
19313 char const *s = 0 ? (char *) 0 : (char const *) 0;
19314
19315 *t++ = 0;
19316 }
19317 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19318 int x[] = {25, 17};
19319 const int *foo = &x[0];
19320 ++foo;
19321 }
19322 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19323 typedef const int *iptr;
19324 iptr p = 0;
19325 ++p;
19326 }
19327 { /* AIX XL C 1.02.0.0 rejects this saying
19328 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19329 struct s { int j; const int *ap[3]; };
19330 struct s *b; b->j = 5;
19331 }
19332 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19333 const int foo = 10;
19334 }
19335#endif
19336
19337 ;
19338 return 0;
19339}
19340_ACEOF
19341rm -f conftest.$ac_objext
19342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019343 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019344 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019350 { ac_try='test -z "$ac_c_werror_flag"
19351 || test ! -s conftest.err'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19354 ac_status=$?
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; }; then
19363 ac_cv_c_const=yes
19364else
19365 echo "$as_me: failed program was:" >&5
19366sed 's/^/| /' conftest.$ac_ext >&5
19367
19368ac_cv_c_const=no
19369fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019371fi
19372echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19373echo "${ECHO_T}$ac_cv_c_const" >&6
19374if test $ac_cv_c_const = no; then
19375
19376cat >>confdefs.h <<\_ACEOF
19377#define const
19378_ACEOF
19379
19380fi
19381
19382echo "$as_me:$LINENO: checking for size_t" >&5
19383echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19384if test "${ac_cv_type_size_t+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19386else
19387 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019388/* confdefs.h. */
19389_ACEOF
19390cat confdefs.h >>conftest.$ac_ext
19391cat >>conftest.$ac_ext <<_ACEOF
19392/* end confdefs.h. */
19393$ac_includes_default
19394int
19395main ()
19396{
19397if ((size_t *) 0)
19398 return 0;
19399if (sizeof (size_t))
19400 return 0;
19401 ;
19402 return 0;
19403}
19404_ACEOF
19405rm -f conftest.$ac_objext
19406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019407 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019408 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019414 { ac_try='test -z "$ac_c_werror_flag"
19415 || test ! -s conftest.err'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; } &&
19421 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 ac_cv_type_size_t=yes
19428else
19429 echo "$as_me: failed program was:" >&5
19430sed 's/^/| /' conftest.$ac_ext >&5
19431
19432ac_cv_type_size_t=no
19433fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019435fi
19436echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19437echo "${ECHO_T}$ac_cv_type_size_t" >&6
19438if test $ac_cv_type_size_t = yes; then
19439 :
19440else
19441
19442cat >>confdefs.h <<_ACEOF
19443#define size_t unsigned
19444_ACEOF
19445
19446fi
19447
19448echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19449echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19450if test "${ac_cv_struct_tm+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19452else
19453 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019454/* confdefs.h. */
19455_ACEOF
19456cat confdefs.h >>conftest.$ac_ext
19457cat >>conftest.$ac_ext <<_ACEOF
19458/* end confdefs.h. */
19459#include <sys/types.h>
19460#include <time.h>
19461
19462int
19463main ()
19464{
19465struct tm *tp; tp->tm_sec;
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest.$ac_objext
19471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019472 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019473 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019479 { ac_try='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_struct_tm=time.h
19493else
19494 echo "$as_me: failed program was:" >&5
19495sed 's/^/| /' conftest.$ac_ext >&5
19496
19497ac_cv_struct_tm=sys/time.h
19498fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019500fi
19501echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19502echo "${ECHO_T}$ac_cv_struct_tm" >&6
19503if test $ac_cv_struct_tm = sys/time.h; then
19504
19505cat >>confdefs.h <<\_ACEOF
19506#define TM_IN_SYS_TIME 1
19507_ACEOF
19508
19509fi
19510
19511
19512# Checks for library functions.
19513
19514for ac_header in stdlib.h
19515do
19516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19517if eval "test \"\${$as_ac_Header+set}\" = set"; then
19518 echo "$as_me:$LINENO: checking for $ac_header" >&5
19519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19520if eval "test \"\${$as_ac_Header+set}\" = set"; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522fi
19523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19525else
19526 # Is the header compilable?
19527echo "$as_me:$LINENO: checking $ac_header usability" >&5
19528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19529cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019530/* confdefs.h. */
19531_ACEOF
19532cat confdefs.h >>conftest.$ac_ext
19533cat >>conftest.$ac_ext <<_ACEOF
19534/* end confdefs.h. */
19535$ac_includes_default
19536#include <$ac_header>
19537_ACEOF
19538rm -f conftest.$ac_objext
19539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019540 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019541 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019547 { ac_try='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_header_compiler=yes
19561else
19562 echo "$as_me: failed program was:" >&5
19563sed 's/^/| /' conftest.$ac_ext >&5
19564
19565ac_header_compiler=no
19566fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019568echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19569echo "${ECHO_T}$ac_header_compiler" >&6
19570
19571# Is the header present?
19572echo "$as_me:$LINENO: checking $ac_header presence" >&5
19573echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19574cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019575/* confdefs.h. */
19576_ACEOF
19577cat confdefs.h >>conftest.$ac_ext
19578cat >>conftest.$ac_ext <<_ACEOF
19579/* end confdefs.h. */
19580#include <$ac_header>
19581_ACEOF
19582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19584 ac_status=$?
19585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } >/dev/null; then
19590 if test -s conftest.err; then
19591 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019593 else
19594 ac_cpp_err=
19595 fi
19596else
19597 ac_cpp_err=yes
19598fi
19599if test -z "$ac_cpp_err"; then
19600 ac_header_preproc=yes
19601else
19602 echo "$as_me: failed program was:" >&5
19603sed 's/^/| /' conftest.$ac_ext >&5
19604
19605 ac_header_preproc=no
19606fi
19607rm -f conftest.err conftest.$ac_ext
19608echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19609echo "${ECHO_T}$ac_header_preproc" >&6
19610
19611# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19613 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19618 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019619 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019620 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019633 (
19634 cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019635## ------------------------------------------------------ ##
19636## Report this to png-mng-implement@lists.sourceforge.net ##
19637## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019638_ASBOX
19639 ) |
19640 sed "s/^/$as_me: WARNING: /" >&2
19641 ;;
19642esac
19643echo "$as_me:$LINENO: checking for $ac_header" >&5
19644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19645if eval "test \"\${$as_ac_Header+set}\" = set"; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19647else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019648 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019649fi
19650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19652
19653fi
19654if test `eval echo '${'$as_ac_Header'}'` = yes; then
19655 cat >>confdefs.h <<_ACEOF
19656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19657_ACEOF
19658
19659fi
19660
19661done
19662
19663echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19664echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19665if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19667else
19668 if test "$cross_compiling" = yes; then
19669 ac_cv_func_malloc_0_nonnull=no
19670else
19671 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019672/* confdefs.h. */
19673_ACEOF
19674cat confdefs.h >>conftest.$ac_ext
19675cat >>conftest.$ac_ext <<_ACEOF
19676/* end confdefs.h. */
19677#if STDC_HEADERS || HAVE_STDLIB_H
19678# include <stdlib.h>
19679#else
19680char *malloc ();
19681#endif
19682
19683int
19684main ()
19685{
19686exit (malloc (0) ? 0 : 1);
19687 ;
19688 return 0;
19689}
19690_ACEOF
19691rm -f conftest$ac_exeext
19692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 ac_cv_func_malloc_0_nonnull=yes
19703else
19704 echo "$as_me: program exited with status $ac_status" >&5
19705echo "$as_me: failed program was:" >&5
19706sed 's/^/| /' conftest.$ac_ext >&5
19707
19708( exit $ac_status )
19709ac_cv_func_malloc_0_nonnull=no
19710fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019711rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019712fi
19713fi
19714echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19715echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19716if test $ac_cv_func_malloc_0_nonnull = yes; then
19717
19718cat >>confdefs.h <<\_ACEOF
19719#define HAVE_MALLOC 1
19720_ACEOF
19721
19722else
19723 cat >>confdefs.h <<\_ACEOF
19724#define HAVE_MALLOC 0
19725_ACEOF
19726
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019727 case $LIBOBJS in
19728 "malloc.$ac_objext" | \
19729 *" malloc.$ac_objext" | \
19730 "malloc.$ac_objext "* | \
19731 *" malloc.$ac_objext "* ) ;;
19732 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
19733esac
19734
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019735
19736cat >>confdefs.h <<\_ACEOF
19737#define malloc rpl_malloc
19738_ACEOF
19739
19740fi
19741
19742
19743
19744echo "$as_me:$LINENO: checking for working strtod" >&5
19745echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
19746if test "${ac_cv_func_strtod+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748else
19749 if test "$cross_compiling" = yes; then
19750 ac_cv_func_strtod=no
19751else
19752 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019753/* confdefs.h. */
19754_ACEOF
19755cat confdefs.h >>conftest.$ac_ext
19756cat >>conftest.$ac_ext <<_ACEOF
19757/* end confdefs.h. */
19758
19759double strtod ();
19760int
19761main()
19762{
19763 {
19764 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
19765 char *string = " +69";
19766 char *term;
19767 double value;
19768 value = strtod (string, &term);
19769 if (value != 69 || term != (string + 4))
19770 exit (1);
19771 }
19772
19773 {
19774 /* Under Solaris 2.4, strtod returns the wrong value for the
19775 terminating character under some conditions. */
19776 char *string = "NaN";
19777 char *term;
19778 strtod (string, &term);
19779 if (term != string && *(term - 1) == 0)
19780 exit (1);
19781 }
19782 exit (0);
19783}
19784
19785_ACEOF
19786rm -f conftest$ac_exeext
19787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19788 (eval $ac_link) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }; then
19797 ac_cv_func_strtod=yes
19798else
19799 echo "$as_me: program exited with status $ac_status" >&5
19800echo "$as_me: failed program was:" >&5
19801sed 's/^/| /' conftest.$ac_ext >&5
19802
19803( exit $ac_status )
19804ac_cv_func_strtod=no
19805fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019807fi
19808fi
19809echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
19810echo "${ECHO_T}$ac_cv_func_strtod" >&6
19811if test $ac_cv_func_strtod = no; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019812 case $LIBOBJS in
19813 "strtod.$ac_objext" | \
19814 *" strtod.$ac_objext" | \
19815 "strtod.$ac_objext "* | \
19816 *" strtod.$ac_objext "* ) ;;
19817 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
19818esac
19819
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019820echo "$as_me:$LINENO: checking for pow" >&5
19821echo $ECHO_N "checking for pow... $ECHO_C" >&6
19822if test "${ac_cv_func_pow+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19824else
19825 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019826/* confdefs.h. */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019831/* Define pow to an innocuous variant, in case <limits.h> declares pow.
19832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19833#define pow innocuous_pow
19834
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019835/* System header to define __stub macros and hopefully few prototypes,
19836 which can conflict with char pow (); below.
19837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19838 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019839
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019840#ifdef __STDC__
19841# include <limits.h>
19842#else
19843# include <assert.h>
19844#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019845
19846#undef pow
19847
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019848/* Override any gcc2 internal prototype to avoid an error. */
19849#ifdef __cplusplus
19850extern "C"
19851{
19852#endif
19853/* We use char because int might match the return type of a gcc2
19854 builtin and then its argument prototype would still apply. */
19855char pow ();
19856/* The GNU C library defines this for functions which it implements
19857 to always fail with ENOSYS. Some functions are actually named
19858 something starting with __ and the normal name is an alias. */
19859#if defined (__stub_pow) || defined (__stub___pow)
19860choke me
19861#else
19862char (*f) () = pow;
19863#endif
19864#ifdef __cplusplus
19865}
19866#endif
19867
19868int
19869main ()
19870{
19871return f != pow;
19872 ;
19873 return 0;
19874}
19875_ACEOF
19876rm -f conftest.$ac_objext conftest$ac_exeext
19877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019878 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019879 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019885 { ac_try='test -z "$ac_c_werror_flag"
19886 || test ! -s conftest.err'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_func_pow=yes
19899else
19900 echo "$as_me: failed program was:" >&5
19901sed 's/^/| /' conftest.$ac_ext >&5
19902
19903ac_cv_func_pow=no
19904fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019905rm -f conftest.err conftest.$ac_objext \
19906 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019907fi
19908echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
19909echo "${ECHO_T}$ac_cv_func_pow" >&6
19910
19911if test $ac_cv_func_pow = no; then
19912 echo "$as_me:$LINENO: checking for pow in -lm" >&5
19913echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
19914if test "${ac_cv_lib_m_pow+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916else
19917 ac_check_lib_save_LIBS=$LIBS
19918LIBS="-lm $LIBS"
19919cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019920/* confdefs.h. */
19921_ACEOF
19922cat confdefs.h >>conftest.$ac_ext
19923cat >>conftest.$ac_ext <<_ACEOF
19924/* end confdefs.h. */
19925
19926/* Override any gcc2 internal prototype to avoid an error. */
19927#ifdef __cplusplus
19928extern "C"
19929#endif
19930/* We use char because int might match the return type of a gcc2
19931 builtin and then its argument prototype would still apply. */
19932char pow ();
19933int
19934main ()
19935{
19936pow ();
19937 ;
19938 return 0;
19939}
19940_ACEOF
19941rm -f conftest.$ac_objext conftest$ac_exeext
19942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019943 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019944 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019950 { ac_try='test -z "$ac_c_werror_flag"
19951 || test ! -s conftest.err'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_cv_lib_m_pow=yes
19964else
19965 echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968ac_cv_lib_m_pow=no
19969fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019970rm -f conftest.err conftest.$ac_objext \
19971 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019972LIBS=$ac_check_lib_save_LIBS
19973fi
19974echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
19975echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
19976if test $ac_cv_lib_m_pow = yes; then
19977 POW_LIB=-lm
19978else
19979 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
19980echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
19981fi
19982
19983fi
19984
19985fi
19986
19987
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019988for ac_func in memset
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019989do
19990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19991echo "$as_me:$LINENO: checking for $ac_func" >&5
19992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19993if eval "test \"\${$as_ac_var+set}\" = set"; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19995else
19996 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019997/* confdefs.h. */
19998_ACEOF
19999cat confdefs.h >>conftest.$ac_ext
20000cat >>conftest.$ac_ext <<_ACEOF
20001/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20004#define $ac_func innocuous_$ac_func
20005
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020006/* System header to define __stub macros and hopefully few prototypes,
20007 which can conflict with char $ac_func (); below.
20008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20009 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020010
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020011#ifdef __STDC__
20012# include <limits.h>
20013#else
20014# include <assert.h>
20015#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020016
20017#undef $ac_func
20018
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020019/* Override any gcc2 internal prototype to avoid an error. */
20020#ifdef __cplusplus
20021extern "C"
20022{
20023#endif
20024/* We use char because int might match the return type of a gcc2
20025 builtin and then its argument prototype would still apply. */
20026char $ac_func ();
20027/* The GNU C library defines this for functions which it implements
20028 to always fail with ENOSYS. Some functions are actually named
20029 something starting with __ and the normal name is an alias. */
20030#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20031choke me
20032#else
20033char (*f) () = $ac_func;
20034#endif
20035#ifdef __cplusplus
20036}
20037#endif
20038
20039int
20040main ()
20041{
20042return f != $ac_func;
20043 ;
20044 return 0;
20045}
20046_ACEOF
20047rm -f conftest.$ac_objext conftest$ac_exeext
20048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020049 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020050 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020051 grep -v '^ *+' conftest.er1 >conftest.err
20052 rm -f conftest.er1
20053 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020056 { ac_try='test -z "$ac_c_werror_flag"
20057 || test ! -s conftest.err'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065 (eval $ac_try) 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 eval "$as_ac_var=yes"
20070else
20071 echo "$as_me: failed program was:" >&5
20072sed 's/^/| /' conftest.$ac_ext >&5
20073
20074eval "$as_ac_var=no"
20075fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020076rm -f conftest.err conftest.$ac_objext \
20077 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020078fi
20079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20080echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20081if test `eval echo '${'$as_ac_var'}'` = yes; then
20082 cat >>confdefs.h <<_ACEOF
20083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20084_ACEOF
20085
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020086else
20087 { { echo "$as_me:$LINENO: error: memset not found in libc" >&5
20088echo "$as_me: error: memset not found in libc" >&2;}
20089 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020090fi
20091done
20092
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020093
20094for ac_func in pow
20095do
20096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20097echo "$as_me:$LINENO: checking for $ac_func" >&5
20098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20099if eval "test \"\${$as_ac_var+set}\" = set"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020100 echo $ECHO_N "(cached) $ECHO_C" >&6
20101else
20102 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020103/* confdefs.h. */
20104_ACEOF
20105cat confdefs.h >>conftest.$ac_ext
20106cat >>conftest.$ac_ext <<_ACEOF
20107/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20110#define $ac_func innocuous_$ac_func
20111
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020112/* System header to define __stub macros and hopefully few prototypes,
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020113 which can conflict with char $ac_func (); below.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20115 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020116
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020117#ifdef __STDC__
20118# include <limits.h>
20119#else
20120# include <assert.h>
20121#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020122
20123#undef $ac_func
20124
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020125/* Override any gcc2 internal prototype to avoid an error. */
20126#ifdef __cplusplus
20127extern "C"
20128{
20129#endif
20130/* We use char because int might match the return type of a gcc2
20131 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020132char $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020133/* The GNU C library defines this for functions which it implements
20134 to always fail with ENOSYS. Some functions are actually named
20135 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020136#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020137choke me
20138#else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020139char (*f) () = $ac_func;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020140#endif
20141#ifdef __cplusplus
20142}
20143#endif
20144
20145int
20146main ()
20147{
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020148return f != $ac_func;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020149 ;
20150 return 0;
20151}
20152_ACEOF
20153rm -f conftest.$ac_objext conftest$ac_exeext
20154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020155 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020156 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020157 grep -v '^ *+' conftest.er1 >conftest.err
20158 rm -f conftest.er1
20159 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020162 { ac_try='test -z "$ac_c_werror_flag"
20163 || test ! -s conftest.err'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } &&
20169 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020175 eval "$as_ac_var=yes"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020176else
20177 echo "$as_me: failed program was:" >&5
20178sed 's/^/| /' conftest.$ac_ext >&5
20179
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020180eval "$as_ac_var=no"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020181fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020182rm -f conftest.err conftest.$ac_objext \
20183 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020184fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20186echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20187if test `eval echo '${'$as_ac_var'}'` = yes; then
20188 cat >>confdefs.h <<_ACEOF
20189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20190_ACEOF
20191
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020192else
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060020193
20194echo "$as_me:$LINENO: checking for pow in -lm" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020195echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
20196if test "${ac_cv_lib_m_pow+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198else
20199 ac_check_lib_save_LIBS=$LIBS
20200LIBS="-lm $LIBS"
20201cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020202/* confdefs.h. */
20203_ACEOF
20204cat confdefs.h >>conftest.$ac_ext
20205cat >>conftest.$ac_ext <<_ACEOF
20206/* end confdefs.h. */
20207
20208/* Override any gcc2 internal prototype to avoid an error. */
20209#ifdef __cplusplus
20210extern "C"
20211#endif
20212/* We use char because int might match the return type of a gcc2
20213 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020214char pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020215int
20216main ()
20217{
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020218pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020219 ;
20220 return 0;
20221}
20222_ACEOF
20223rm -f conftest.$ac_objext conftest$ac_exeext
20224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020225 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020226 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020227 grep -v '^ *+' conftest.er1 >conftest.err
20228 rm -f conftest.er1
20229 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020232 { ac_try='test -z "$ac_c_werror_flag"
20233 || test ! -s conftest.err'
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; } &&
20239 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020245 ac_cv_lib_m_pow=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020246else
20247 echo "$as_me: failed program was:" >&5
20248sed 's/^/| /' conftest.$ac_ext >&5
20249
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020250ac_cv_lib_m_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020251fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020252rm -f conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020254LIBS=$ac_check_lib_save_LIBS
20255fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020256echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20257echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
20258if test $ac_cv_lib_m_pow = yes; then
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060020259 cat >>confdefs.h <<_ACEOF
20260#define HAVE_LIBM 1
20261_ACEOF
20262
20263 LIBS="-lm $LIBS"
20264
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020265else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020266 { { echo "$as_me:$LINENO: error: cannot find pow" >&5
20267echo "$as_me: error: cannot find pow" >&2;}
20268 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020269fi
20270
20271fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020272done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020273
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060020274
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020275echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
20276echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
20277if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20279else
20280 ac_check_lib_save_LIBS=$LIBS
20281LIBS="-lz $LIBS"
20282cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020283/* confdefs.h. */
20284_ACEOF
20285cat confdefs.h >>conftest.$ac_ext
20286cat >>conftest.$ac_ext <<_ACEOF
20287/* end confdefs.h. */
20288
20289/* Override any gcc2 internal prototype to avoid an error. */
20290#ifdef __cplusplus
20291extern "C"
20292#endif
20293/* We use char because int might match the return type of a gcc2
20294 builtin and then its argument prototype would still apply. */
20295char zlibVersion ();
20296int
20297main ()
20298{
20299zlibVersion ();
20300 ;
20301 return 0;
20302}
20303_ACEOF
20304rm -f conftest.$ac_objext conftest$ac_exeext
20305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020306 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020307 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020313 { ac_try='test -z "$ac_c_werror_flag"
20314 || test ! -s conftest.err'
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326 ac_cv_lib_z_zlibVersion=yes
20327else
20328 echo "$as_me: failed program was:" >&5
20329sed 's/^/| /' conftest.$ac_ext >&5
20330
20331ac_cv_lib_z_zlibVersion=no
20332fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020333rm -f conftest.err conftest.$ac_objext \
20334 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020335LIBS=$ac_check_lib_save_LIBS
20336fi
20337echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
20338echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
20339if test $ac_cv_lib_z_zlibVersion = yes; then
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060020340 cat >>confdefs.h <<_ACEOF
20341#define HAVE_LIBZ 1
20342_ACEOF
20343
20344 LIBS="-lz $LIBS"
20345
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020346else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020347 { { echo "$as_me:$LINENO: error: zlib not installed" >&5
20348echo "$as_me: error: zlib not installed" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020349 { (exit 1); exit 1; }; }
20350fi
20351
20352
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020353echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
20354echo $ECHO_N "checking if libraries can be versioned... $ECHO_C" >&6
20355GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
20356if test "$GLD"; then
20357 have_ld_version_script=yes
20358 echo "$as_me:$LINENO: result: yes" >&5
20359echo "${ECHO_T}yes" >&6
20360else
20361 have_ld_version_script=no
20362 echo "$as_me:$LINENO: result: no" >&5
20363echo "${ECHO_T}no" >&6
20364 { echo "$as_me:$LINENO: WARNING: *** You may want to rerun configure using --with-gnu-ld to enable versioned symbols." >&5
20365echo "$as_me: WARNING: *** You may want to rerun configure using --with-gnu-ld to enable versioned symbols." >&2;}
20366fi
20367
20368
20369if test "$have_ld_version_script" = "yes"; then
20370 HAVE_LD_VERSION_SCRIPT_TRUE=
20371 HAVE_LD_VERSION_SCRIPT_FALSE='#'
20372else
20373 HAVE_LD_VERSION_SCRIPT_TRUE='#'
20374 HAVE_LD_VERSION_SCRIPT_FALSE=
20375fi
20376
20377
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020378# Substitutions for .in files
20379
20380
20381
20382
20383# Additional arguments (and substitutions)
20384# Allow the pkg-config directory to be set
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020385
20386# Check whether --with-pkgconfigdir or --without-pkgconfigdir was given.
20387if test "${with_pkgconfigdir+set}" = set; then
20388 withval="$with_pkgconfigdir"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020389 pkgconfigdir=${withval}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020390else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020391 pkgconfigdir='${libdir}/pkgconfig'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020392fi;
20393
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020394
20395{ echo "$as_me:$LINENO: pkgconfig directory is ${pkgconfigdir}" >&5
20396echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
20397
20398# Make the *-config binary config scripts optional
20399
20400# Check whether --with-binconfigs or --without-binconfigs was given.
20401if test "${with_binconfigs+set}" = set; then
20402 withval="$with_binconfigs"
20403 if test "${withval}" = no; then
20404 binconfigs=
20405 { echo "$as_me:$LINENO: libpng-config scripts will not be built" >&5
20406echo "$as_me: libpng-config scripts will not be built" >&6;}
20407 else
20408 binconfigs='${binconfigs}'
20409 fi
20410else
20411 binconfigs='${binconfigs}'
20412fi;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020413
20414
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020415# Allow the old version number library, libpng.so, to be removed from
20416# the build
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020417
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020418# Check whether --with-libpng-compat or --without-libpng-compat was given.
20419if test "${with_libpng_compat+set}" = set; then
20420 withval="$with_libpng_compat"
20421 if test "${withval}" = no; then
20422 compatlib=
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020423 { echo "$as_me:$LINENO: libpng.so will not be built" >&5
20424echo "$as_me: libpng.so will not be built" >&6;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020425 else
20426 compatlib=libpng.la
20427 fi
20428else
20429 compatlib=libpng.la
20430fi;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020431
20432
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020433# Config files, substituting as above
20434 ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc.in"
20435
20436 ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
20437
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020438
20439cat >confcache <<\_ACEOF
20440# This file is a shell script that caches the results of configure
20441# tests run on this system so they can be shared between configure
20442# scripts and configure runs, see configure's option --config-cache.
20443# It is not useful on other systems. If it contains results you don't
20444# want to keep, you may remove or edit it.
20445#
20446# config.status only pays attention to the cache file if you give it
20447# the --recheck option to rerun configure.
20448#
20449# `ac_cv_env_foo' variables (set or unset) will be overridden when
20450# loading this file, other *unset* `ac_cv_foo' will be assigned the
20451# following values.
20452
20453_ACEOF
20454
20455# The following way of writing the cache mishandles newlines in values,
20456# but we know of no workaround that is simple, portable, and efficient.
20457# So, don't put newlines in cache variables' values.
20458# Ultrix sh set writes to stderr and can't be redirected directly,
20459# and sets the high bit in the cache file unless we assign to the vars.
20460{
20461 (set) 2>&1 |
20462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20463 *ac_space=\ *)
20464 # `set' does not quote correctly, so add quotes (double-quote
20465 # substitution turns \\\\ into \\, and sed turns \\ into \).
20466 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020467 "s/'/'\\\\''/g;
20468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020469 ;;
20470 *)
20471 # `set' quotes correctly as required by POSIX, so do not add quotes.
20472 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020473 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020474 ;;
20475 esac;
20476} |
20477 sed '
20478 t clear
20479 : clear
20480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20481 t end
20482 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20483 : end' >>confcache
20484if diff $cache_file confcache >/dev/null 2>&1; then :; else
20485 if test -w $cache_file; then
20486 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20487 cat confcache >$cache_file
20488 else
20489 echo "not updating unwritable cache $cache_file"
20490 fi
20491fi
20492rm -f confcache
20493
20494test "x$prefix" = xNONE && prefix=$ac_default_prefix
20495# Let make expand exec_prefix.
20496test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20497
20498# VPATH may cause trouble with some makes, so we remove $(srcdir),
20499# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20500# trailing colons and then remove the whole line if VPATH becomes empty
20501# (actually we leave an empty line to preserve line numbers).
20502if test "x$srcdir" = x.; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020503 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020504s/:*\$(srcdir):*/:/;
20505s/:*\${srcdir}:*/:/;
20506s/:*@srcdir@:*/:/;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020507s/^\([^=]*=[ ]*\):*/\1/;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020508s/:*$//;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020509s/^[^=]*=[ ]*$//;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020510}'
20511fi
20512
20513DEFS=-DHAVE_CONFIG_H
20514
20515ac_libobjs=
20516ac_ltlibobjs=
20517for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20518 # 1. Remove the extension, and $U if already installed.
20519 ac_i=`echo "$ac_i" |
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020520 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020521 # 2. Add them.
20522 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20523 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20524done
20525LIBOBJS=$ac_libobjs
20526
20527LTLIBOBJS=$ac_ltlibobjs
20528
20529
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020530if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20531 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20532Usually this means the macro was only invoked conditionally." >&5
20533echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20534Usually this means the macro was only invoked conditionally." >&2;}
20535 { (exit 1); exit 1; }; }
20536fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020537if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20538 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20539Usually this means the macro was only invoked conditionally." >&5
20540echo "$as_me: error: conditional \"AMDEP\" was never defined.
20541Usually this means the macro was only invoked conditionally." >&2;}
20542 { (exit 1); exit 1; }; }
20543fi
20544if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20545 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20546Usually this means the macro was only invoked conditionally." >&5
20547echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20548Usually this means the macro was only invoked conditionally." >&2;}
20549 { (exit 1); exit 1; }; }
20550fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020551if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20552 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20553Usually this means the macro was only invoked conditionally." >&5
20554echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20555Usually this means the macro was only invoked conditionally." >&2;}
20556 { (exit 1); exit 1; }; }
20557fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020558if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20559 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20560Usually this means the macro was only invoked conditionally." >&5
20561echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20562Usually this means the macro was only invoked conditionally." >&2;}
20563 { (exit 1); exit 1; }; }
20564fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020565
20566: ${CONFIG_STATUS=./config.status}
20567ac_clean_files_save=$ac_clean_files
20568ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20569{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20570echo "$as_me: creating $CONFIG_STATUS" >&6;}
20571cat >$CONFIG_STATUS <<_ACEOF
20572#! $SHELL
20573# Generated by $as_me.
20574# Run this file to recreate the current configuration.
20575# Compiler output produced by configure, useful for debugging
20576# configure, is in config.log if it exists.
20577
20578debug=false
20579ac_cs_recheck=false
20580ac_cs_silent=false
20581SHELL=\${CONFIG_SHELL-$SHELL}
20582_ACEOF
20583
20584cat >>$CONFIG_STATUS <<\_ACEOF
20585## --------------------- ##
20586## M4sh Initialization. ##
20587## --------------------- ##
20588
20589# Be Bourne compatible
20590if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20591 emulate sh
20592 NULLCMD=:
20593 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20594 # is contrary to our usage. Disable this feature.
20595 alias -g '${1+"$@"}'='"$@"'
20596elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20597 set -o posix
20598fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020599DUALCASE=1; export DUALCASE # for MKS sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020600
20601# Support unset when possible.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020602if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020603 as_unset=unset
20604else
20605 as_unset=false
20606fi
20607
20608
20609# Work around bugs in pre-3.0 UWIN ksh.
20610$as_unset ENV MAIL MAILPATH
20611PS1='$ '
20612PS2='> '
20613PS4='+ '
20614
20615# NLS nuisances.
20616for as_var in \
20617 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20618 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20619 LC_TELEPHONE LC_TIME
20620do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020621 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020622 eval $as_var=C; export $as_var
20623 else
20624 $as_unset $as_var
20625 fi
20626done
20627
20628# Required to use basename.
20629if expr a : '\(a\)' >/dev/null 2>&1; then
20630 as_expr=expr
20631else
20632 as_expr=false
20633fi
20634
20635if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20636 as_basename=basename
20637else
20638 as_basename=false
20639fi
20640
20641
20642# Name of the executable.
20643as_me=`$as_basename "$0" ||
20644$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20645 X"$0" : 'X\(//\)$' \| \
20646 X"$0" : 'X\(/\)$' \| \
20647 . : '\(.\)' 2>/dev/null ||
20648echo X/"$0" |
20649 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20650 /^X\/\(\/\/\)$/{ s//\1/; q; }
20651 /^X\/\(\/\).*/{ s//\1/; q; }
20652 s/.*/./; q'`
20653
20654
20655# PATH needs CR, and LINENO needs CR and PATH.
20656# Avoid depending upon Character Ranges.
20657as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20658as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20659as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20660as_cr_digits='0123456789'
20661as_cr_alnum=$as_cr_Letters$as_cr_digits
20662
20663# The user is always right.
20664if test "${PATH_SEPARATOR+set}" != set; then
20665 echo "#! /bin/sh" >conf$$.sh
20666 echo "exit 0" >>conf$$.sh
20667 chmod +x conf$$.sh
20668 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20669 PATH_SEPARATOR=';'
20670 else
20671 PATH_SEPARATOR=:
20672 fi
20673 rm -f conf$$.sh
20674fi
20675
20676
20677 as_lineno_1=$LINENO
20678 as_lineno_2=$LINENO
20679 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20680 test "x$as_lineno_1" != "x$as_lineno_2" &&
20681 test "x$as_lineno_3" = "x$as_lineno_2" || {
20682 # Find who we are. Look in the path if we contain no path at all
20683 # relative or not.
20684 case $0 in
20685 *[\\/]* ) as_myself=$0 ;;
20686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20687for as_dir in $PATH
20688do
20689 IFS=$as_save_IFS
20690 test -z "$as_dir" && as_dir=.
20691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20692done
20693
20694 ;;
20695 esac
20696 # We did not find ourselves, most probably we were run as `sh COMMAND'
20697 # in which case we are not to be found in the path.
20698 if test "x$as_myself" = x; then
20699 as_myself=$0
20700 fi
20701 if test ! -f "$as_myself"; then
20702 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20703echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20704 { (exit 1); exit 1; }; }
20705 fi
20706 case $CONFIG_SHELL in
20707 '')
20708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20709for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20710do
20711 IFS=$as_save_IFS
20712 test -z "$as_dir" && as_dir=.
20713 for as_base in sh bash ksh sh5; do
20714 case $as_dir in
20715 /*)
20716 if ("$as_dir/$as_base" -c '
20717 as_lineno_1=$LINENO
20718 as_lineno_2=$LINENO
20719 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20720 test "x$as_lineno_1" != "x$as_lineno_2" &&
20721 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20722 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20723 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20724 CONFIG_SHELL=$as_dir/$as_base
20725 export CONFIG_SHELL
20726 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20727 fi;;
20728 esac
20729 done
20730done
20731;;
20732 esac
20733
20734 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20735 # uniformly replaced by the line number. The first 'sed' inserts a
20736 # line-number line before each line; the second 'sed' does the real
20737 # work. The second script uses 'N' to pair each line-number line
20738 # with the numbered line, and appends trailing '-' during
20739 # substitution so that $LINENO is not a special case at line end.
20740 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20741 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20742 sed '=' <$as_myself |
20743 sed '
20744 N
20745 s,$,-,
20746 : loop
20747 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20748 t loop
20749 s,-$,,
20750 s,^['$as_cr_digits']*\n,,
20751 ' >$as_me.lineno &&
20752 chmod +x $as_me.lineno ||
20753 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20754echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20755 { (exit 1); exit 1; }; }
20756
20757 # Don't try to exec as it changes $[0], causing all sort of problems
20758 # (the dirname of $[0] is not the place where we might find the
20759 # original and so on. Autoconf is especially sensible to this).
20760 . ./$as_me.lineno
20761 # Exit status is that of the last command.
20762 exit
20763}
20764
20765
20766case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20767 *c*,-n*) ECHO_N= ECHO_C='
20768' ECHO_T=' ' ;;
20769 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20770 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20771esac
20772
20773if expr a : '\(a\)' >/dev/null 2>&1; then
20774 as_expr=expr
20775else
20776 as_expr=false
20777fi
20778
20779rm -f conf$$ conf$$.exe conf$$.file
20780echo >conf$$.file
20781if ln -s conf$$.file conf$$ 2>/dev/null; then
20782 # We could just check for DJGPP; but this test a) works b) is more generic
20783 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20784 if test -f conf$$.exe; then
20785 # Don't use ln at all; we don't have any links
20786 as_ln_s='cp -p'
20787 else
20788 as_ln_s='ln -s'
20789 fi
20790elif ln conf$$.file conf$$ 2>/dev/null; then
20791 as_ln_s=ln
20792else
20793 as_ln_s='cp -p'
20794fi
20795rm -f conf$$ conf$$.exe conf$$.file
20796
20797if mkdir -p . 2>/dev/null; then
20798 as_mkdir_p=:
20799else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020800 test -d ./-p && rmdir ./-p
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020801 as_mkdir_p=false
20802fi
20803
20804as_executable_p="test -f"
20805
20806# Sed expression to map a string onto a valid CPP name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020807as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020808
20809# Sed expression to map a string onto a valid variable name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020810as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020811
20812
20813# IFS
20814# We need space, tab and new line, in precisely that order.
20815as_nl='
20816'
20817IFS=" $as_nl"
20818
20819# CDPATH.
20820$as_unset CDPATH
20821
20822exec 6>&1
20823
20824# Open the log real soon, to keep \$[0] and so on meaningful, and to
20825# report actual input values of CONFIG_FILES etc. instead of their
20826# values after options handling. Logging --version etc. is OK.
20827exec 5>>config.log
20828{
20829 echo
20830 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20831## Running $as_me. ##
20832_ASBOX
20833} >&5
20834cat >&5 <<_CSEOF
20835
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -060020836This file was extended by libpng $as_me 1.2.9beta10, which was
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020837generated by GNU Autoconf 2.59. Invocation command line was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020838
20839 CONFIG_FILES = $CONFIG_FILES
20840 CONFIG_HEADERS = $CONFIG_HEADERS
20841 CONFIG_LINKS = $CONFIG_LINKS
20842 CONFIG_COMMANDS = $CONFIG_COMMANDS
20843 $ $0 $@
20844
20845_CSEOF
20846echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20847echo >&5
20848_ACEOF
20849
20850# Files that config.status was made for.
20851if test -n "$ac_config_files"; then
20852 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20853fi
20854
20855if test -n "$ac_config_headers"; then
20856 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20857fi
20858
20859if test -n "$ac_config_links"; then
20860 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20861fi
20862
20863if test -n "$ac_config_commands"; then
20864 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20865fi
20866
20867cat >>$CONFIG_STATUS <<\_ACEOF
20868
20869ac_cs_usage="\
20870\`$as_me' instantiates files from templates according to the
20871current configuration.
20872
20873Usage: $0 [OPTIONS] [FILE]...
20874
20875 -h, --help print this help, then exit
20876 -V, --version print version number, then exit
20877 -q, --quiet do not print progress messages
20878 -d, --debug don't remove temporary files
20879 --recheck update $as_me by reconfiguring in the same conditions
20880 --file=FILE[:TEMPLATE]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020881 instantiate the configuration file FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020882 --header=FILE[:TEMPLATE]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020883 instantiate the configuration header FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020884
20885Configuration files:
20886$config_files
20887
20888Configuration headers:
20889$config_headers
20890
20891Configuration commands:
20892$config_commands
20893
20894Report bugs to <bug-autoconf@gnu.org>."
20895_ACEOF
20896
20897cat >>$CONFIG_STATUS <<_ACEOF
20898ac_cs_version="\\
Glenn Randers-Pehrson26e47d92006-03-20 07:24:58 -060020899libpng config.status 1.2.9beta10
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020900configured by $0, generated by GNU Autoconf 2.59,
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020901 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20902
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020903Copyright (C) 2003 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020904This config.status script is free software; the Free Software Foundation
20905gives unlimited permission to copy, distribute and modify it."
20906srcdir=$srcdir
20907INSTALL="$INSTALL"
20908_ACEOF
20909
20910cat >>$CONFIG_STATUS <<\_ACEOF
20911# If no file are specified by the user, then we need to provide default
20912# value. By we need to know if files were specified by the user.
20913ac_need_defaults=:
20914while test $# != 0
20915do
20916 case $1 in
20917 --*=*)
20918 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20919 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20920 ac_shift=:
20921 ;;
20922 -*)
20923 ac_option=$1
20924 ac_optarg=$2
20925 ac_shift=shift
20926 ;;
20927 *) # This is not an option, so the user has probably given explicit
20928 # arguments.
20929 ac_option=$1
20930 ac_need_defaults=false;;
20931 esac
20932
20933 case $ac_option in
20934 # Handling of the options.
20935_ACEOF
20936cat >>$CONFIG_STATUS <<\_ACEOF
20937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20938 ac_cs_recheck=: ;;
20939 --version | --vers* | -V )
20940 echo "$ac_cs_version"; exit 0 ;;
20941 --he | --h)
20942 # Conflict between --help and --header
20943 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20944Try \`$0 --help' for more information." >&5
20945echo "$as_me: error: ambiguous option: $1
20946Try \`$0 --help' for more information." >&2;}
20947 { (exit 1); exit 1; }; };;
20948 --help | --hel | -h )
20949 echo "$ac_cs_usage"; exit 0 ;;
20950 --debug | --d* | -d )
20951 debug=: ;;
20952 --file | --fil | --fi | --f )
20953 $ac_shift
20954 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20955 ac_need_defaults=false;;
20956 --header | --heade | --head | --hea )
20957 $ac_shift
20958 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20959 ac_need_defaults=false;;
20960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20961 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20962 ac_cs_silent=: ;;
20963
20964 # This is an error.
20965 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20966Try \`$0 --help' for more information." >&5
20967echo "$as_me: error: unrecognized option: $1
20968Try \`$0 --help' for more information." >&2;}
20969 { (exit 1); exit 1; }; } ;;
20970
20971 *) ac_config_targets="$ac_config_targets $1" ;;
20972
20973 esac
20974 shift
20975done
20976
20977ac_configure_extra_args=
20978
20979if $ac_cs_silent; then
20980 exec 6>/dev/null
20981 ac_configure_extra_args="$ac_configure_extra_args --silent"
20982fi
20983
20984_ACEOF
20985cat >>$CONFIG_STATUS <<_ACEOF
20986if \$ac_cs_recheck; then
20987 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20988 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20989fi
20990
20991_ACEOF
20992
20993cat >>$CONFIG_STATUS <<_ACEOF
20994#
20995# INIT-COMMANDS section.
20996#
20997
20998AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20999
21000_ACEOF
21001
21002
21003
21004cat >>$CONFIG_STATUS <<\_ACEOF
21005for ac_config_target in $ac_config_targets
21006do
21007 case "$ac_config_target" in
21008 # Handling of arguments.
21009 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021010 "libpng.pc" ) CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc.in" ;;
21011 "libpng-config" ) CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021012 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21013 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21014 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21015echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21016 { (exit 1); exit 1; }; };;
21017 esac
21018done
21019
21020# If the user did not use the arguments to specify the items to instantiate,
21021# then the envvar interface is used. Set only those that are not.
21022# We use the long form for the default assignment because of an extremely
21023# bizarre bug on SunOS 4.1.3.
21024if $ac_need_defaults; then
21025 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21026 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21027 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21028fi
21029
21030# Have a temporary directory for convenience. Make it in the build tree
21031# simply because there is no reason to put it here, and in addition,
21032# creating and moving files from /tmp can sometimes cause problems.
21033# Create a temporary directory, and hook for its removal unless debugging.
21034$debug ||
21035{
21036 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21037 trap '{ (exit 1); exit 1; }' 1 2 13 15
21038}
21039
21040# Create a (secure) tmp directory for tmp files.
21041
21042{
21043 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21044 test -n "$tmp" && test -d "$tmp"
21045} ||
21046{
21047 tmp=./confstat$$-$RANDOM
21048 (umask 077 && mkdir $tmp)
21049} ||
21050{
21051 echo "$me: cannot create a temporary directory in ." >&2
21052 { (exit 1); exit 1; }
21053}
21054
21055_ACEOF
21056
21057cat >>$CONFIG_STATUS <<_ACEOF
21058
21059#
21060# CONFIG_FILES section.
21061#
21062
21063# No need to generate the scripts if there are no CONFIG_FILES.
21064# This happens for instance when ./config.status config.h
21065if test -n "\$CONFIG_FILES"; then
21066 # Protect against being on the right side of a sed subst in config.status.
21067 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21068 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21069s,@SHELL@,$SHELL,;t t
21070s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21071s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21072s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21073s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21074s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21075s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21076s,@exec_prefix@,$exec_prefix,;t t
21077s,@prefix@,$prefix,;t t
21078s,@program_transform_name@,$program_transform_name,;t t
21079s,@bindir@,$bindir,;t t
21080s,@sbindir@,$sbindir,;t t
21081s,@libexecdir@,$libexecdir,;t t
21082s,@datadir@,$datadir,;t t
21083s,@sysconfdir@,$sysconfdir,;t t
21084s,@sharedstatedir@,$sharedstatedir,;t t
21085s,@localstatedir@,$localstatedir,;t t
21086s,@libdir@,$libdir,;t t
21087s,@includedir@,$includedir,;t t
21088s,@oldincludedir@,$oldincludedir,;t t
21089s,@infodir@,$infodir,;t t
21090s,@mandir@,$mandir,;t t
21091s,@build_alias@,$build_alias,;t t
21092s,@host_alias@,$host_alias,;t t
21093s,@target_alias@,$target_alias,;t t
21094s,@DEFS@,$DEFS,;t t
21095s,@ECHO_C@,$ECHO_C,;t t
21096s,@ECHO_N@,$ECHO_N,;t t
21097s,@ECHO_T@,$ECHO_T,;t t
21098s,@LIBS@,$LIBS,;t t
21099s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21100s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21101s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21102s,@CYGPATH_W@,$CYGPATH_W,;t t
21103s,@PACKAGE@,$PACKAGE,;t t
21104s,@VERSION@,$VERSION,;t t
21105s,@ACLOCAL@,$ACLOCAL,;t t
21106s,@AUTOCONF@,$AUTOCONF,;t t
21107s,@AUTOMAKE@,$AUTOMAKE,;t t
21108s,@AUTOHEADER@,$AUTOHEADER,;t t
21109s,@MAKEINFO@,$MAKEINFO,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021110s,@install_sh@,$install_sh,;t t
21111s,@STRIP@,$STRIP,;t t
21112s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21113s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021114s,@mkdir_p@,$mkdir_p,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021115s,@AWK@,$AWK,;t t
21116s,@SET_MAKE@,$SET_MAKE,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021117s,@am__leading_dot@,$am__leading_dot,;t t
21118s,@AMTAR@,$AMTAR,;t t
21119s,@am__tar@,$am__tar,;t t
21120s,@am__untar@,$am__untar,;t t
21121s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21122s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21123s,@MAINT@,$MAINT,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021124s,@CC@,$CC,;t t
21125s,@CFLAGS@,$CFLAGS,;t t
21126s,@LDFLAGS@,$LDFLAGS,;t t
21127s,@CPPFLAGS@,$CPPFLAGS,;t t
21128s,@ac_ct_CC@,$ac_ct_CC,;t t
21129s,@EXEEXT@,$EXEEXT,;t t
21130s,@OBJEXT@,$OBJEXT,;t t
21131s,@DEPDIR@,$DEPDIR,;t t
21132s,@am__include@,$am__include,;t t
21133s,@am__quote@,$am__quote,;t t
21134s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21135s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21136s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21137s,@CCDEPMODE@,$CCDEPMODE,;t t
21138s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21139s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21140s,@build@,$build,;t t
21141s,@build_cpu@,$build_cpu,;t t
21142s,@build_vendor@,$build_vendor,;t t
21143s,@build_os@,$build_os,;t t
21144s,@host@,$host,;t t
21145s,@host_cpu@,$host_cpu,;t t
21146s,@host_vendor@,$host_vendor,;t t
21147s,@host_os@,$host_os,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021148s,@EGREP@,$EGREP,;t t
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060021149s,@CPP@,$CPP,;t t
21150s,@SED@,$SED,;t t
21151s,@ac_ct_SED@,$ac_ct_SED,;t t
21152s,@LN_S@,$LN_S,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021153s,@ECHO@,$ECHO,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021154s,@AR@,$AR,;t t
21155s,@ac_ct_AR@,$ac_ct_AR,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021156s,@RANLIB@,$RANLIB,;t t
21157s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021158s,@CXX@,$CXX,;t t
21159s,@CXXFLAGS@,$CXXFLAGS,;t t
21160s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21161s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21162s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21163s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21164s,@CXXCPP@,$CXXCPP,;t t
21165s,@F77@,$F77,;t t
21166s,@FFLAGS@,$FFLAGS,;t t
21167s,@ac_ct_F77@,$ac_ct_F77,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021168s,@LIBTOOL@,$LIBTOOL,;t t
21169s,@LIBOBJS@,$LIBOBJS,;t t
21170s,@POW_LIB@,$POW_LIB,;t t
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060021171s,@HAVE_LD_VERSION_SCRIPT_TRUE@,$HAVE_LD_VERSION_SCRIPT_TRUE,;t t
21172s,@HAVE_LD_VERSION_SCRIPT_FALSE@,$HAVE_LD_VERSION_SCRIPT_FALSE,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021173s,@PNGLIB_VERSION@,$PNGLIB_VERSION,;t t
21174s,@PNGLIB_MAJOR@,$PNGLIB_MAJOR,;t t
21175s,@PNGLIB_MINOR@,$PNGLIB_MINOR,;t t
21176s,@pkgconfigdir@,$pkgconfigdir,;t t
21177s,@binconfigs@,$binconfigs,;t t
21178s,@compatlib@,$compatlib,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021179s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21180CEOF
21181
21182_ACEOF
21183
21184 cat >>$CONFIG_STATUS <<\_ACEOF
21185 # Split the substitutions into bite-sized pieces for seds with
21186 # small command number limits, like on Digital OSF/1 and HP-UX.
21187 ac_max_sed_lines=48
21188 ac_sed_frag=1 # Number of current file.
21189 ac_beg=1 # First line for current file.
21190 ac_end=$ac_max_sed_lines # Line after last line for current file.
21191 ac_more_lines=:
21192 ac_sed_cmds=
21193 while $ac_more_lines; do
21194 if test $ac_beg -gt 1; then
21195 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21196 else
21197 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21198 fi
21199 if test ! -s $tmp/subs.frag; then
21200 ac_more_lines=false
21201 else
21202 # The purpose of the label and of the branching condition is to
21203 # speed up the sed processing (if there are no `@' at all, there
21204 # is no need to browse any of the substitutions).
21205 # These are the two extra sed commands mentioned above.
21206 (echo ':t
21207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21208 if test -z "$ac_sed_cmds"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021209 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021210 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021211 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021212 fi
21213 ac_sed_frag=`expr $ac_sed_frag + 1`
21214 ac_beg=$ac_end
21215 ac_end=`expr $ac_end + $ac_max_sed_lines`
21216 fi
21217 done
21218 if test -z "$ac_sed_cmds"; then
21219 ac_sed_cmds=cat
21220 fi
21221fi # test -n "$CONFIG_FILES"
21222
21223_ACEOF
21224cat >>$CONFIG_STATUS <<\_ACEOF
21225for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21227 case $ac_file in
21228 - | *:- | *:-:* ) # input from stdin
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021229 cat >$tmp/stdin
21230 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021232 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021234 * ) ac_file_in=$ac_file.in ;;
21235 esac
21236
21237 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21238 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21239$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021240 X"$ac_file" : 'X\(//\)[^/]' \| \
21241 X"$ac_file" : 'X\(//\)$' \| \
21242 X"$ac_file" : 'X\(/\)' \| \
21243 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021244echo X"$ac_file" |
21245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21247 /^X\(\/\/\)$/{ s//\1/; q; }
21248 /^X\(\/\).*/{ s//\1/; q; }
21249 s/.*/./; q'`
21250 { if $as_mkdir_p; then
21251 mkdir -p "$ac_dir"
21252 else
21253 as_dir="$ac_dir"
21254 as_dirs=
21255 while test ! -d "$as_dir"; do
21256 as_dirs="$as_dir $as_dirs"
21257 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021259 X"$as_dir" : 'X\(//\)[^/]' \| \
21260 X"$as_dir" : 'X\(//\)$' \| \
21261 X"$as_dir" : 'X\(/\)' \| \
21262 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021263echo X"$as_dir" |
21264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21266 /^X\(\/\/\)$/{ s//\1/; q; }
21267 /^X\(\/\).*/{ s//\1/; q; }
21268 s/.*/./; q'`
21269 done
21270 test ! -n "$as_dirs" || mkdir $as_dirs
21271 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21272echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21273 { (exit 1); exit 1; }; }; }
21274
21275 ac_builddir=.
21276
21277if test "$ac_dir" != .; then
21278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21279 # A "../" for each directory in $ac_dir_suffix.
21280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21281else
21282 ac_dir_suffix= ac_top_builddir=
21283fi
21284
21285case $srcdir in
21286 .) # No --srcdir option. We are building in place.
21287 ac_srcdir=.
21288 if test -z "$ac_top_builddir"; then
21289 ac_top_srcdir=.
21290 else
21291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21292 fi ;;
21293 [\\/]* | ?:[\\/]* ) # Absolute path.
21294 ac_srcdir=$srcdir$ac_dir_suffix;
21295 ac_top_srcdir=$srcdir ;;
21296 *) # Relative path.
21297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21299esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021300
21301# Do not use `cd foo && pwd` to compute absolute paths, because
21302# the directories may not exist.
21303case `pwd` in
21304.) ac_abs_builddir="$ac_dir";;
21305*)
21306 case "$ac_dir" in
21307 .) ac_abs_builddir=`pwd`;;
21308 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21309 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21310 esac;;
21311esac
21312case $ac_abs_builddir in
21313.) ac_abs_top_builddir=${ac_top_builddir}.;;
21314*)
21315 case ${ac_top_builddir}. in
21316 .) ac_abs_top_builddir=$ac_abs_builddir;;
21317 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21318 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21319 esac;;
21320esac
21321case $ac_abs_builddir in
21322.) ac_abs_srcdir=$ac_srcdir;;
21323*)
21324 case $ac_srcdir in
21325 .) ac_abs_srcdir=$ac_abs_builddir;;
21326 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21327 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21328 esac;;
21329esac
21330case $ac_abs_builddir in
21331.) ac_abs_top_srcdir=$ac_top_srcdir;;
21332*)
21333 case $ac_top_srcdir in
21334 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21335 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21336 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21337 esac;;
21338esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021339
21340
21341 case $INSTALL in
21342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21343 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21344 esac
21345
21346 if test x"$ac_file" != x-; then
21347 { echo "$as_me:$LINENO: creating $ac_file" >&5
21348echo "$as_me: creating $ac_file" >&6;}
21349 rm -f "$ac_file"
21350 fi
21351 # Let's still pretend it is `configure' which instantiates (i.e., don't
21352 # use $as_me), people would be surprised to read:
21353 # /* config.h. Generated by config.status. */
21354 if test x"$ac_file" = x-; then
21355 configure_input=
21356 else
21357 configure_input="$ac_file. "
21358 fi
21359 configure_input=$configure_input"Generated from `echo $ac_file_in |
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021360 sed 's,.*/,,'` by configure."
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021361
21362 # First look for the input files in the build tree, otherwise in the
21363 # src tree.
21364 ac_file_inputs=`IFS=:
21365 for f in $ac_file_in; do
21366 case $f in
21367 -) echo $tmp/stdin ;;
21368 [\\/$]*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021369 # Absolute (can't be DOS-style, as IFS=:)
21370 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021371echo "$as_me: error: cannot find input file: $f" >&2;}
21372 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021373 echo "$f";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021374 *) # Relative
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021375 if test -f "$f"; then
21376 # Build tree
21377 echo "$f"
21378 elif test -f "$srcdir/$f"; then
21379 # Source tree
21380 echo "$srcdir/$f"
21381 else
21382 # /dev/null tree
21383 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021384echo "$as_me: error: cannot find input file: $f" >&2;}
21385 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021386 fi;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021387 esac
21388 done` || { (exit 1); exit 1; }
21389_ACEOF
21390cat >>$CONFIG_STATUS <<_ACEOF
21391 sed "$ac_vpsub
21392$extrasub
21393_ACEOF
21394cat >>$CONFIG_STATUS <<\_ACEOF
21395:t
21396/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21397s,@configure_input@,$configure_input,;t t
21398s,@srcdir@,$ac_srcdir,;t t
21399s,@abs_srcdir@,$ac_abs_srcdir,;t t
21400s,@top_srcdir@,$ac_top_srcdir,;t t
21401s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21402s,@builddir@,$ac_builddir,;t t
21403s,@abs_builddir@,$ac_abs_builddir,;t t
21404s,@top_builddir@,$ac_top_builddir,;t t
21405s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21406s,@INSTALL@,$ac_INSTALL,;t t
21407" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21408 rm -f $tmp/stdin
21409 if test x"$ac_file" != x-; then
21410 mv $tmp/out $ac_file
21411 else
21412 cat $tmp/out
21413 rm -f $tmp/out
21414 fi
21415
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021416 # Run the commands associated with the file.
21417 case $ac_file in
21418 libpng-config ) chmod +x libpng-config ;;
21419 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021420done
21421_ACEOF
21422cat >>$CONFIG_STATUS <<\_ACEOF
21423
21424#
21425# CONFIG_HEADER section.
21426#
21427
21428# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21429# NAME is the cpp macro being defined and VALUE is the value it is being given.
21430#
21431# ac_d sets the value in "#define NAME VALUE" lines.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021432ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21433ac_dB='[ ].*$,\1#\2'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021434ac_dC=' '
21435ac_dD=',;t'
21436# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021437ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021438ac_uB='$,\1#\2define\3'
21439ac_uC=' '
21440ac_uD=',;t'
21441
21442for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21443 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21444 case $ac_file in
21445 - | *:- | *:-:* ) # input from stdin
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021446 cat >$tmp/stdin
21447 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021449 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021451 * ) ac_file_in=$ac_file.in ;;
21452 esac
21453
21454 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21455echo "$as_me: creating $ac_file" >&6;}
21456
21457 # First look for the input files in the build tree, otherwise in the
21458 # src tree.
21459 ac_file_inputs=`IFS=:
21460 for f in $ac_file_in; do
21461 case $f in
21462 -) echo $tmp/stdin ;;
21463 [\\/$]*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021464 # Absolute (can't be DOS-style, as IFS=:)
21465 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021466echo "$as_me: error: cannot find input file: $f" >&2;}
21467 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021468 # Do quote $f, to prevent DOS paths from being IFS'd.
21469 echo "$f";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021470 *) # Relative
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021471 if test -f "$f"; then
21472 # Build tree
21473 echo "$f"
21474 elif test -f "$srcdir/$f"; then
21475 # Source tree
21476 echo "$srcdir/$f"
21477 else
21478 # /dev/null tree
21479 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021480echo "$as_me: error: cannot find input file: $f" >&2;}
21481 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021482 fi;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021483 esac
21484 done` || { (exit 1); exit 1; }
21485 # Remove the trailing spaces.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021486 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021487
21488_ACEOF
21489
21490# Transform confdefs.h into two sed scripts, `conftest.defines' and
21491# `conftest.undefs', that substitutes the proper values into
21492# config.h.in to produce config.h. The first handles `#define'
21493# templates, and the second `#undef' templates.
21494# And first: Protect against being on the right side of a sed subst in
21495# config.status. Protect against being in an unquoted here document
21496# in config.status.
21497rm -f conftest.defines conftest.undefs
21498# Using a here document instead of a string reduces the quoting nightmare.
21499# Putting comments in sed scripts is not portable.
21500#
21501# `end' is used to avoid that the second main sed command (meant for
21502# 0-ary CPP macros) applies to n-ary macro definitions.
21503# See the Autoconf documentation for `clear'.
21504cat >confdef2sed.sed <<\_ACEOF
21505s/[\\&,]/\\&/g
21506s,[\\$`],\\&,g
21507t clear
21508: clear
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021509s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021510t end
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021511s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021512: end
21513_ACEOF
21514# If some macros were called several times there might be several times
21515# the same #defines, which is useless. Nevertheless, we may not want to
21516# sort them, since we want the *last* AC-DEFINE to be honored.
21517uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21518sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21519rm -f confdef2sed.sed
21520
21521# This sed command replaces #undef with comments. This is necessary, for
21522# example, in the case of _POSIX_SOURCE, which is predefined and required
21523# on some systems where configure will not decide to define it.
21524cat >>conftest.undefs <<\_ACEOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021525s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021526_ACEOF
21527
21528# Break up conftest.defines because some shells have a limit on the size
21529# of here documents, and old seds have small limits too (100 cmds).
21530echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021531echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021532echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21533echo ' :' >>$CONFIG_STATUS
21534rm -f conftest.tail
21535while grep . conftest.defines >/dev/null
21536do
21537 # Write a limited-size here document to $tmp/defines.sed.
21538 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21539 # Speed up: don't consider the non `#define' lines.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021540 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021541 # Work around the forget-to-reset-the-flag bug.
21542 echo 't clr' >>$CONFIG_STATUS
21543 echo ': clr' >>$CONFIG_STATUS
21544 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21545 echo 'CEOF
21546 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21547 rm -f $tmp/in
21548 mv $tmp/out $tmp/in
21549' >>$CONFIG_STATUS
21550 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21551 rm -f conftest.defines
21552 mv conftest.tail conftest.defines
21553done
21554rm -f conftest.defines
21555echo ' fi # grep' >>$CONFIG_STATUS
21556echo >>$CONFIG_STATUS
21557
21558# Break up conftest.undefs because some shells have a limit on the size
21559# of here documents, and old seds have small limits too (100 cmds).
21560echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21561rm -f conftest.tail
21562while grep . conftest.undefs >/dev/null
21563do
21564 # Write a limited-size here document to $tmp/undefs.sed.
21565 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21566 # Speed up: don't consider the non `#undef'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021567 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021568 # Work around the forget-to-reset-the-flag bug.
21569 echo 't clr' >>$CONFIG_STATUS
21570 echo ': clr' >>$CONFIG_STATUS
21571 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21572 echo 'CEOF
21573 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21574 rm -f $tmp/in
21575 mv $tmp/out $tmp/in
21576' >>$CONFIG_STATUS
21577 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21578 rm -f conftest.undefs
21579 mv conftest.tail conftest.undefs
21580done
21581rm -f conftest.undefs
21582
21583cat >>$CONFIG_STATUS <<\_ACEOF
21584 # Let's still pretend it is `configure' which instantiates (i.e., don't
21585 # use $as_me), people would be surprised to read:
21586 # /* config.h. Generated by config.status. */
21587 if test x"$ac_file" = x-; then
21588 echo "/* Generated by configure. */" >$tmp/config.h
21589 else
21590 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21591 fi
21592 cat $tmp/in >>$tmp/config.h
21593 rm -f $tmp/in
21594 if test x"$ac_file" != x-; then
21595 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21596 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21597echo "$as_me: $ac_file is unchanged" >&6;}
21598 else
21599 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21600$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021601 X"$ac_file" : 'X\(//\)[^/]' \| \
21602 X"$ac_file" : 'X\(//\)$' \| \
21603 X"$ac_file" : 'X\(/\)' \| \
21604 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021605echo X"$ac_file" |
21606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21608 /^X\(\/\/\)$/{ s//\1/; q; }
21609 /^X\(\/\).*/{ s//\1/; q; }
21610 s/.*/./; q'`
21611 { if $as_mkdir_p; then
21612 mkdir -p "$ac_dir"
21613 else
21614 as_dir="$ac_dir"
21615 as_dirs=
21616 while test ! -d "$as_dir"; do
21617 as_dirs="$as_dir $as_dirs"
21618 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21619$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021620 X"$as_dir" : 'X\(//\)[^/]' \| \
21621 X"$as_dir" : 'X\(//\)$' \| \
21622 X"$as_dir" : 'X\(/\)' \| \
21623 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021624echo X"$as_dir" |
21625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21627 /^X\(\/\/\)$/{ s//\1/; q; }
21628 /^X\(\/\).*/{ s//\1/; q; }
21629 s/.*/./; q'`
21630 done
21631 test ! -n "$as_dirs" || mkdir $as_dirs
21632 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21633echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21634 { (exit 1); exit 1; }; }; }
21635
21636 rm -f $ac_file
21637 mv $tmp/config.h $ac_file
21638 fi
21639 else
21640 cat $tmp/config.h
21641 rm -f $tmp/config.h
21642 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021643# Compute $ac_file's index in $config_headers.
21644_am_stamp_count=1
21645for _am_header in $config_headers :; do
21646 case $_am_header in
21647 $ac_file | $ac_file:* )
21648 break ;;
21649 * )
21650 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21651 esac
21652done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021653echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21654$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021655 X$ac_file : 'X\(//\)[^/]' \| \
21656 X$ac_file : 'X\(//\)$' \| \
21657 X$ac_file : 'X\(/\)' \| \
21658 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021659echo X$ac_file |
21660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21662 /^X\(\/\/\)$/{ s//\1/; q; }
21663 /^X\(\/\).*/{ s//\1/; q; }
21664 s/.*/./; q'`/stamp-h$_am_stamp_count
21665done
21666_ACEOF
21667cat >>$CONFIG_STATUS <<\_ACEOF
21668
21669#
21670# CONFIG_COMMANDS section.
21671#
21672for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21673 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21674 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21675 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21676$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021677 X"$ac_dest" : 'X\(//\)[^/]' \| \
21678 X"$ac_dest" : 'X\(//\)$' \| \
21679 X"$ac_dest" : 'X\(/\)' \| \
21680 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021681echo X"$ac_dest" |
21682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21684 /^X\(\/\/\)$/{ s//\1/; q; }
21685 /^X\(\/\).*/{ s//\1/; q; }
21686 s/.*/./; q'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021687 { if $as_mkdir_p; then
21688 mkdir -p "$ac_dir"
21689 else
21690 as_dir="$ac_dir"
21691 as_dirs=
21692 while test ! -d "$as_dir"; do
21693 as_dirs="$as_dir $as_dirs"
21694 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21695$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21696 X"$as_dir" : 'X\(//\)[^/]' \| \
21697 X"$as_dir" : 'X\(//\)$' \| \
21698 X"$as_dir" : 'X\(/\)' \| \
21699 . : '\(.\)' 2>/dev/null ||
21700echo X"$as_dir" |
21701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21703 /^X\(\/\/\)$/{ s//\1/; q; }
21704 /^X\(\/\).*/{ s//\1/; q; }
21705 s/.*/./; q'`
21706 done
21707 test ! -n "$as_dirs" || mkdir $as_dirs
21708 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21709echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21710 { (exit 1); exit 1; }; }; }
21711
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021712 ac_builddir=.
21713
21714if test "$ac_dir" != .; then
21715 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21716 # A "../" for each directory in $ac_dir_suffix.
21717 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21718else
21719 ac_dir_suffix= ac_top_builddir=
21720fi
21721
21722case $srcdir in
21723 .) # No --srcdir option. We are building in place.
21724 ac_srcdir=.
21725 if test -z "$ac_top_builddir"; then
21726 ac_top_srcdir=.
21727 else
21728 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21729 fi ;;
21730 [\\/]* | ?:[\\/]* ) # Absolute path.
21731 ac_srcdir=$srcdir$ac_dir_suffix;
21732 ac_top_srcdir=$srcdir ;;
21733 *) # Relative path.
21734 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21735 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21736esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021737
21738# Do not use `cd foo && pwd` to compute absolute paths, because
21739# the directories may not exist.
21740case `pwd` in
21741.) ac_abs_builddir="$ac_dir";;
21742*)
21743 case "$ac_dir" in
21744 .) ac_abs_builddir=`pwd`;;
21745 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21746 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21747 esac;;
21748esac
21749case $ac_abs_builddir in
21750.) ac_abs_top_builddir=${ac_top_builddir}.;;
21751*)
21752 case ${ac_top_builddir}. in
21753 .) ac_abs_top_builddir=$ac_abs_builddir;;
21754 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21755 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21756 esac;;
21757esac
21758case $ac_abs_builddir in
21759.) ac_abs_srcdir=$ac_srcdir;;
21760*)
21761 case $ac_srcdir in
21762 .) ac_abs_srcdir=$ac_abs_builddir;;
21763 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21764 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21765 esac;;
21766esac
21767case $ac_abs_builddir in
21768.) ac_abs_top_srcdir=$ac_top_srcdir;;
21769*)
21770 case $ac_top_srcdir in
21771 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21772 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21773 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21774 esac;;
21775esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021776
21777
21778 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21779echo "$as_me: executing $ac_dest commands" >&6;}
21780 case $ac_dest in
21781 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21782 # Strip MF so we end up with the name of the file.
21783 mf=`echo "$mf" | sed -e 's/:.*$//'`
21784 # Check whether this is an Automake generated Makefile or not.
21785 # We used to match only the files named `Makefile.in', but
21786 # some people rename them; so instead we look at the file content.
21787 # Grep'ing the first line is not enough: some people post-process
21788 # each Makefile.in and add a new line on top of each file to say so.
21789 # So let's grep whole file.
21790 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21791 dirpart=`(dirname "$mf") 2>/dev/null ||
21792$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021793 X"$mf" : 'X\(//\)[^/]' \| \
21794 X"$mf" : 'X\(//\)$' \| \
21795 X"$mf" : 'X\(/\)' \| \
21796 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021797echo X"$mf" |
21798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21800 /^X\(\/\/\)$/{ s//\1/; q; }
21801 /^X\(\/\).*/{ s//\1/; q; }
21802 s/.*/./; q'`
21803 else
21804 continue
21805 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021806 # Extract the definition of DEPDIR, am__include, and am__quote
21807 # from the Makefile without running `make'.
21808 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021809 test -z "$DEPDIR" && continue
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021810 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21811 test -z "am__include" && continue
21812 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021813 # When using ansi2knr, U may be empty or an underscore; expand it
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021814 U=`sed -n 's/^U = //p' < "$mf"`
21815 # Find all dependency output files, they are included files with
21816 # $(DEPDIR) in their names. We invoke sed twice because it is the
21817 # simplest approach to changing $(DEPDIR) to its actual value in the
21818 # expansion.
21819 for file in `sed -n "
21820 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021821 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21822 # Make sure the directory exists.
21823 test -f "$dirpart/$file" && continue
21824 fdir=`(dirname "$file") 2>/dev/null ||
21825$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021826 X"$file" : 'X\(//\)[^/]' \| \
21827 X"$file" : 'X\(//\)$' \| \
21828 X"$file" : 'X\(/\)' \| \
21829 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021830echo X"$file" |
21831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21833 /^X\(\/\/\)$/{ s//\1/; q; }
21834 /^X\(\/\).*/{ s//\1/; q; }
21835 s/.*/./; q'`
21836 { if $as_mkdir_p; then
21837 mkdir -p $dirpart/$fdir
21838 else
21839 as_dir=$dirpart/$fdir
21840 as_dirs=
21841 while test ! -d "$as_dir"; do
21842 as_dirs="$as_dir $as_dirs"
21843 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21844$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021845 X"$as_dir" : 'X\(//\)[^/]' \| \
21846 X"$as_dir" : 'X\(//\)$' \| \
21847 X"$as_dir" : 'X\(/\)' \| \
21848 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021849echo X"$as_dir" |
21850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21852 /^X\(\/\/\)$/{ s//\1/; q; }
21853 /^X\(\/\).*/{ s//\1/; q; }
21854 s/.*/./; q'`
21855 done
21856 test ! -n "$as_dirs" || mkdir $as_dirs
21857 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21858echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21859 { (exit 1); exit 1; }; }; }
21860
21861 # echo "creating $dirpart/$file"
21862 echo '# dummy' > "$dirpart/$file"
21863 done
21864done
21865 ;;
21866 esac
21867done
21868_ACEOF
21869
21870cat >>$CONFIG_STATUS <<\_ACEOF
21871
21872{ (exit 0); exit 0; }
21873_ACEOF
21874chmod +x $CONFIG_STATUS
21875ac_clean_files=$ac_clean_files_save
21876
21877
21878# configure is writing to config.log, and then calls config.status.
21879# config.status does its own redirection, appending to config.log.
21880# Unfortunately, on DOS this fails, as config.log is still kept open
21881# by configure, so config.status won't be able to write to it; its
21882# output is simply discarded. So we exec the FD to /dev/null,
21883# effectively closing config.log, so it can be properly (re)opened and
21884# appended to by config.status. When coming back to configure, we
21885# need to make the FD available again.
21886if test "$no_create" != yes; then
21887 ac_cs_success=:
21888 ac_config_status_args=
21889 test "$silent" = yes &&
21890 ac_config_status_args="$ac_config_status_args --quiet"
21891 exec 5>/dev/null
21892 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21893 exec 5>>config.log
21894 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21895 # would make configure fail if this is the last instruction.
21896 $ac_cs_success || { (exit 1); exit 1; }
21897fi
Glenn Randers-Pehrson520a7642000-03-21 05:13:06 -060021898