blob: a86094541c557825f0b01602fa3ece419f658d6d [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-Pehrsone6474622006-03-04 16:50:47 -06003# Generated by GNU Autoconf 2.59 for libpng 1.2.9beta5.
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-Pehrsone6474622006-03-04 16:50:47 -0600426PACKAGE_VERSION='1.2.9beta5'
427PACKAGE_STRING='libpng 1.2.9beta5'
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-Pehrsone6474622006-03-04 16:50:47 -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 PNG_LIBS 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
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 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
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { 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-Pehrsone6474622006-03-04 16:50:47 -0600957\`configure' configures libpng 1.2.9beta5 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-Pehrsone6474622006-03-04 16:50:47 -06001023 short | recursive ) echo "Configuration of libpng 1.2.9beta5:";;
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-Pehrsone6474622006-03-04 16:50:47 -06001170libpng configure 1.2.9beta5
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-Pehrsone6474622006-03-04 16:50:47 -06001184It was created by libpng $as_me 1.2.9beta5, 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-Pehrsone6474622006-03-04 16:50:47 -06001827 VERSION='1.2.9beta5'
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-Pehrsone6474622006-03-04 16:50:47 -06001982PNGLIB_VERSION=1.2.9beta5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001983PNGLIB_MAJOR=12
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06001984PNGLIB_MINOR=%RELEASE%
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
3563for ac_prog in gawk mawk nawk awk
3564do
3565 # Extract the first word of "$ac_prog", so it can be a program name with args.
3566set dummy $ac_prog; ac_word=$2
3567echo "$as_me:$LINENO: checking for $ac_word" >&5
3568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3569if test "${ac_cv_prog_AWK+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571else
3572 if test -n "$AWK"; then
3573 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3574else
3575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576for as_dir in $PATH
3577do
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_AWK="$ac_prog"
3583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 break 2
3585 fi
3586done
3587done
3588
3589fi
3590fi
3591AWK=$ac_cv_prog_AWK
3592if test -n "$AWK"; then
3593 echo "$as_me:$LINENO: result: $AWK" >&5
3594echo "${ECHO_T}$AWK" >&6
3595else
3596 echo "$as_me:$LINENO: result: no" >&5
3597echo "${ECHO_T}no" >&6
3598fi
3599
3600 test -n "$AWK" && break
3601done
3602
3603if test -n "$ac_tool_prefix"; then
3604 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
3605set dummy ${ac_tool_prefix}sed; ac_word=$2
3606echo "$as_me:$LINENO: checking for $ac_word" >&5
3607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608if test "${ac_cv_prog_SED+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610else
3611 if test -n "$SED"; then
3612 ac_cv_prog_SED="$SED" # Let the user override the test.
3613else
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_SED="${ac_tool_prefix}sed"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3624 fi
3625done
3626done
3627
3628fi
3629fi
3630SED=$ac_cv_prog_SED
3631if test -n "$SED"; then
3632 echo "$as_me:$LINENO: result: $SED" >&5
3633echo "${ECHO_T}$SED" >&6
3634else
3635 echo "$as_me:$LINENO: result: no" >&5
3636echo "${ECHO_T}no" >&6
3637fi
3638
3639fi
3640if test -z "$ac_cv_prog_SED"; then
3641 ac_ct_SED=$SED
3642 # Extract the first word of "sed", so it can be a program name with args.
3643set dummy sed; ac_word=$2
3644echo "$as_me:$LINENO: checking for $ac_word" >&5
3645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646if test "${ac_cv_prog_ac_ct_SED+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648else
3649 if test -n "$ac_ct_SED"; then
3650 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
3651else
3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653for as_dir in $PATH
3654do
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_ac_ct_SED="sed"
3660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3662 fi
3663done
3664done
3665
3666 test -z "$ac_cv_prog_ac_ct_SED" && ac_cv_prog_ac_ct_SED=":"
3667fi
3668fi
3669ac_ct_SED=$ac_cv_prog_ac_ct_SED
3670if test -n "$ac_ct_SED"; then
3671 echo "$as_me:$LINENO: result: $ac_ct_SED" >&5
3672echo "${ECHO_T}$ac_ct_SED" >&6
3673else
3674 echo "$as_me:$LINENO: result: no" >&5
3675echo "${ECHO_T}no" >&6
3676fi
3677
3678 SED=$ac_ct_SED
3679else
3680 SED="$ac_cv_prog_SED"
3681fi
3682
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003683# Find a good install program. We prefer a C program (faster),
3684# so one script is as good as another. But avoid the broken or
3685# incompatible versions:
3686# SysV /etc/install, /usr/sbin/install
3687# SunOS /usr/etc/install
3688# IRIX /sbin/install
3689# AIX /bin/install
3690# AmigaOS /C/install, which installs bootblocks on floppy discs
3691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3694# OS/2's system install, which has a completely different semantic
3695# ./install, which can be erroneously created by make from ./install.sh.
3696echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3697echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3698if test -z "$INSTALL"; then
3699if test "${ac_cv_path_install+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 # Account for people who put trailing slashes in PATH elements.
3708case $as_dir/ in
3709 ./ | .// | /cC/* | \
3710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3711 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3712 /usr/ucb/* ) ;;
3713 *)
3714 # OSF1 and SCO ODT 3.0 have their own names for install.
3715 # Don't use installbsd from OSF since it installs stuff as root
3716 # by default.
3717 for ac_prog in ginstall scoinst install; do
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3720 if test $ac_prog = install &&
3721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3722 # AIX install. It has an incompatible calling convention.
3723 :
3724 elif test $ac_prog = install &&
3725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3726 # program-specific install script used by HP pwplus--don't use.
3727 :
3728 else
3729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3730 break 3
3731 fi
3732 fi
3733 done
3734 done
3735 ;;
3736esac
3737done
3738
3739
3740fi
3741 if test "${ac_cv_path_install+set}" = set; then
3742 INSTALL=$ac_cv_path_install
3743 else
3744 # As a last resort, use the slow shell script. We don't cache a
3745 # path for INSTALL within a source directory, because that will
3746 # break other packages using the cache if that directory is
3747 # removed, or if the path is relative.
3748 INSTALL=$ac_install_sh
3749 fi
3750fi
3751echo "$as_me:$LINENO: result: $INSTALL" >&5
3752echo "${ECHO_T}$INSTALL" >&6
3753
3754# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3755# It thinks the first close brace ends the variable substitution.
3756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3757
3758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3759
3760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3761
3762echo "$as_me:$LINENO: checking whether ln -s works" >&5
3763echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3764LN_S=$as_ln_s
3765if test "$LN_S" = "ln -s"; then
3766 echo "$as_me:$LINENO: result: yes" >&5
3767echo "${ECHO_T}yes" >&6
3768else
3769 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3770echo "${ECHO_T}no, using $LN_S" >&6
3771fi
3772
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003773echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3774echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003775set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003776if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 cat >conftest.make <<\_ACEOF
3780all:
3781 @echo 'ac_maketemp="$(MAKE)"'
3782_ACEOF
3783# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3784eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3785if test -n "$ac_maketemp"; then
3786 eval ac_cv_prog_make_${ac_make}_set=yes
3787else
3788 eval ac_cv_prog_make_${ac_make}_set=no
3789fi
3790rm -f conftest.make
3791fi
3792if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3793 echo "$as_me:$LINENO: result: yes" >&5
3794echo "${ECHO_T}yes" >&6
3795 SET_MAKE=
3796else
3797 echo "$as_me:$LINENO: result: no" >&5
3798echo "${ECHO_T}no" >&6
3799 SET_MAKE="MAKE=${MAKE-make}"
3800fi
3801
3802# Check whether --enable-shared or --disable-shared was given.
3803if test "${enable_shared+set}" = set; then
3804 enableval="$enable_shared"
3805 p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003806 case $enableval in
3807 yes) enable_shared=yes ;;
3808 no) enable_shared=no ;;
3809 *)
3810 enable_shared=no
3811 # Look at the argument we got. We use all the common list separators.
3812 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3813 for pkg in $enableval; do
3814 IFS="$lt_save_ifs"
3815 if test "X$pkg" = "X$p"; then
3816 enable_shared=yes
3817 fi
3818 done
3819 IFS="$lt_save_ifs"
3820 ;;
3821 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003822else
3823 enable_shared=yes
3824fi;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003825
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003826# Check whether --enable-static or --disable-static was given.
3827if test "${enable_static+set}" = set; then
3828 enableval="$enable_static"
3829 p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003830 case $enableval in
3831 yes) enable_static=yes ;;
3832 no) enable_static=no ;;
3833 *)
3834 enable_static=no
3835 # Look at the argument we got. We use all the common list separators.
3836 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3837 for pkg in $enableval; do
3838 IFS="$lt_save_ifs"
3839 if test "X$pkg" = "X$p"; then
3840 enable_static=yes
3841 fi
3842 done
3843 IFS="$lt_save_ifs"
3844 ;;
3845 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003846else
3847 enable_static=yes
3848fi;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003849
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003850# Check whether --enable-fast-install or --disable-fast-install was given.
3851if test "${enable_fast_install+set}" = set; then
3852 enableval="$enable_fast_install"
3853 p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003854 case $enableval in
3855 yes) enable_fast_install=yes ;;
3856 no) enable_fast_install=no ;;
3857 *)
3858 enable_fast_install=no
3859 # Look at the argument we got. We use all the common list separators.
3860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3861 for pkg in $enableval; do
3862 IFS="$lt_save_ifs"
3863 if test "X$pkg" = "X$p"; then
3864 enable_fast_install=yes
3865 fi
3866 done
3867 IFS="$lt_save_ifs"
3868 ;;
3869 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003870else
3871 enable_fast_install=yes
3872fi;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003873
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003874echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3875echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3876if test "${lt_cv_ld_reload_flag+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879 lt_cv_ld_reload_flag='-r'
3880fi
3881echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3882echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3883reload_flag=$lt_cv_ld_reload_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003884case $reload_flag in
3885"" | " "*) ;;
3886*) reload_flag=" $reload_flag" ;;
3887esac
3888reload_cmds='$LD$reload_flag -o $output$reload_objs'
3889case $host_os in
3890 darwin*)
3891 if test "$GCC" = yes; then
3892 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3893 else
3894 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3895 fi
3896 ;;
3897esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003898
3899echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3900echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3901if test "${lt_cv_path_NM+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
3904 if test -n "$NM"; then
3905 # Let the user override the test.
3906 lt_cv_path_NM="$NM"
3907else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003908 lt_nm_to_check="${ac_tool_prefix}nm"
3909 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3910 lt_nm_to_check="$lt_nm_to_check nm"
3911 fi
3912 for lt_tmp_nm in $lt_nm_to_check; do
3913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3914 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3915 IFS="$lt_save_ifs"
3916 test -z "$ac_dir" && ac_dir=.
3917 tmp_nm="$ac_dir/$lt_tmp_nm"
3918 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3919 # Check to see if the nm accepts a BSD-compat flag.
3920 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3921 # nm: unknown option "B" ignored
3922 # Tru64's nm complains that /dev/null is an invalid object file
3923 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3924 */dev/null* | *'Invalid file or object type'*)
3925 lt_cv_path_NM="$tmp_nm -B"
3926 break
3927 ;;
3928 *)
3929 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3930 */dev/null*)
3931 lt_cv_path_NM="$tmp_nm -p"
3932 break
3933 ;;
3934 *)
3935 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3936 continue # so that we can try to find one that supports BSD flags
3937 ;;
3938 esac
3939 ;;
3940 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003941 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003942 done
3943 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003944 done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003945 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3946fi
3947fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003948echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3949echo "${ECHO_T}$lt_cv_path_NM" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003950NM="$lt_cv_path_NM"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003951
3952echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3953echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3954if test "${lt_cv_deplibs_check_method+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957 lt_cv_file_magic_cmd='$MAGIC_CMD'
3958lt_cv_file_magic_test_file=
3959lt_cv_deplibs_check_method='unknown'
3960# Need to set the preceding variable on all platforms that support
3961# interlibrary dependencies.
3962# 'none' -- dependencies not supported.
3963# `unknown' -- same as none, but documents that we really don't know.
3964# 'pass_all' -- all dependencies passed with no checks.
3965# 'test_compile' -- check by making test program.
3966# 'file_magic [[regex]]' -- check by looking for files in library path
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003967# which responds to the $file_magic_cmd with a given extended regex.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003968# If you have `file' or equivalent on your system and you're not sure
3969# whether `pass_all' will *always* work, you probably want this one.
3970
3971case $host_os in
3972aix4* | aix5*)
3973 lt_cv_deplibs_check_method=pass_all
3974 ;;
3975
3976beos*)
3977 lt_cv_deplibs_check_method=pass_all
3978 ;;
3979
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003980bsdi[45]*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3982 lt_cv_file_magic_cmd='/usr/bin/file -L'
3983 lt_cv_file_magic_test_file=/shlib/libc.so
3984 ;;
3985
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003986cygwin*)
3987 # func_win32_libid is a shell function defined in ltmain.sh
3988 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3989 lt_cv_file_magic_cmd='func_win32_libid'
3990 ;;
3991
3992mingw* | pw32*)
3993 # Base MSYS/MinGW do not provide the 'file' command needed by
3994 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003995 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3996 lt_cv_file_magic_cmd='$OBJDUMP -f'
3997 ;;
3998
3999darwin* | rhapsody*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004000 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004001 ;;
4002
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004003freebsd* | kfreebsd*-gnu | dragonfly*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004004 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4005 case $host_cpu in
4006 i*86 )
4007 # Not sure whether the presence of OpenBSD here was a mistake.
4008 # Let's accept both of them until this is cleared up.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004009 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 -06004010 lt_cv_file_magic_cmd=/usr/bin/file
4011 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4012 ;;
4013 esac
4014 else
4015 lt_cv_deplibs_check_method=pass_all
4016 fi
4017 ;;
4018
4019gnu*)
4020 lt_cv_deplibs_check_method=pass_all
4021 ;;
4022
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004023hpux10.20* | hpux11*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004024 lt_cv_file_magic_cmd=/usr/bin/file
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004025 case $host_cpu in
4026 ia64*)
4027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4028 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4029 ;;
4030 hppa*64*)
4031 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]'
4032 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4033 ;;
4034 *)
4035 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4036 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4037 ;;
4038 esac
4039 ;;
4040
4041interix3*)
4042 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004044 ;;
4045
4046irix5* | irix6* | nonstopux*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004047 case $LD in
4048 *-32|*"-32 ") libmagic=32-bit;;
4049 *-n32|*"-n32 ") libmagic=N32;;
4050 *-64|*"-64 ") libmagic=64-bit;;
4051 *) libmagic=never-match;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004052 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004053 lt_cv_deplibs_check_method=pass_all
4054 ;;
4055
4056# This must be Linux ELF.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004057linux*)
4058 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004059 ;;
4060
4061netbsd*)
4062 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004064 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004066 fi
4067 ;;
4068
4069newos6*)
4070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4071 lt_cv_file_magic_cmd=/usr/bin/file
4072 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4073 ;;
4074
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004075nto-qnx*)
4076 lt_cv_deplibs_check_method=unknown
4077 ;;
4078
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004079openbsd*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004080 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 -06004081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004082 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004084 fi
4085 ;;
4086
4087osf3* | osf4* | osf5*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004088 lt_cv_deplibs_check_method=pass_all
4089 ;;
4090
4091solaris*)
4092 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004093 ;;
4094
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004095sysv4 | sysv4.3*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004096 case $host_vendor in
4097 motorola)
4098 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]'
4099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4100 ;;
4101 ncr)
4102 lt_cv_deplibs_check_method=pass_all
4103 ;;
4104 sequent)
4105 lt_cv_file_magic_cmd='/bin/file'
4106 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4107 ;;
4108 sni)
4109 lt_cv_file_magic_cmd='/bin/file'
4110 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4111 lt_cv_file_magic_test_file=/lib/libc.so
4112 ;;
4113 siemens)
4114 lt_cv_deplibs_check_method=pass_all
4115 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004116 pc)
4117 lt_cv_deplibs_check_method=pass_all
4118 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004119 esac
4120 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004121
4122sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4123 lt_cv_deplibs_check_method=pass_all
4124 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004125esac
4126
4127fi
4128echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4129echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4130file_magic_cmd=$lt_cv_file_magic_cmd
4131deplibs_check_method=$lt_cv_deplibs_check_method
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004132test -z "$deplibs_check_method" && deplibs_check_method=unknown
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004133
4134
4135
4136
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004137# If no C compiler was specified, use CC.
4138LTCC=${LTCC-"$CC"}
4139
4140# If no C compiler flags were specified, use CFLAGS.
4141LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4142
4143# Allow CC to be a program name with arguments.
4144compiler=$CC
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004145
4146
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004147# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4148if test "${enable_libtool_lock+set}" = set; then
4149 enableval="$enable_libtool_lock"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004150
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004151fi;
4152test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004153
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004154# Some flags need to be propagated to the compiler or linker for good
4155# libtool support.
4156case $host in
4157ia64-*-hpux*)
4158 # Find out which ABI we are using.
4159 echo 'int i;' > conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4161 (eval $ac_compile) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004165 case `/usr/bin/file conftest.$ac_objext` in
4166 *ELF-32*)
4167 HPUX_IA64_MODE="32"
4168 ;;
4169 *ELF-64*)
4170 HPUX_IA64_MODE="64"
4171 ;;
4172 esac
4173 fi
4174 rm -rf conftest*
4175 ;;
4176*-*-irix6*)
4177 # Find out which ABI we are using.
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004178 echo '#line 4178 "configure"' > conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004183 (exit $ac_status); }; then
4184 if test "$lt_cv_prog_gnu_ld" = yes; then
4185 case `/usr/bin/file conftest.$ac_objext` in
4186 *32-bit*)
4187 LD="${LD-ld} -melf32bsmip"
4188 ;;
4189 *N32*)
4190 LD="${LD-ld} -melf32bmipn32"
4191 ;;
4192 *64-bit*)
4193 LD="${LD-ld} -melf64bmip"
4194 ;;
4195 esac
4196 else
4197 case `/usr/bin/file conftest.$ac_objext` in
4198 *32-bit*)
4199 LD="${LD-ld} -32"
4200 ;;
4201 *N32*)
4202 LD="${LD-ld} -n32"
4203 ;;
4204 *64-bit*)
4205 LD="${LD-ld} -64"
4206 ;;
4207 esac
4208 fi
4209 fi
4210 rm -rf conftest*
4211 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004212
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004213x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4214 # Find out which ABI we are using.
4215 echo 'int i;' > conftest.$ac_ext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; then
4221 case `/usr/bin/file conftest.o` in
4222 *32-bit*)
4223 case $host in
4224 x86_64-*linux*)
4225 LD="${LD-ld} -m elf_i386"
4226 ;;
4227 ppc64-*linux*|powerpc64-*linux*)
4228 LD="${LD-ld} -m elf32ppclinux"
4229 ;;
4230 s390x-*linux*)
4231 LD="${LD-ld} -m elf_s390"
4232 ;;
4233 sparc64-*linux*)
4234 LD="${LD-ld} -m elf32_sparc"
4235 ;;
4236 esac
4237 ;;
4238 *64-bit*)
4239 case $host in
4240 x86_64-*linux*)
4241 LD="${LD-ld} -m elf_x86_64"
4242 ;;
4243 ppc*-*linux*|powerpc*-*linux*)
4244 LD="${LD-ld} -m elf64ppc"
4245 ;;
4246 s390*-*linux*)
4247 LD="${LD-ld} -m elf64_s390"
4248 ;;
4249 sparc*-*linux*)
4250 LD="${LD-ld} -m elf64_sparc"
4251 ;;
4252 esac
4253 ;;
4254 esac
4255 fi
4256 rm -rf conftest*
4257 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004258
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004259*-*-sco3.2v5*)
4260 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4261 SAVE_CFLAGS="$CFLAGS"
4262 CFLAGS="$CFLAGS -belf"
4263 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4264echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4265if test "${lt_cv_cc_needs_belf+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268 ac_ext=c
4269ac_cpp='$CPP $CPPFLAGS'
4270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004273
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004274 cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h. */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004280
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004281int
4282main ()
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004283{
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004284
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004285 ;
4286 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004287}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004288_ACEOF
4289rm -f conftest.$ac_objext conftest$ac_exeext
4290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4291 (eval $ac_link) 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest$ac_exeext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 lt_cv_cc_needs_belf=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004312else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004313 echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316lt_cv_cc_needs_belf=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004317fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004318rm -f conftest.err conftest.$ac_objext \
4319 conftest$ac_exeext conftest.$ac_ext
4320 ac_ext=c
4321ac_cpp='$CPP $CPPFLAGS'
4322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004326fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004327echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4328echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4329 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4330 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4331 CFLAGS="$SAVE_CFLAGS"
4332 fi
4333 ;;
4334sparc*-*solaris*)
4335 # Find out which ABI we are using.
4336 echo 'int i;' > conftest.$ac_ext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; then
4342 case `/usr/bin/file conftest.o` in
4343 *64-bit*)
4344 case $lt_cv_prog_gnu_ld in
4345 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4346 *) LD="${LD-ld} -64" ;;
4347 esac
4348 ;;
4349 esac
4350 fi
4351 rm -rf conftest*
4352 ;;
4353
4354
4355esac
4356
4357need_locks="$enable_libtool_lock"
4358
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004359
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004360
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004361echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4362echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4363if test "${ac_cv_header_stdc+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004367/* confdefs.h. */
4368_ACEOF
4369cat confdefs.h >>conftest.$ac_ext
4370cat >>conftest.$ac_ext <<_ACEOF
4371/* end confdefs.h. */
4372#include <stdlib.h>
4373#include <stdarg.h>
4374#include <string.h>
4375#include <float.h>
4376
4377int
4378main ()
4379{
4380
4381 ;
4382 return 0;
4383}
4384_ACEOF
4385rm -f conftest.$ac_objext
4386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004387 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004388 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004394 { ac_try='test -z "$ac_c_werror_flag"
4395 || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_cv_header_stdc=yes
4408else
4409 echo "$as_me: failed program was:" >&5
4410sed 's/^/| /' conftest.$ac_ext >&5
4411
4412ac_cv_header_stdc=no
4413fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004415
4416if test $ac_cv_header_stdc = yes; then
4417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4418 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004419/* confdefs.h. */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h. */
4424#include <string.h>
4425
4426_ACEOF
4427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4428 $EGREP "memchr" >/dev/null 2>&1; then
4429 :
4430else
4431 ac_cv_header_stdc=no
4432fi
4433rm -f conftest*
4434
4435fi
4436
4437if test $ac_cv_header_stdc = yes; then
4438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4439 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004440/* confdefs.h. */
4441_ACEOF
4442cat confdefs.h >>conftest.$ac_ext
4443cat >>conftest.$ac_ext <<_ACEOF
4444/* end confdefs.h. */
4445#include <stdlib.h>
4446
4447_ACEOF
4448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4449 $EGREP "free" >/dev/null 2>&1; then
4450 :
4451else
4452 ac_cv_header_stdc=no
4453fi
4454rm -f conftest*
4455
4456fi
4457
4458if test $ac_cv_header_stdc = yes; then
4459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4460 if test "$cross_compiling" = yes; then
4461 :
4462else
4463 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469#include <ctype.h>
4470#if ((' ' & 0x0FF) == 0x020)
4471# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4473#else
4474# define ISLOWER(c) \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004475 (('a' <= (c) && (c) <= 'i') \
4476 || ('j' <= (c) && (c) <= 'r') \
4477 || ('s' <= (c) && (c) <= 'z'))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004478# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4479#endif
4480
4481#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4482int
4483main ()
4484{
4485 int i;
4486 for (i = 0; i < 256; i++)
4487 if (XOR (islower (i), ISLOWER (i))
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004488 || toupper (i) != TOUPPER (i))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004489 exit(2);
4490 exit (0);
4491}
4492_ACEOF
4493rm -f conftest$ac_exeext
4494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 :
4505else
4506 echo "$as_me: program exited with status $ac_status" >&5
4507echo "$as_me: failed program was:" >&5
4508sed 's/^/| /' conftest.$ac_ext >&5
4509
4510( exit $ac_status )
4511ac_cv_header_stdc=no
4512fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004513rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004514fi
4515fi
4516fi
4517echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4518echo "${ECHO_T}$ac_cv_header_stdc" >&6
4519if test $ac_cv_header_stdc = yes; then
4520
4521cat >>confdefs.h <<\_ACEOF
4522#define STDC_HEADERS 1
4523_ACEOF
4524
4525fi
4526
4527# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537for 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 -06004538 inttypes.h stdint.h unistd.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004539do
4540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4541echo "$as_me:$LINENO: checking for $ac_header" >&5
4542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4543if eval "test \"\${$as_ac_Header+set}\" = set"; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545else
4546 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004547/* confdefs.h. */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h. */
4552$ac_includes_default
4553
4554#include <$ac_header>
4555_ACEOF
4556rm -f conftest.$ac_objext
4557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004558 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004559 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004565 { ac_try='test -z "$ac_c_werror_flag"
4566 || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 eval "$as_ac_Header=yes"
4579else
4580 echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583eval "$as_ac_Header=no"
4584fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004586fi
4587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4589if test `eval echo '${'$as_ac_Header'}'` = yes; then
4590 cat >>confdefs.h <<_ACEOF
4591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592_ACEOF
4593
4594fi
4595
4596done
4597
4598
4599
4600for ac_header in dlfcn.h
4601do
4602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4603if eval "test \"\${$as_ac_Header+set}\" = set"; then
4604 echo "$as_me:$LINENO: checking for $ac_header" >&5
4605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4606if eval "test \"\${$as_ac_Header+set}\" = set"; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608fi
4609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4611else
4612 # Is the header compilable?
4613echo "$as_me:$LINENO: checking $ac_header usability" >&5
4614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4615cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004616/* confdefs.h. */
4617_ACEOF
4618cat confdefs.h >>conftest.$ac_ext
4619cat >>conftest.$ac_ext <<_ACEOF
4620/* end confdefs.h. */
4621$ac_includes_default
4622#include <$ac_header>
4623_ACEOF
4624rm -f conftest.$ac_objext
4625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004626 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004627 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004633 { ac_try='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_header_compiler=yes
4647else
4648 echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651ac_header_compiler=no
4652fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004654echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4655echo "${ECHO_T}$ac_header_compiler" >&6
4656
4657# Is the header present?
4658echo "$as_me:$LINENO: checking $ac_header presence" >&5
4659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4660cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004661/* confdefs.h. */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h. */
4666#include <$ac_header>
4667_ACEOF
4668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4670 ac_status=$?
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } >/dev/null; then
4676 if test -s conftest.err; then
4677 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004679 else
4680 ac_cpp_err=
4681 fi
4682else
4683 ac_cpp_err=yes
4684fi
4685if test -z "$ac_cpp_err"; then
4686 ac_header_preproc=yes
4687else
4688 echo "$as_me: failed program was:" >&5
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 ac_header_preproc=no
4692fi
4693rm -f conftest.err conftest.$ac_ext
4694echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4695echo "${ECHO_T}$ac_header_preproc" >&6
4696
4697# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4699 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4704 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004705 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004706 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004719 (
4720 cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004721## ------------------------------------------------------ ##
4722## Report this to png-mng-implement@lists.sourceforge.net ##
4723## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004724_ASBOX
4725 ) |
4726 sed "s/^/$as_me: WARNING: /" >&2
4727 ;;
4728esac
4729echo "$as_me:$LINENO: checking for $ac_header" >&5
4730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4731if eval "test \"\${$as_ac_Header+set}\" = set"; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004734 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004735fi
4736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738
4739fi
4740if test `eval echo '${'$as_ac_Header'}'` = yes; then
4741 cat >>confdefs.h <<_ACEOF
4742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743_ACEOF
4744
4745fi
4746
4747done
4748
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004749ac_ext=cc
4750ac_cpp='$CXXCPP $CPPFLAGS'
4751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4754if test -n "$ac_tool_prefix"; then
4755 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4756 do
4757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4758set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4759echo "$as_me:$LINENO: checking for $ac_word" >&5
4760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4761if test "${ac_cv_prog_CXX+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004764 if test -n "$CXX"; then
4765 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4766else
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4777 fi
4778done
4779done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004780
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004781fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004782fi
4783CXX=$ac_cv_prog_CXX
4784if test -n "$CXX"; then
4785 echo "$as_me:$LINENO: result: $CXX" >&5
4786echo "${ECHO_T}$CXX" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004787else
4788 echo "$as_me:$LINENO: result: no" >&5
4789echo "${ECHO_T}no" >&6
4790fi
4791
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004792 test -n "$CXX" && break
4793 done
4794fi
4795if test -z "$CXX"; then
4796 ac_ct_CXX=$CXX
4797 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4798do
4799 # Extract the first word of "$ac_prog", so it can be a program name with args.
4800set dummy $ac_prog; ac_word=$2
4801echo "$as_me:$LINENO: checking for $ac_word" >&5
4802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004806 if test -n "$ac_ct_CXX"; then
4807 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4808else
4809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_ac_ct_CXX="$ac_prog"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 break 2
4819 fi
4820done
4821done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004822
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004823fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004824fi
4825ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4826if test -n "$ac_ct_CXX"; then
4827 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4828echo "${ECHO_T}$ac_ct_CXX" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004829else
4830 echo "$as_me:$LINENO: result: no" >&5
4831echo "${ECHO_T}no" >&6
4832fi
4833
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004834 test -n "$ac_ct_CXX" && break
4835done
4836test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4837
4838 CXX=$ac_ct_CXX
4839fi
4840
4841
4842# Provide some information about the compiler.
4843echo "$as_me:$LINENO:" \
4844 "checking for C++ compiler version" >&5
4845ac_compiler=`set X $ac_compile; echo $2`
4846{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4847 (eval $ac_compiler --version </dev/null >&5) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }
4851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4852 (eval $ac_compiler -v </dev/null >&5) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }
4856{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4857 (eval $ac_compiler -V </dev/null >&5) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }
4861
4862echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4863echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4864if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867 cat >conftest.$ac_ext <<_ACEOF
4868/* confdefs.h. */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h. */
4873
4874int
4875main ()
4876{
4877#ifndef __GNUC__
4878 choke me
4879#endif
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
4885rm -f conftest.$ac_objext
4886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887 (eval $ac_compile) 2>conftest.er1
4888 ac_status=$?
4889 grep -v '^ *+' conftest.er1 >conftest.err
4890 rm -f conftest.er1
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try='test -z "$ac_cxx_werror_flag"
4895 || test ! -s conftest.err'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; } &&
4901 { ac_try='test -s conftest.$ac_objext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 (eval $ac_try) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4907 ac_compiler_gnu=yes
4908else
4909 echo "$as_me: failed program was:" >&5
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
4912ac_compiler_gnu=no
4913fi
4914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4915ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4916
4917fi
4918echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4919echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4920GXX=`test $ac_compiler_gnu = yes && echo yes`
4921ac_test_CXXFLAGS=${CXXFLAGS+set}
4922ac_save_CXXFLAGS=$CXXFLAGS
4923CXXFLAGS="-g"
4924echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4925echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4926if test "${ac_cv_prog_cxx_g+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 cat >conftest.$ac_ext <<_ACEOF
4930/* confdefs.h. */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h. */
4935
4936int
4937main ()
4938{
4939
4940 ;
4941 return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext
4945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try='test -z "$ac_cxx_werror_flag"
4954 || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try='test -s conftest.$ac_objext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 ac_cv_prog_cxx_g=yes
4967else
4968 echo "$as_me: failed program was:" >&5
4969sed 's/^/| /' conftest.$ac_ext >&5
4970
4971ac_cv_prog_cxx_g=no
4972fi
4973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974fi
4975echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4976echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4977if test "$ac_test_CXXFLAGS" = set; then
4978 CXXFLAGS=$ac_save_CXXFLAGS
4979elif test $ac_cv_prog_cxx_g = yes; then
4980 if test "$GXX" = yes; then
4981 CXXFLAGS="-g -O2"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004982 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004983 CXXFLAGS="-g"
4984 fi
4985else
4986 if test "$GXX" = yes; then
4987 CXXFLAGS="-O2"
4988 else
4989 CXXFLAGS=
4990 fi
4991fi
4992for ac_declaration in \
4993 '' \
4994 'extern "C" void std::exit (int) throw (); using std::exit;' \
4995 'extern "C" void std::exit (int); using std::exit;' \
4996 'extern "C" void exit (int) throw ();' \
4997 'extern "C" void exit (int);' \
4998 'void exit (int);'
4999do
5000 cat >conftest.$ac_ext <<_ACEOF
5001/* confdefs.h. */
5002_ACEOF
5003cat confdefs.h >>conftest.$ac_ext
5004cat >>conftest.$ac_ext <<_ACEOF
5005/* end confdefs.h. */
5006$ac_declaration
5007#include <stdlib.h>
5008int
5009main ()
5010{
5011exit (42);
5012 ;
5013 return 0;
5014}
5015_ACEOF
5016rm -f conftest.$ac_objext
5017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>conftest.er1
5019 ac_status=$?
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_cxx_werror_flag"
5026 || test ! -s conftest.err'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try='test -s conftest.$ac_objext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 :
5039else
5040 echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043continue
5044fi
5045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5046 cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
5052$ac_declaration
5053int
5054main ()
5055{
5056exit (42);
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061rm -f conftest.$ac_objext
5062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -z "$ac_cxx_werror_flag"
5071 || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5083 break
5084else
5085 echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
5088fi
5089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5090done
5091rm -f conftest*
5092if test -n "$ac_declaration"; then
5093 echo '#ifdef __cplusplus' >>confdefs.h
5094 echo $ac_declaration >>confdefs.h
5095 echo '#endif' >>confdefs.h
5096fi
5097
5098ac_ext=cc
5099ac_cpp='$CXXCPP $CPPFLAGS'
5100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103
5104depcc="$CXX" am_compiler_list=
5105
5106echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5107echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5108if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5112 # We make a subdir and do the tests there. Otherwise we can end up
5113 # making bogus files that we don't know about and never remove. For
5114 # instance it was reported that on HP-UX the gcc test will end up
5115 # making a dummy file named `D' -- because `-MD' means `put the output
5116 # in D'.
5117 mkdir conftest.dir
5118 # Copy depcomp to subdir because otherwise we won't find it if we're
5119 # using a relative directory.
5120 cp "$am_depcomp" conftest.dir
5121 cd conftest.dir
5122 # We will build objects and dependencies in a subdirectory because
5123 # it helps to detect inapplicable dependency modes. For instance
5124 # both Tru64's cc and ICC support -MD to output dependencies as a
5125 # side effect of compilation, but ICC will put the dependencies in
5126 # the current directory while Tru64 will put them in the object
5127 # directory.
5128 mkdir sub
5129
5130 am_cv_CXX_dependencies_compiler_type=none
5131 if test "$am_compiler_list" = ""; then
5132 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5133 fi
5134 for depmode in $am_compiler_list; do
5135 # Setup a source with many dependencies, because some compilers
5136 # like to wrap large dependency lists on column 80 (with \), and
5137 # we should not choose a depcomp mode which is confused by this.
5138 #
5139 # We need to recreate these files for each test, as the compiler may
5140 # overwrite some of them when testing with obscure command lines.
5141 # This happens at least with the AIX C compiler.
5142 : > sub/conftest.c
5143 for i in 1 2 3 4 5 6; do
5144 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5146 # Solaris 8's {/usr,}/bin/sh.
5147 touch sub/conftst$i.h
5148 done
5149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5150
5151 case $depmode in
5152 nosideeffect)
5153 # after this tag, mechanisms are not by side-effect, so they'll
5154 # only be used when explicitly requested
5155 if test "x$enable_dependency_tracking" = xyes; then
5156 continue
5157 else
5158 break
5159 fi
5160 ;;
5161 none) break ;;
5162 esac
5163 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5164 # mode. It turns out that the SunPro C++ compiler does not properly
5165 # handle `-M -o', and we need to detect this.
5166 if depmode=$depmode \
5167 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5169 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5170 >/dev/null 2>conftest.err &&
5171 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5172 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5173 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5174 # icc doesn't choke on unknown options, it will just issue warnings
5175 # or remarks (even with -Werror). So we grep stderr for any message
5176 # that says an option was ignored or not supported.
5177 # When given -MP, icc 7.0 and 7.1 complain thusly:
5178 # icc: Command line warning: ignoring option '-M'; no argument required
5179 # The diagnosis changed in icc 8.0:
5180 # icc: Command line remark: option '-MP' not supported
5181 if (grep 'ignoring option' conftest.err ||
5182 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5183 am_cv_CXX_dependencies_compiler_type=$depmode
5184 break
5185 fi
5186 fi
5187 done
5188
5189 cd ..
5190 rm -rf conftest.dir
5191else
5192 am_cv_CXX_dependencies_compiler_type=none
5193fi
5194
5195fi
5196echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5197echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5198CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5199
5200
5201
5202if
5203 test "x$enable_dependency_tracking" != xno \
5204 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5205 am__fastdepCXX_TRUE=
5206 am__fastdepCXX_FALSE='#'
5207else
5208 am__fastdepCXX_TRUE='#'
5209 am__fastdepCXX_FALSE=
5210fi
5211
5212
5213
5214
5215if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5216 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5217 (test "X$CXX" != "Xg++"))) ; then
5218 ac_ext=cc
5219ac_cpp='$CXXCPP $CPPFLAGS'
5220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5223echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5224echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5225if test -z "$CXXCPP"; then
5226 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229 # Double quotes because CXXCPP needs to be expanded
5230 for CXXCPP in "$CXX -E" "/lib/cpp"
5231 do
5232 ac_preproc_ok=false
5233for ac_cxx_preproc_warn_flag in '' yes
5234do
5235 # Use a header file that comes with gcc, so configuring glibc
5236 # with a fresh cross-compiler works.
5237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5238 # <limits.h> exists even on freestanding compilers.
5239 # On the NeXT, cc -E runs the code through the compiler's parser,
5240 # not just through cpp. "Syntax error" is here to catch this case.
5241 cat >conftest.$ac_ext <<_ACEOF
5242/* confdefs.h. */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h. */
5247#ifdef __STDC__
5248# include <limits.h>
5249#else
5250# include <assert.h>
5251#endif
5252 Syntax error
5253_ACEOF
5254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } >/dev/null; then
5262 if test -s conftest.err; then
5263 ac_cpp_err=$ac_cxx_preproc_warn_flag
5264 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5265 else
5266 ac_cpp_err=
5267 fi
5268else
5269 ac_cpp_err=yes
5270fi
5271if test -z "$ac_cpp_err"; then
5272 :
5273else
5274 echo "$as_me: failed program was:" >&5
5275sed 's/^/| /' conftest.$ac_ext >&5
5276
5277 # Broken: fails on valid input.
5278continue
5279fi
5280rm -f conftest.err conftest.$ac_ext
5281
5282 # OK, works on sane cases. Now check whether non-existent headers
5283 # can be detected and how.
5284 cat >conftest.$ac_ext <<_ACEOF
5285/* confdefs.h. */
5286_ACEOF
5287cat confdefs.h >>conftest.$ac_ext
5288cat >>conftest.$ac_ext <<_ACEOF
5289/* end confdefs.h. */
5290#include <ac_nonexistent.h>
5291_ACEOF
5292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null; then
5300 if test -s conftest.err; then
5301 ac_cpp_err=$ac_cxx_preproc_warn_flag
5302 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5303 else
5304 ac_cpp_err=
5305 fi
5306else
5307 ac_cpp_err=yes
5308fi
5309if test -z "$ac_cpp_err"; then
5310 # Broken: success on invalid input.
5311continue
5312else
5313 echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 # Passes both tests.
5317ac_preproc_ok=:
5318break
5319fi
5320rm -f conftest.err conftest.$ac_ext
5321
5322done
5323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5324rm -f conftest.err conftest.$ac_ext
5325if $ac_preproc_ok; then
5326 break
5327fi
5328
5329 done
5330 ac_cv_prog_CXXCPP=$CXXCPP
5331
5332fi
5333 CXXCPP=$ac_cv_prog_CXXCPP
5334else
5335 ac_cv_prog_CXXCPP=$CXXCPP
5336fi
5337echo "$as_me:$LINENO: result: $CXXCPP" >&5
5338echo "${ECHO_T}$CXXCPP" >&6
5339ac_preproc_ok=false
5340for ac_cxx_preproc_warn_flag in '' yes
5341do
5342 # Use a header file that comes with gcc, so configuring glibc
5343 # with a fresh cross-compiler works.
5344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5345 # <limits.h> exists even on freestanding compilers.
5346 # On the NeXT, cc -E runs the code through the compiler's parser,
5347 # not just through cpp. "Syntax error" is here to catch this case.
5348 cat >conftest.$ac_ext <<_ACEOF
5349/* confdefs.h. */
5350_ACEOF
5351cat confdefs.h >>conftest.$ac_ext
5352cat >>conftest.$ac_ext <<_ACEOF
5353/* end confdefs.h. */
5354#ifdef __STDC__
5355# include <limits.h>
5356#else
5357# include <assert.h>
5358#endif
5359 Syntax error
5360_ACEOF
5361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev/null; then
5369 if test -s conftest.err; then
5370 ac_cpp_err=$ac_cxx_preproc_warn_flag
5371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5372 else
5373 ac_cpp_err=
5374 fi
5375else
5376 ac_cpp_err=yes
5377fi
5378if test -z "$ac_cpp_err"; then
5379 :
5380else
5381 echo "$as_me: failed program was:" >&5
5382sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 # Broken: fails on valid input.
5385continue
5386fi
5387rm -f conftest.err conftest.$ac_ext
5388
5389 # OK, works on sane cases. Now check whether non-existent headers
5390 # can be detected and how.
5391 cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
5397#include <ac_nonexistent.h>
5398_ACEOF
5399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } >/dev/null; then
5407 if test -s conftest.err; then
5408 ac_cpp_err=$ac_cxx_preproc_warn_flag
5409 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5410 else
5411 ac_cpp_err=
5412 fi
5413else
5414 ac_cpp_err=yes
5415fi
5416if test -z "$ac_cpp_err"; then
5417 # Broken: success on invalid input.
5418continue
5419else
5420 echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 # Passes both tests.
5424ac_preproc_ok=:
5425break
5426fi
5427rm -f conftest.err conftest.$ac_ext
5428
5429done
5430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5431rm -f conftest.err conftest.$ac_ext
5432if $ac_preproc_ok; then
5433 :
5434else
5435 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5436See \`config.log' for more details." >&5
5437echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5438See \`config.log' for more details." >&2;}
5439 { (exit 1); exit 1; }; }
5440fi
5441
5442ac_ext=cc
5443ac_cpp='$CXXCPP $CPPFLAGS'
5444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447
5448fi
5449
5450
5451ac_ext=f
5452ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5453ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5455if test -n "$ac_tool_prefix"; then
5456 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5457 do
5458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5459set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5460echo "$as_me:$LINENO: checking for $ac_word" >&5
5461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462if test "${ac_cv_prog_F77+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465 if test -n "$F77"; then
5466 ac_cv_prog_F77="$F77" # Let the user override the test.
5467else
5468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469for as_dir in $PATH
5470do
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 break 2
5478 fi
5479done
5480done
5481
5482fi
5483fi
5484F77=$ac_cv_prog_F77
5485if test -n "$F77"; then
5486 echo "$as_me:$LINENO: result: $F77" >&5
5487echo "${ECHO_T}$F77" >&6
5488else
5489 echo "$as_me:$LINENO: result: no" >&5
5490echo "${ECHO_T}no" >&6
5491fi
5492
5493 test -n "$F77" && break
5494 done
5495fi
5496if test -z "$F77"; then
5497 ac_ct_F77=$F77
5498 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5499do
5500 # Extract the first word of "$ac_prog", so it can be a program name with args.
5501set dummy $ac_prog; ac_word=$2
5502echo "$as_me:$LINENO: checking for $ac_word" >&5
5503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5504if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507 if test -n "$ac_ct_F77"; then
5508 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5509else
5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH
5512do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_ac_ct_F77="$ac_prog"
5518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521done
5522done
5523
5524fi
5525fi
5526ac_ct_F77=$ac_cv_prog_ac_ct_F77
5527if test -n "$ac_ct_F77"; then
5528 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5529echo "${ECHO_T}$ac_ct_F77" >&6
5530else
5531 echo "$as_me:$LINENO: result: no" >&5
5532echo "${ECHO_T}no" >&6
5533fi
5534
5535 test -n "$ac_ct_F77" && break
5536done
5537
5538 F77=$ac_ct_F77
5539fi
5540
5541
5542# Provide some information about the compiler.
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06005543echo "$as_me:5543:" \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005544 "checking for Fortran 77 compiler version" >&5
5545ac_compiler=`set X $ac_compile; echo $2`
5546{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5547 (eval $ac_compiler --version </dev/null >&5) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }
5551{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5552 (eval $ac_compiler -v </dev/null >&5) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }
5556{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5557 (eval $ac_compiler -V </dev/null >&5) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }
5561rm -f a.out
5562
5563# If we don't use `.F' as extension, the preprocessor is not run on the
5564# input file. (Note that this only needs to work for GNU compilers.)
5565ac_save_ext=$ac_ext
5566ac_ext=F
5567echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5568echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5569if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572 cat >conftest.$ac_ext <<_ACEOF
5573 program main
5574#ifndef __GNUC__
5575 choke me
5576#endif
5577
5578 end
5579_ACEOF
5580rm -f conftest.$ac_objext
5581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -z "$ac_f77_werror_flag"
5590 || test ! -s conftest.err'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest.$ac_objext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_compiler_gnu=yes
5603else
5604 echo "$as_me: failed program was:" >&5
5605sed 's/^/| /' conftest.$ac_ext >&5
5606
5607ac_compiler_gnu=no
5608fi
5609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5610ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5611
5612fi
5613echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5614echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5615ac_ext=$ac_save_ext
5616ac_test_FFLAGS=${FFLAGS+set}
5617ac_save_FFLAGS=$FFLAGS
5618FFLAGS=
5619echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5620echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5621if test "${ac_cv_prog_f77_g+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624 FFLAGS=-g
5625cat >conftest.$ac_ext <<_ACEOF
5626 program main
5627
5628 end
5629_ACEOF
5630rm -f conftest.$ac_objext
5631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632 (eval $ac_compile) 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -z "$ac_f77_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_prog_f77_g=yes
5653else
5654 echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
5657ac_cv_prog_f77_g=no
5658fi
5659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5660
5661fi
5662echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5663echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5664if test "$ac_test_FFLAGS" = set; then
5665 FFLAGS=$ac_save_FFLAGS
5666elif test $ac_cv_prog_f77_g = yes; then
5667 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5668 FFLAGS="-g -O2"
5669 else
5670 FFLAGS="-g"
5671 fi
5672else
5673 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5674 FFLAGS="-O2"
5675 else
5676 FFLAGS=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005677 fi
5678fi
5679
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005680G77=`test $ac_compiler_gnu = yes && echo yes`
5681ac_ext=c
5682ac_cpp='$CPP $CPPFLAGS'
5683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686
5687
5688
5689# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5690
5691# find the maximum length of command line arguments
5692echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5693echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5694if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697 i=0
5698 teststring="ABCD"
5699
5700 case $build_os in
5701 msdosdjgpp*)
5702 # On DJGPP, this test can blow up pretty badly due to problems in libc
5703 # (any single argument exceeding 2000 bytes causes a buffer overrun
5704 # during glob expansion). Even if it were fixed, the result of this
5705 # check would be larger than it should be.
5706 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5707 ;;
5708
5709 gnu*)
5710 # Under GNU Hurd, this test is not required because there is
5711 # no limit to the length of command line arguments.
5712 # Libtool will interpret -1 as no limit whatsoever
5713 lt_cv_sys_max_cmd_len=-1;
5714 ;;
5715
5716 cygwin* | mingw*)
5717 # On Win9x/ME, this test blows up -- it succeeds, but takes
5718 # about 5 minutes as the teststring grows exponentially.
5719 # Worse, since 9x/ME are not pre-emptively multitasking,
5720 # you end up with a "frozen" computer, even though with patience
5721 # the test eventually succeeds (with a max line length of 256k).
5722 # Instead, let's just punt: use the minimum linelength reported by
5723 # all of the supported platforms: 8192 (on NT/2K/XP).
5724 lt_cv_sys_max_cmd_len=8192;
5725 ;;
5726
5727 amigaos*)
5728 # On AmigaOS with pdksh, this test takes hours, literally.
5729 # So we just punt and use a minimum line length of 8192.
5730 lt_cv_sys_max_cmd_len=8192;
5731 ;;
5732
5733 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5734 # This has been around since 386BSD, at least. Likely further.
5735 if test -x /sbin/sysctl; then
5736 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5737 elif test -x /usr/sbin/sysctl; then
5738 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5739 else
5740 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5741 fi
5742 # And add a safety zone
5743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5745 ;;
5746
5747 interix*)
5748 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5749 lt_cv_sys_max_cmd_len=196608
5750 ;;
5751
5752 osf*)
5753 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5754 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5755 # nice to cause kernel panics so lets avoid the loop below.
5756 # First set a reasonable default.
5757 lt_cv_sys_max_cmd_len=16384
5758 #
5759 if test -x /sbin/sysconfig; then
5760 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5761 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5762 esac
5763 fi
5764 ;;
5765 sco3.2v5*)
5766 lt_cv_sys_max_cmd_len=102400
5767 ;;
5768 sysv5* | sco5v6* | sysv4.2uw2*)
5769 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5770 if test -n "$kargmax"; then
5771 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5772 else
5773 lt_cv_sys_max_cmd_len=32768
5774 fi
5775 ;;
5776 *)
5777 # If test is not a shell built-in, we'll probably end up computing a
5778 # maximum length that is only half of the actual maximum length, but
5779 # we can't tell.
5780 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5781 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5782 = "XX$teststring") >/dev/null 2>&1 &&
5783 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5784 lt_cv_sys_max_cmd_len=$new_result &&
5785 test $i != 17 # 1/2 MB should be enough
5786 do
5787 i=`expr $i + 1`
5788 teststring=$teststring$teststring
5789 done
5790 teststring=
5791 # Add a significant safety factor because C++ compilers can tack on massive
5792 # amounts of additional arguments before passing them to the linker.
5793 # It appears as though 1/2 is a usable value.
5794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5795 ;;
5796 esac
5797
5798fi
5799
5800if test -n $lt_cv_sys_max_cmd_len ; then
5801 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5802echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5803else
5804 echo "$as_me:$LINENO: result: none" >&5
5805echo "${ECHO_T}none" >&6
5806fi
5807
5808
5809
5810
5811# Check for command to grab the raw symbol name followed by C symbol from nm.
5812echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5813echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5814if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817
5818# These are sane defaults that work on at least a few old systems.
5819# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5820
5821# Character class describing NM global symbol codes.
5822symcode='[BCDEGRST]'
5823
5824# Regexp to match symbols that can be accessed directly from C.
5825sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5826
5827# Transform an extracted symbol line into a proper C declaration
5828lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5829
5830# Transform an extracted symbol line into symbol name and symbol address
5831lt_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'"
5832
5833# Define system-specific variables.
5834case $host_os in
5835aix*)
5836 symcode='[BCDT]'
5837 ;;
5838cygwin* | mingw* | pw32*)
5839 symcode='[ABCDGISTW]'
5840 ;;
5841hpux*) # Its linker distinguishes data from code symbols
5842 if test "$host_cpu" = ia64; then
5843 symcode='[ABCDEGRST]'
5844 fi
5845 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5846 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'"
5847 ;;
5848linux*)
5849 if test "$host_cpu" = ia64; then
5850 symcode='[ABCDGIRSTW]'
5851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5852 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'"
5853 fi
5854 ;;
5855irix* | nonstopux*)
5856 symcode='[BCDEGRST]'
5857 ;;
5858osf*)
5859 symcode='[BCDEGQRST]'
5860 ;;
5861solaris*)
5862 symcode='[BDRT]'
5863 ;;
5864sco3.2v5*)
5865 symcode='[DT]'
5866 ;;
5867sysv4.2uw2*)
5868 symcode='[DT]'
5869 ;;
5870sysv5* | sco5v6* | unixware* | OpenUNIX*)
5871 symcode='[ABDT]'
5872 ;;
5873sysv4)
5874 symcode='[DFNSTU]'
5875 ;;
5876esac
5877
5878# Handle CRLF in mingw tool chain
5879opt_cr=
5880case $build_os in
5881mingw*)
5882 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5883 ;;
5884esac
5885
5886# If we're using GNU nm, then use its standard symbol codes.
5887case `$NM -V 2>&1` in
5888*GNU* | *'with BFD'*)
5889 symcode='[ABCDGIRSTW]' ;;
5890esac
5891
5892# Try without a prefix undercore, then with it.
5893for ac_symprfx in "" "_"; do
5894
5895 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5896 symxfrm="\\1 $ac_symprfx\\2 \\2"
5897
5898 # Write the raw and C identifiers.
5899 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5900
5901 # Check to see that the pipe works correctly.
5902 pipe_works=no
5903
5904 rm -f conftest*
5905 cat > conftest.$ac_ext <<EOF
5906#ifdef __cplusplus
5907extern "C" {
5908#endif
5909char nm_test_var;
5910void nm_test_func(){}
5911#ifdef __cplusplus
5912}
5913#endif
5914int main(){nm_test_var='a';nm_test_func();return(0);}
5915EOF
5916
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; then
5922 # Now try to grab the symbols.
5923 nlist=conftest.nm
5924 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5925 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && test -s "$nlist"; then
5929 # Try sorting and uniquifying the output.
5930 if sort "$nlist" | uniq > "$nlist"T; then
5931 mv -f "$nlist"T "$nlist"
5932 else
5933 rm -f "$nlist"T
5934 fi
5935
5936 # Make sure that we snagged all the symbols we need.
5937 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5938 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5939 cat <<EOF > conftest.$ac_ext
5940#ifdef __cplusplus
5941extern "C" {
5942#endif
5943
5944EOF
5945 # Now generate the symbol file.
5946 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5947
5948 cat <<EOF >> conftest.$ac_ext
5949#if defined (__STDC__) && __STDC__
5950# define lt_ptr_t void *
5951#else
5952# define lt_ptr_t char *
5953# define const
5954#endif
5955
5956/* The mapping between symbol names and symbols. */
5957const struct {
5958 const char *name;
5959 lt_ptr_t address;
5960}
5961lt_preloaded_symbols[] =
5962{
5963EOF
5964 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5965 cat <<\EOF >> conftest.$ac_ext
5966 {0, (lt_ptr_t) 0}
5967};
5968
5969#ifdef __cplusplus
5970}
5971#endif
5972EOF
5973 # Now try linking the two files.
5974 mv conftest.$ac_objext conftstm.$ac_objext
5975 lt_save_LIBS="$LIBS"
5976 lt_save_CFLAGS="$CFLAGS"
5977 LIBS="conftstm.$ac_objext"
5978 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980 (eval $ac_link) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5984 pipe_works=yes
5985 fi
5986 LIBS="$lt_save_LIBS"
5987 CFLAGS="$lt_save_CFLAGS"
5988 else
5989 echo "cannot find nm_test_func in $nlist" >&5
5990 fi
5991 else
5992 echo "cannot find nm_test_var in $nlist" >&5
5993 fi
5994 else
5995 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5996 fi
5997 else
5998 echo "$progname: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6000 fi
6001 rm -f conftest* conftst*
6002
6003 # Do not use the global_symbol_pipe unless it works.
6004 if test "$pipe_works" = yes; then
6005 break
6006 else
6007 lt_cv_sys_global_symbol_pipe=
6008 fi
6009done
6010
6011fi
6012
6013if test -z "$lt_cv_sys_global_symbol_pipe"; then
6014 lt_cv_sys_global_symbol_to_cdecl=
6015fi
6016if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6017 echo "$as_me:$LINENO: result: failed" >&5
6018echo "${ECHO_T}failed" >&6
6019else
6020 echo "$as_me:$LINENO: result: ok" >&5
6021echo "${ECHO_T}ok" >&6
6022fi
6023
6024echo "$as_me:$LINENO: checking for objdir" >&5
6025echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6026if test "${lt_cv_objdir+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028else
6029 rm -f .libs 2>/dev/null
6030mkdir .libs 2>/dev/null
6031if test -d .libs; then
6032 lt_cv_objdir=.libs
6033else
6034 # MS-DOS does not allow filenames that begin with a dot.
6035 lt_cv_objdir=_libs
6036fi
6037rmdir .libs 2>/dev/null
6038fi
6039echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6040echo "${ECHO_T}$lt_cv_objdir" >&6
6041objdir=$lt_cv_objdir
6042
6043
6044
6045
6046
6047case $host_os in
6048aix3*)
6049 # AIX sometimes has problems with the GCC collect2 program. For some
6050 # reason, if we set the COLLECT_NAMES environment variable, the problems
6051 # vanish in a puff of smoke.
6052 if test "X${COLLECT_NAMES+set}" != Xset; then
6053 COLLECT_NAMES=
6054 export COLLECT_NAMES
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006055 fi
6056 ;;
6057esac
6058
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006059# Sed substitution that helps us do robust quoting. It backslashifies
6060# metacharacters that are still active within double-quoted strings.
6061Xsed='sed -e 1s/^X//'
6062sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6063
6064# Same as above, but do not quote variable references.
6065double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6066
6067# Sed substitution to delay expansion of an escaped shell variable in a
6068# double_quote_subst'ed string.
6069delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6070
6071# Sed substitution to avoid accidental globbing in evaled expressions
6072no_glob_subst='s/\*/\\\*/g'
6073
6074# Constants:
6075rm="rm -f"
6076
6077# Global variables:
6078default_ofile=libtool
6079can_build_shared=yes
6080
6081# All known linkers require a `.a' archive for static linking (except MSVC,
6082# which needs '.lib').
6083libext=a
6084ltmain="$ac_aux_dir/ltmain.sh"
6085ofile="$default_ofile"
6086with_gnu_ld="$lt_cv_prog_gnu_ld"
6087
6088if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6090set dummy ${ac_tool_prefix}ar; ac_word=$2
6091echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6093if test "${ac_cv_prog_AR+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096 if test -n "$AR"; then
6097 ac_cv_prog_AR="$AR" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106 ac_cv_prog_AR="${ac_tool_prefix}ar"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110done
6111done
6112
6113fi
6114fi
6115AR=$ac_cv_prog_AR
6116if test -n "$AR"; then
6117 echo "$as_me:$LINENO: result: $AR" >&5
6118echo "${ECHO_T}$AR" >&6
6119else
6120 echo "$as_me:$LINENO: result: no" >&5
6121echo "${ECHO_T}no" >&6
6122fi
6123
6124fi
6125if test -z "$ac_cv_prog_AR"; then
6126 ac_ct_AR=$AR
6127 # Extract the first word of "ar", so it can be a program name with args.
6128set dummy ar; ac_word=$2
6129echo "$as_me:$LINENO: checking for $ac_word" >&5
6130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6131if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134 if test -n "$ac_ct_AR"; then
6135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_ac_ct_AR="ar"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148done
6149done
6150
6151 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6152fi
6153fi
6154ac_ct_AR=$ac_cv_prog_ac_ct_AR
6155if test -n "$ac_ct_AR"; then
6156 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6157echo "${ECHO_T}$ac_ct_AR" >&6
6158else
6159 echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6
6161fi
6162
6163 AR=$ac_ct_AR
6164else
6165 AR="$ac_cv_prog_AR"
6166fi
6167
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006168if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6170set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6171echo "$as_me:$LINENO: checking for $ac_word" >&5
6172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6173if test "${ac_cv_prog_RANLIB+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175else
6176 if test -n "$RANLIB"; then
6177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190done
6191done
6192
6193fi
6194fi
6195RANLIB=$ac_cv_prog_RANLIB
6196if test -n "$RANLIB"; then
6197 echo "$as_me:$LINENO: result: $RANLIB" >&5
6198echo "${ECHO_T}$RANLIB" >&6
6199else
6200 echo "$as_me:$LINENO: result: no" >&5
6201echo "${ECHO_T}no" >&6
6202fi
6203
6204fi
6205if test -z "$ac_cv_prog_RANLIB"; then
6206 ac_ct_RANLIB=$RANLIB
6207 # Extract the first word of "ranlib", so it can be a program name with args.
6208set dummy ranlib; ac_word=$2
6209echo "$as_me:$LINENO: checking for $ac_word" >&5
6210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6211if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214 if test -n "$ac_ct_RANLIB"; then
6215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224 ac_cv_prog_ac_ct_RANLIB="ranlib"
6225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228done
6229done
6230
6231 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6232fi
6233fi
6234ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6235if test -n "$ac_ct_RANLIB"; then
6236 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6237echo "${ECHO_T}$ac_ct_RANLIB" >&6
6238else
6239 echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6
6241fi
6242
6243 RANLIB=$ac_ct_RANLIB
6244else
6245 RANLIB="$ac_cv_prog_RANLIB"
6246fi
6247
6248if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6250set dummy ${ac_tool_prefix}strip; ac_word=$2
6251echo "$as_me:$LINENO: checking for $ac_word" >&5
6252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253if test "${ac_cv_prog_STRIP+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256 if test -n "$STRIP"; then
6257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270done
6271done
6272
6273fi
6274fi
6275STRIP=$ac_cv_prog_STRIP
6276if test -n "$STRIP"; then
6277 echo "$as_me:$LINENO: result: $STRIP" >&5
6278echo "${ECHO_T}$STRIP" >&6
6279else
6280 echo "$as_me:$LINENO: result: no" >&5
6281echo "${ECHO_T}no" >&6
6282fi
6283
6284fi
6285if test -z "$ac_cv_prog_STRIP"; then
6286 ac_ct_STRIP=$STRIP
6287 # Extract the first word of "strip", so it can be a program name with args.
6288set dummy strip; ac_word=$2
6289echo "$as_me:$LINENO: checking for $ac_word" >&5
6290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6291if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293else
6294 if test -n "$ac_ct_STRIP"; then
6295 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6296else
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_ac_ct_STRIP="strip"
6305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308done
6309done
6310
6311 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6312fi
6313fi
6314ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6315if test -n "$ac_ct_STRIP"; then
6316 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6317echo "${ECHO_T}$ac_ct_STRIP" >&6
6318else
6319 echo "$as_me:$LINENO: result: no" >&5
6320echo "${ECHO_T}no" >&6
6321fi
6322
6323 STRIP=$ac_ct_STRIP
6324else
6325 STRIP="$ac_cv_prog_STRIP"
6326fi
6327
6328
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006329old_CC="$CC"
6330old_CFLAGS="$CFLAGS"
6331
6332# Set sane defaults for various variables
6333test -z "$AR" && AR=ar
6334test -z "$AR_FLAGS" && AR_FLAGS=cru
6335test -z "$AS" && AS=as
6336test -z "$CC" && CC=cc
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006337test -z "$LTCC" && LTCC=$CC
6338test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006339test -z "$DLLTOOL" && DLLTOOL=dlltool
6340test -z "$LD" && LD=ld
6341test -z "$LN_S" && LN_S="ln -s"
6342test -z "$MAGIC_CMD" && MAGIC_CMD=file
6343test -z "$NM" && NM=nm
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006344test -z "$SED" && SED=sed
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006345test -z "$OBJDUMP" && OBJDUMP=objdump
6346test -z "$RANLIB" && RANLIB=:
6347test -z "$STRIP" && STRIP=:
6348test -z "$ac_objext" && ac_objext=o
6349
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006350# Determine commands to create old-style static archives.
6351old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6352old_postinstall_cmds='chmod 644 $oldlib'
6353old_postuninstall_cmds=
6354
6355if test -n "$RANLIB"; then
6356 case $host_os in
6357 openbsd*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006359 ;;
6360 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006361 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006362 ;;
6363 esac
6364 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6365fi
6366
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006367for cc_temp in $compiler""; do
6368 case $cc_temp in
6369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6371 \-*) ;;
6372 *) break;;
6373 esac
6374done
6375cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006376
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006377
6378# Only perform the check for file, if the check method requires it
6379case $deplibs_check_method in
6380file_magic*)
6381 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6382 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6383echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6384if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006386else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006387 case $MAGIC_CMD in
6388[\\/*] | ?:[\\/]*)
6389 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6390 ;;
6391*)
6392 lt_save_MAGIC_CMD="$MAGIC_CMD"
6393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6394 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6395 for ac_dir in $ac_dummy; do
6396 IFS="$lt_save_ifs"
6397 test -z "$ac_dir" && ac_dir=.
6398 if test -f $ac_dir/${ac_tool_prefix}file; then
6399 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6400 if test -n "$file_magic_test_file"; then
6401 case $deplibs_check_method in
6402 "file_magic "*)
6403 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6405 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6406 $EGREP "$file_magic_regex" > /dev/null; then
6407 :
6408 else
6409 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006410
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006411*** Warning: the command libtool uses to detect shared libraries,
6412*** $file_magic_cmd, produces output that libtool cannot recognize.
6413*** The result is that libtool may fail to recognize shared libraries
6414*** as such. This will affect the creation of libtool libraries that
6415*** depend on shared libraries, but programs linked with such libtool
6416*** libraries will work regardless of this problem. Nevertheless, you
6417*** may want to report the problem to your system manager and/or to
6418*** bug-libtool@gnu.org
6419
6420EOF
6421 fi ;;
6422 esac
6423 fi
6424 break
6425 fi
6426 done
6427 IFS="$lt_save_ifs"
6428 MAGIC_CMD="$lt_save_MAGIC_CMD"
6429 ;;
6430esac
6431fi
6432
6433MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6434if test -n "$MAGIC_CMD"; then
6435 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6436echo "${ECHO_T}$MAGIC_CMD" >&6
6437else
6438 echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6
6440fi
6441
6442if test -z "$lt_cv_path_MAGIC_CMD"; then
6443 if test -n "$ac_tool_prefix"; then
6444 echo "$as_me:$LINENO: checking for file" >&5
6445echo $ECHO_N "checking for file... $ECHO_C" >&6
6446if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else
6449 case $MAGIC_CMD in
6450[\\/*] | ?:[\\/]*)
6451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6452 ;;
6453*)
6454 lt_save_MAGIC_CMD="$MAGIC_CMD"
6455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6457 for ac_dir in $ac_dummy; do
6458 IFS="$lt_save_ifs"
6459 test -z "$ac_dir" && ac_dir=.
6460 if test -f $ac_dir/file; then
6461 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6462 if test -n "$file_magic_test_file"; then
6463 case $deplibs_check_method in
6464 "file_magic "*)
6465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6468 $EGREP "$file_magic_regex" > /dev/null; then
6469 :
6470 else
6471 cat <<EOF 1>&2
6472
6473*** Warning: the command libtool uses to detect shared libraries,
6474*** $file_magic_cmd, produces output that libtool cannot recognize.
6475*** The result is that libtool may fail to recognize shared libraries
6476*** as such. This will affect the creation of libtool libraries that
6477*** depend on shared libraries, but programs linked with such libtool
6478*** libraries will work regardless of this problem. Nevertheless, you
6479*** may want to report the problem to your system manager and/or to
6480*** bug-libtool@gnu.org
6481
6482EOF
6483 fi ;;
6484 esac
6485 fi
6486 break
6487 fi
6488 done
6489 IFS="$lt_save_ifs"
6490 MAGIC_CMD="$lt_save_MAGIC_CMD"
6491 ;;
6492esac
6493fi
6494
6495MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6496if test -n "$MAGIC_CMD"; then
6497 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6498echo "${ECHO_T}$MAGIC_CMD" >&6
6499else
6500 echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6
6502fi
6503
6504 else
6505 MAGIC_CMD=:
6506 fi
6507fi
6508
6509 fi
6510 ;;
6511esac
6512
6513enable_dlopen=no
6514enable_win32_dll=no
6515
6516# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6517if test "${enable_libtool_lock+set}" = set; then
6518 enableval="$enable_libtool_lock"
6519
6520fi;
6521test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006522
6523
6524# Check whether --with-pic or --without-pic was given.
6525if test "${with_pic+set}" = set; then
6526 withval="$with_pic"
6527 pic_mode="$withval"
6528else
6529 pic_mode=default
6530fi;
6531test -z "$pic_mode" && pic_mode=default
6532
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006533# Use C for the default configuration in the libtool script
6534tagname=
6535lt_save_CC="$CC"
6536ac_ext=c
6537ac_cpp='$CPP $CPPFLAGS'
6538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540ac_compiler_gnu=$ac_cv_c_compiler_gnu
6541
6542
6543# Source file extension for C test sources.
6544ac_ext=c
6545
6546# Object file extension for compiled C test sources.
6547objext=o
6548objext=$objext
6549
6550# Code to be used in simple compile tests
6551lt_simple_compile_test_code="int some_variable = 0;\n"
6552
6553# Code to be used in simple link tests
6554lt_simple_link_test_code='int main(){return(0);}\n'
6555
6556
6557# If no C compiler was specified, use CC.
6558LTCC=${LTCC-"$CC"}
6559
6560# If no C compiler flags were specified, use CFLAGS.
6561LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6562
6563# Allow CC to be a program name with arguments.
6564compiler=$CC
6565
6566
6567# save warnings/boilerplate of simple test code
6568ac_outfile=conftest.$ac_objext
6569printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6570eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6571_lt_compiler_boilerplate=`cat conftest.err`
6572$rm conftest*
6573
6574ac_outfile=conftest.$ac_objext
6575printf "$lt_simple_link_test_code" >conftest.$ac_ext
6576eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6577_lt_linker_boilerplate=`cat conftest.err`
6578$rm conftest*
6579
6580
6581
6582lt_prog_compiler_no_builtin_flag=
6583
6584if test "$GCC" = yes; then
6585 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6586
6587
6588echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6589echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6590if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006593 lt_cv_prog_compiler_rtti_exceptions=no
6594 ac_outfile=conftest.$ac_objext
6595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6596 lt_compiler_flag="-fno-rtti -fno-exceptions"
6597 # Insert the option either (1) after the last *FLAGS variable, or
6598 # (2) before a word containing "conftest.", or (3) at the end.
6599 # Note that $ac_compile itself does not contain backslashes and begins
6600 # with a dollar sign (not a hyphen), so the echo should work correctly.
6601 # The option is referenced via a variable to avoid confusing sed.
6602 lt_compile=`echo "$ac_compile" | $SED \
6603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6605 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06006606 (eval echo "\"\$as_me:6606: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006607 (eval "$lt_compile" 2>conftest.err)
6608 ac_status=$?
6609 cat conftest.err >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06006610 echo "$as_me:6610: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006611 if (exit $ac_status) && test -s "$ac_outfile"; then
6612 # The compiler can only warn and ignore the option if not recognized
6613 # So say no if there are warnings other than the usual output.
6614 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6617 lt_cv_prog_compiler_rtti_exceptions=yes
6618 fi
6619 fi
6620 $rm conftest*
6621
6622fi
6623echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6624echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6625
6626if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6627 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6628else
6629 :
6630fi
6631
6632fi
6633
6634lt_prog_compiler_wl=
6635lt_prog_compiler_pic=
6636lt_prog_compiler_static=
6637
6638echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6639echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006640
6641 if test "$GCC" = yes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006642 lt_prog_compiler_wl='-Wl,'
6643 lt_prog_compiler_static='-static'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006644
6645 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006646 aix*)
6647 # All AIX code is PIC.
6648 if test "$host_cpu" = ia64; then
6649 # AIX 5 now supports IA64 processor
6650 lt_prog_compiler_static='-Bstatic'
6651 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006652 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006653
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006654 amigaos*)
6655 # FIXME: we need at least 68020 code to build shared libraries, but
6656 # adding the `-m68020' flag to GCC prevents building anything better,
6657 # like `-m68040'.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006658 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006659 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006660
6661 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006662 # PIC is the default for these OSes.
6663 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006664
6665 mingw* | pw32* | os2*)
6666 # This hack is so that the source file can tell whether it is being
6667 # built for inclusion in a dll (and should export symbols for example).
6668 lt_prog_compiler_pic='-DDLL_EXPORT'
6669 ;;
6670
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006671 darwin* | rhapsody*)
6672 # PIC is the default on this platform
6673 # Common symbols not allowed in MH_DYLIB files
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006674 lt_prog_compiler_pic='-fno-common'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006675 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006676
6677 interix3*)
6678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6679 # Instead, we relocate shared libraries at runtime.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006680 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006681
6682 msdosdjgpp*)
6683 # Just because we use GCC doesn't mean we suddenly get shared libraries
6684 # on systems that don't support them.
6685 lt_prog_compiler_can_build_shared=no
6686 enable_shared=no
6687 ;;
6688
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006689 sysv4*MP*)
6690 if test -d /usr/nec; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006691 lt_prog_compiler_pic=-Kconform_pic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006692 fi
6693 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006694
6695 hpux*)
6696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6697 # not for PA HP-UX.
6698 case $host_cpu in
6699 hppa*64*|ia64*)
6700 # +Z the default
6701 ;;
6702 *)
6703 lt_prog_compiler_pic='-fPIC'
6704 ;;
6705 esac
6706 ;;
6707
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006708 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006709 lt_prog_compiler_pic='-fPIC'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006710 ;;
6711 esac
6712 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006713 # PORTME Check for flag to pass linker flags through the system compiler.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006714 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006715 aix*)
6716 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006717 if test "$host_cpu" = ia64; then
6718 # AIX 5 now supports IA64 processor
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006719 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006720 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006721 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006722 fi
6723 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006724 darwin*)
6725 # PIC is the default on this platform
6726 # Common symbols not allowed in MH_DYLIB files
6727 case $cc_basename in
6728 xlc*)
6729 lt_prog_compiler_pic='-qnocommon'
6730 lt_prog_compiler_wl='-Wl,'
6731 ;;
6732 esac
6733 ;;
6734
6735 mingw* | pw32* | os2*)
6736 # This hack is so that the source file can tell whether it is being
6737 # built for inclusion in a dll (and should export symbols for example).
6738 lt_prog_compiler_pic='-DDLL_EXPORT'
6739 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006740
6741 hpux9* | hpux10* | hpux11*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006742 lt_prog_compiler_wl='-Wl,'
6743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6744 # not for PA HP-UX.
6745 case $host_cpu in
6746 hppa*64*|ia64*)
6747 # +Z the default
6748 ;;
6749 *)
6750 lt_prog_compiler_pic='+Z'
6751 ;;
6752 esac
6753 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6754 lt_prog_compiler_static='${wl}-a ${wl}archive'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006755 ;;
6756
6757 irix5* | irix6* | nonstopux*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006758 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006759 # PIC (with -KPIC) is the default.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006760 lt_prog_compiler_static='-non_shared'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006761 ;;
6762
6763 newsos6)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006764 lt_prog_compiler_pic='-KPIC'
6765 lt_prog_compiler_static='-Bstatic'
6766 ;;
6767
6768 linux*)
6769 case $cc_basename in
6770 icc* | ecc*)
6771 lt_prog_compiler_wl='-Wl,'
6772 lt_prog_compiler_pic='-KPIC'
6773 lt_prog_compiler_static='-static'
6774 ;;
6775 pgcc* | pgf77* | pgf90* | pgf95*)
6776 # Portland Group compilers (*not* the Pentium gcc compiler,
6777 # which looks to be a dead project)
6778 lt_prog_compiler_wl='-Wl,'
6779 lt_prog_compiler_pic='-fpic'
6780 lt_prog_compiler_static='-Bstatic'
6781 ;;
6782 ccc*)
6783 lt_prog_compiler_wl='-Wl,'
6784 # All Alpha code is PIC.
6785 lt_prog_compiler_static='-non_shared'
6786 ;;
6787 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006788 ;;
6789
6790 osf3* | osf4* | osf5*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006791 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006792 # All OSF/1 code is PIC.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006793 lt_prog_compiler_static='-non_shared'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006794 ;;
6795
6796 solaris*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006797 lt_prog_compiler_pic='-KPIC'
6798 lt_prog_compiler_static='-Bstatic'
6799 case $cc_basename in
6800 f77* | f90* | f95*)
6801 lt_prog_compiler_wl='-Qoption ld ';;
6802 *)
6803 lt_prog_compiler_wl='-Wl,';;
6804 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006805 ;;
6806
6807 sunos4*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006808 lt_prog_compiler_wl='-Qoption ld '
6809 lt_prog_compiler_pic='-PIC'
6810 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006811 ;;
6812
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006813 sysv4 | sysv4.2uw2* | sysv4.3*)
6814 lt_prog_compiler_wl='-Wl,'
6815 lt_prog_compiler_pic='-KPIC'
6816 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006817 ;;
6818
6819 sysv4*MP*)
6820 if test -d /usr/nec ;then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006821 lt_prog_compiler_pic='-Kconform_pic'
6822 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006823 fi
6824 ;;
6825
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6827 lt_prog_compiler_wl='-Wl,'
6828 lt_prog_compiler_pic='-KPIC'
6829 lt_prog_compiler_static='-Bstatic'
6830 ;;
6831
6832 unicos*)
6833 lt_prog_compiler_wl='-Wl,'
6834 lt_prog_compiler_can_build_shared=no
6835 ;;
6836
6837 uts4*)
6838 lt_prog_compiler_pic='-pic'
6839 lt_prog_compiler_static='-Bstatic'
6840 ;;
6841
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006842 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006843 lt_prog_compiler_can_build_shared=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006844 ;;
6845 esac
6846 fi
6847
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006848echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6849echo "${ECHO_T}$lt_prog_compiler_pic" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006850
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006851#
6852# Check to make sure the PIC flag actually works.
6853#
6854if test -n "$lt_prog_compiler_pic"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006855
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006856echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6857echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6858if test "${lt_prog_compiler_pic_works+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006861 lt_prog_compiler_pic_works=no
6862 ac_outfile=conftest.$ac_objext
6863 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6864 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6865 # Insert the option either (1) after the last *FLAGS variable, or
6866 # (2) before a word containing "conftest.", or (3) at the end.
6867 # Note that $ac_compile itself does not contain backslashes and begins
6868 # with a dollar sign (not a hyphen), so the echo should work correctly.
6869 # The option is referenced via a variable to avoid confusing sed.
6870 lt_compile=`echo "$ac_compile" | $SED \
6871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6873 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06006874 (eval echo "\"\$as_me:6874: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006875 (eval "$lt_compile" 2>conftest.err)
6876 ac_status=$?
6877 cat conftest.err >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06006878 echo "$as_me:6878: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006879 if (exit $ac_status) && test -s "$ac_outfile"; then
6880 # The compiler can only warn and ignore the option if not recognized
6881 # So say no if there are warnings other than the usual output.
6882 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6885 lt_prog_compiler_pic_works=yes
6886 fi
6887 fi
6888 $rm conftest*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006889
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006890fi
6891echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6892echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006893
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006894if test x"$lt_prog_compiler_pic_works" = xyes; then
6895 case $lt_prog_compiler_pic in
6896 "" | " "*) ;;
6897 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6898 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006899else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006900 lt_prog_compiler_pic=
6901 lt_prog_compiler_can_build_shared=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006902fi
6903
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006904fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006905case $host_os in
6906 # For platforms which do not support PIC, -DPIC is meaningless:
6907 *djgpp*)
6908 lt_prog_compiler_pic=
6909 ;;
6910 *)
6911 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6912 ;;
6913esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006914
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006915#
6916# Check to make sure the static flag actually works.
6917#
6918wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6919echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6920echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6921if test "${lt_prog_compiler_static_works+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006924 lt_prog_compiler_static_works=no
6925 save_LDFLAGS="$LDFLAGS"
6926 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6927 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6928 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6929 # The linker can only warn and ignore the option if not recognized
6930 # So say no if there are warnings
6931 if test -s conftest.err; then
6932 # Append any errors to the config.log.
6933 cat conftest.err 1>&5
6934 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6936 if diff conftest.exp conftest.er2 >/dev/null; then
6937 lt_prog_compiler_static_works=yes
6938 fi
6939 else
6940 lt_prog_compiler_static_works=yes
6941 fi
6942 fi
6943 $rm conftest*
6944 LDFLAGS="$save_LDFLAGS"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006945
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006946fi
6947echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6948echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006949
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006950if test x"$lt_prog_compiler_static_works" = xyes; then
6951 :
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006952else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006953 lt_prog_compiler_static=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006954fi
6955
6956
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006957echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6958echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006959if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006962 lt_cv_prog_compiler_c_o=no
6963 $rm -r conftest 2>/dev/null
6964 mkdir conftest
6965 cd conftest
6966 mkdir out
6967 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006968
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006969 lt_compiler_flag="-o out/conftest2.$ac_objext"
6970 # Insert the option either (1) after the last *FLAGS variable, or
6971 # (2) before a word containing "conftest.", or (3) at the end.
6972 # Note that $ac_compile itself does not contain backslashes and begins
6973 # with a dollar sign (not a hyphen), so the echo should work correctly.
6974 lt_compile=`echo "$ac_compile" | $SED \
6975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6977 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06006978 (eval echo "\"\$as_me:6978: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006979 (eval "$lt_compile" 2>out/conftest.err)
6980 ac_status=$?
6981 cat out/conftest.err >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06006982 echo "$as_me:6982: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6984 then
6985 # The compiler can only warn and ignore the option if not recognized
6986 # So say no if there are warnings
6987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6990 lt_cv_prog_compiler_c_o=yes
6991 fi
6992 fi
6993 chmod u+w . 2>&5
6994 $rm conftest*
6995 # SGI C++ compiler will create directory out/ii_files/ for
6996 # template instantiation
6997 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6998 $rm out/* && rmdir out
6999 cd ..
7000 rmdir conftest
7001 $rm conftest*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007002
7003fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007004echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7005echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007006
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007007
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007008hard_links="nottested"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007009if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007010 # do not overwrite the value of need_locks provided by the user
7011 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7012echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7013 hard_links=yes
7014 $rm conftest*
7015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7016 touch conftest.a
7017 ln conftest.a conftest.b 2>&5 || hard_links=no
7018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7019 echo "$as_me:$LINENO: result: $hard_links" >&5
7020echo "${ECHO_T}$hard_links" >&6
7021 if test "$hard_links" = no; then
7022 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7023echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7024 need_locks=warn
7025 fi
7026else
7027 need_locks=no
7028fi
7029
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007030echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7031echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007032
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007033 runpath_var=
7034 allow_undefined_flag=
7035 enable_shared_with_static_runtimes=no
7036 archive_cmds=
7037 archive_expsym_cmds=
7038 old_archive_From_new_cmds=
7039 old_archive_from_expsyms_cmds=
7040 export_dynamic_flag_spec=
7041 whole_archive_flag_spec=
7042 thread_safe_flag_spec=
7043 hardcode_libdir_flag_spec=
7044 hardcode_libdir_flag_spec_ld=
7045 hardcode_libdir_separator=
7046 hardcode_direct=no
7047 hardcode_minus_L=no
7048 hardcode_shlibpath_var=unsupported
7049 link_all_deplibs=unknown
7050 hardcode_automatic=no
7051 module_cmds=
7052 module_expsym_cmds=
7053 always_export_symbols=no
7054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7055 # include_expsyms should be a list of space-separated symbols to be *always*
7056 # included in the symbol list
7057 include_expsyms=
7058 # exclude_expsyms can be an extended regexp of symbols to exclude
7059 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7060 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7061 # as well as any symbol that contains `d'.
7062 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7063 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7064 # platforms (ab)use it in PIC code, but their linkers get confused if
7065 # the symbol is explicitly referenced. Since portable code cannot
7066 # rely on this symbol name, it's probably fine to never include it in
7067 # preloaded symbol tables.
7068 extract_expsyms_cmds=
7069 # Just being paranoid about ensuring that cc_basename is set.
7070 for cc_temp in $compiler""; do
7071 case $cc_temp in
7072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7074 \-*) ;;
7075 *) break;;
7076 esac
7077done
7078cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007079
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007080 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007081 cygwin* | mingw* | pw32*)
7082 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7083 # When not using gcc, we currently assume that we are using
7084 # Microsoft Visual C++.
7085 if test "$GCC" != yes; then
7086 with_gnu_ld=no
7087 fi
7088 ;;
7089 interix*)
7090 # we just hope/assume this is gcc and not c89 (= MSVC++)
7091 with_gnu_ld=yes
7092 ;;
7093 openbsd*)
7094 with_gnu_ld=no
7095 ;;
7096 esac
7097
7098 ld_shlibs=yes
7099 if test "$with_gnu_ld" = yes; then
7100 # If archive_cmds runs LD, not CC, wlarc should be empty
7101 wlarc='${wl}'
7102
7103 # Set some defaults for GNU ld with shared library support. These
7104 # are reset later if shared libraries are not supported. Putting them
7105 # here allows them to be overridden if necessary.
7106 runpath_var=LD_RUN_PATH
7107 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7108 export_dynamic_flag_spec='${wl}--export-dynamic'
7109 # ancient GNU ld didn't support --whole-archive et. al.
7110 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7111 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7112 else
7113 whole_archive_flag_spec=
7114 fi
7115 supports_anon_versioning=no
7116 case `$LD -v 2>/dev/null` in
7117 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7118 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7119 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7120 *\ 2.11.*) ;; # other 2.11 versions
7121 *) supports_anon_versioning=yes ;;
7122 esac
7123
7124 # See if GNU ld supports shared libraries.
7125 case $host_os in
7126 aix3* | aix4* | aix5*)
7127 # On AIX/PPC, the GNU linker is very broken
7128 if test "$host_cpu" != ia64; then
7129 ld_shlibs=no
7130 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007131
7132*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7133*** to be unable to reliably create shared libraries on AIX.
7134*** Therefore, libtool is disabling shared libraries support. If you
7135*** really care for shared libraries, you may want to modify your PATH
7136*** so that a non-GNU linker is found, and then restart.
7137
7138EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007139 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007140 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007141
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007142 amigaos*)
7143 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)'
7144 hardcode_libdir_flag_spec='-L$libdir'
7145 hardcode_minus_L=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007146
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007147 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7148 # that the semantics of dynamic libraries on AmigaOS, at least up
7149 # to version 4, is to share data among multiple programs linked
7150 # with the same dynamic library. Since this doesn't match the
7151 # behavior of shared libraries on other platforms, we can't use
7152 # them.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007153 ld_shlibs=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007154 ;;
7155
7156 beos*)
7157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7158 allow_undefined_flag=unsupported
7159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7160 # support --undefined. This deserves some investigation. FIXME
7161 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7162 else
7163 ld_shlibs=no
7164 fi
7165 ;;
7166
7167 cygwin* | mingw* | pw32*)
7168 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7169 # as there is no search path for DLLs.
7170 hardcode_libdir_flag_spec='-L$libdir'
7171 allow_undefined_flag=unsupported
7172 always_export_symbols=no
7173 enable_shared_with_static_runtimes=yes
7174 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7175
7176 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7178 # If the export-symbols file already is a .def file (1st line
7179 # is EXPORTS), use it as is; otherwise, prepend...
7180 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7181 cp $export_symbols $output_objdir/$soname.def;
7182 else
7183 echo EXPORTS > $output_objdir/$soname.def;
7184 cat $export_symbols >> $output_objdir/$soname.def;
7185 fi~
7186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7187 else
7188 ld_shlibs=no
7189 fi
7190 ;;
7191
7192 interix3*)
7193 hardcode_direct=no
7194 hardcode_shlibpath_var=no
7195 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7196 export_dynamic_flag_spec='${wl}-E'
7197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7198 # Instead, shared libraries are loaded at an image base (0x10000000 by
7199 # default) and relocated if they conflict, which is a slow very memory
7200 # consuming and fragmenting process. To avoid this, we pick a random,
7201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7202 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7204 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'
7205 ;;
7206
7207 linux*)
7208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7209 tmp_addflag=
7210 case $cc_basename,$host_cpu in
7211 pgcc*) # Portland Group C compiler
7212 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'
7213 tmp_addflag=' $pic_flag'
7214 ;;
7215 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7216 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'
7217 tmp_addflag=' $pic_flag -Mnomain' ;;
7218 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7219 tmp_addflag=' -i_dynamic' ;;
7220 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7221 tmp_addflag=' -i_dynamic -nofor_main' ;;
7222 ifc* | ifort*) # Intel Fortran compiler
7223 tmp_addflag=' -nofor_main' ;;
7224 esac
7225 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7226
7227 if test $supports_anon_versioning = yes; then
7228 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7230 $echo "local: *; };" >> $output_objdir/$libname.ver~
7231 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7232 fi
7233 else
7234 ld_shlibs=no
7235 fi
7236 ;;
7237
7238 netbsd*)
7239 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7240 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7241 wlarc=
7242 else
7243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7245 fi
7246 ;;
7247
7248 solaris*)
7249 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7250 ld_shlibs=no
7251 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007252
7253*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7254*** create shared libraries on Solaris systems. Therefore, libtool
7255*** is disabling shared libraries support. We urge you to upgrade GNU
7256*** binutils to release 2.9.1 or newer. Another option is to modify
7257*** your PATH or compiler configuration so that the native linker is
7258*** used, and then restart.
7259
7260EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007261 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7263 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 -06007264 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007265 ld_shlibs=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007266 fi
7267 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007268
7269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7270 case `$LD -v 2>&1` in
7271 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7272 ld_shlibs=no
7273 cat <<_LT_EOF 1>&2
7274
7275*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7276*** reliably create shared libraries on SCO systems. Therefore, libtool
7277*** is disabling shared libraries support. We urge you to upgrade GNU
7278*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7279*** your PATH or compiler configuration so that the native linker is
7280*** used, and then restart.
7281
7282_LT_EOF
7283 ;;
7284 *)
7285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7286 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7289 else
7290 ld_shlibs=no
7291 fi
7292 ;;
7293 esac
7294 ;;
7295
7296 sunos4*)
7297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7298 wlarc=
7299 hardcode_direct=yes
7300 hardcode_shlibpath_var=no
7301 ;;
7302
7303 *)
7304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7307 else
7308 ld_shlibs=no
7309 fi
7310 ;;
7311 esac
7312
7313 if test "$ld_shlibs" = no; then
7314 runpath_var=
7315 hardcode_libdir_flag_spec=
7316 export_dynamic_flag_spec=
7317 whole_archive_flag_spec=
7318 fi
7319 else
7320 # PORTME fill in a description of your system's linker (not GNU ld)
7321 case $host_os in
7322 aix3*)
7323 allow_undefined_flag=unsupported
7324 always_export_symbols=yes
7325 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'
7326 # Note: this linker hardcodes the directories in LIBPATH if there
7327 # are no directories specified by -L.
7328 hardcode_minus_L=yes
7329 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7330 # Neither direct hardcoding nor static linking is supported with a
7331 # broken collect2.
7332 hardcode_direct=unsupported
7333 fi
7334 ;;
7335
7336 aix4* | aix5*)
7337 if test "$host_cpu" = ia64; then
7338 # On IA64, the linker does run time linking by default, so we don't
7339 # have to do anything special.
7340 aix_use_runtimelinking=no
7341 exp_sym_flag='-Bexport'
7342 no_entry_flag=""
7343 else
7344 # If we're using GNU nm, then we don't want the "-C" option.
7345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7346 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7347 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'
7348 else
7349 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'
7350 fi
7351 aix_use_runtimelinking=no
7352
7353 # Test if we are trying to use run time linking or normal
7354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7355 # need to do runtime linking.
7356 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7357 for ld_flag in $LDFLAGS; do
7358 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7359 aix_use_runtimelinking=yes
7360 break
7361 fi
7362 done
7363 ;;
7364 esac
7365
7366 exp_sym_flag='-bexport'
7367 no_entry_flag='-bnoentry'
7368 fi
7369
7370 # When large executables or shared objects are built, AIX ld can
7371 # have problems creating the table of contents. If linking a library
7372 # or program results in "error TOC overflow" add -mminimal-toc to
7373 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7374 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7375
7376 archive_cmds=''
7377 hardcode_direct=yes
7378 hardcode_libdir_separator=':'
7379 link_all_deplibs=yes
7380
7381 if test "$GCC" = yes; then
7382 case $host_os in aix4.[012]|aix4.[012].*)
7383 # We only want to do this on AIX 4.2 and lower, the check
7384 # below for broken collect2 doesn't work under 4.3+
7385 collect2name=`${CC} -print-prog-name=collect2`
7386 if test -f "$collect2name" && \
7387 strings "$collect2name" | grep resolve_lib_name >/dev/null
7388 then
7389 # We have reworked collect2
7390 hardcode_direct=yes
7391 else
7392 # We have old collect2
7393 hardcode_direct=unsupported
7394 # It fails to find uninstalled libraries when the uninstalled
7395 # path is not listed in the libpath. Setting hardcode_minus_L
7396 # to unsupported forces relinking
7397 hardcode_minus_L=yes
7398 hardcode_libdir_flag_spec='-L$libdir'
7399 hardcode_libdir_separator=
7400 fi
7401 ;;
7402 esac
7403 shared_flag='-shared'
7404 if test "$aix_use_runtimelinking" = yes; then
7405 shared_flag="$shared_flag "'${wl}-G'
7406 fi
7407 else
7408 # not using gcc
7409 if test "$host_cpu" = ia64; then
7410 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7411 # chokes on -Wl,-G. The following line is correct:
7412 shared_flag='-G'
7413 else
7414 if test "$aix_use_runtimelinking" = yes; then
7415 shared_flag='${wl}-G'
7416 else
7417 shared_flag='${wl}-bM:SRE'
7418 fi
7419 fi
7420 fi
7421
7422 # It seems that -bexpall does not export symbols beginning with
7423 # underscore (_), so it is better to generate a list of symbols to export.
7424 always_export_symbols=yes
7425 if test "$aix_use_runtimelinking" = yes; then
7426 # Warning - without using the other runtime loading flags (-brtl),
7427 # -berok will link without error, but may produce a broken library.
7428 allow_undefined_flag='-berok'
7429 # Determine the default libpath from the value encoded in an empty executable.
7430 cat >conftest.$ac_ext <<_ACEOF
7431/* confdefs.h. */
7432_ACEOF
7433cat confdefs.h >>conftest.$ac_ext
7434cat >>conftest.$ac_ext <<_ACEOF
7435/* end confdefs.h. */
7436
7437int
7438main ()
7439{
7440
7441 ;
7442 return 0;
7443}
7444_ACEOF
7445rm -f conftest.$ac_objext conftest$ac_exeext
7446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7447 (eval $ac_link) 2>conftest.er1
7448 ac_status=$?
7449 grep -v '^ *+' conftest.er1 >conftest.err
7450 rm -f conftest.er1
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } &&
7454 { ac_try='test -z "$ac_c_werror_flag"
7455 || test ! -s conftest.err'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 (eval $ac_try) 2>&5
7458 ac_status=$?
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; } &&
7461 { ac_try='test -s conftest$ac_exeext'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 (eval $ac_try) 2>&5
7464 ac_status=$?
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; }; then
7467
7468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7469}'`
7470# Check for a 64-bit object if we didn't find anything.
7471if 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; }
7472}'`; fi
7473else
7474 echo "$as_me: failed program was:" >&5
7475sed 's/^/| /' conftest.$ac_ext >&5
7476
7477fi
7478rm -f conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7481
7482 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7483 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"
7484 else
7485 if test "$host_cpu" = ia64; then
7486 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7487 allow_undefined_flag="-z nodefs"
7488 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"
7489 else
7490 # Determine the default libpath from the value encoded in an empty executable.
7491 cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
7497
7498int
7499main ()
7500{
7501
7502 ;
7503 return 0;
7504}
7505_ACEOF
7506rm -f conftest.$ac_objext conftest$ac_exeext
7507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
7515 { ac_try='test -z "$ac_c_werror_flag"
7516 || test ! -s conftest.err'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 (eval $ac_try) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; } &&
7522 { ac_try='test -s conftest$ac_exeext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528
7529aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7530}'`
7531# Check for a 64-bit object if we didn't find anything.
7532if 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; }
7533}'`; fi
7534else
7535 echo "$as_me: failed program was:" >&5
7536sed 's/^/| /' conftest.$ac_ext >&5
7537
7538fi
7539rm -f conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext
7541if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7542
7543 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7544 # Warning - without using the other run time loading flags,
7545 # -berok will link without error, but may produce a broken library.
7546 no_undefined_flag=' ${wl}-bernotok'
7547 allow_undefined_flag=' ${wl}-berok'
7548 # Exported symbols can be pulled into shared objects from archives
7549 whole_archive_flag_spec='$convenience'
7550 archive_cmds_need_lc=yes
7551 # This is similar to how AIX traditionally builds its shared libraries.
7552 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'
7553 fi
7554 fi
7555 ;;
7556
7557 amigaos*)
7558 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)'
7559 hardcode_libdir_flag_spec='-L$libdir'
7560 hardcode_minus_L=yes
7561 # see comment about different semantics on the GNU ld section
7562 ld_shlibs=no
7563 ;;
7564
7565 bsdi[45]*)
7566 export_dynamic_flag_spec=-rdynamic
7567 ;;
7568
7569 cygwin* | mingw* | pw32*)
7570 # When not using gcc, we currently assume that we are using
7571 # Microsoft Visual C++.
7572 # hardcode_libdir_flag_spec is actually meaningless, as there is
7573 # no search path for DLLs.
7574 hardcode_libdir_flag_spec=' '
7575 allow_undefined_flag=unsupported
7576 # Tell ltmain to make .lib files, not .a files.
7577 libext=lib
7578 # Tell ltmain to make .dll files, not .so files.
7579 shrext_cmds=".dll"
7580 # FIXME: Setting linknames here is a bad hack.
7581 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7582 # The linker will automatically build a .lib file if we build a DLL.
7583 old_archive_From_new_cmds='true'
7584 # FIXME: Should let the user specify the lib program.
7585 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7586 fix_srcfile_path='`cygpath -w "$srcfile"`'
7587 enable_shared_with_static_runtimes=yes
7588 ;;
7589
7590 darwin* | rhapsody*)
7591 case $host_os in
7592 rhapsody* | darwin1.[012])
7593 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7594 ;;
7595 *) # Darwin 1.3 on
7596 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7597 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7598 else
7599 case ${MACOSX_DEPLOYMENT_TARGET} in
7600 10.[012])
7601 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7602 ;;
7603 10.*)
7604 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7605 ;;
7606 esac
7607 fi
7608 ;;
7609 esac
7610 archive_cmds_need_lc=no
7611 hardcode_direct=no
7612 hardcode_automatic=yes
7613 hardcode_shlibpath_var=unsupported
7614 whole_archive_flag_spec=''
7615 link_all_deplibs=yes
7616 if test "$GCC" = yes ; then
7617 output_verbose_link_cmd='echo'
7618 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7619 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7621 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}'
7622 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}'
7623 else
7624 case $cc_basename in
7625 xlc*)
7626 output_verbose_link_cmd='echo'
7627 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7628 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7629 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7630 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}'
7631 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}'
7632 ;;
7633 *)
7634 ld_shlibs=no
7635 ;;
7636 esac
7637 fi
7638 ;;
7639
7640 dgux*)
7641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7642 hardcode_libdir_flag_spec='-L$libdir'
7643 hardcode_shlibpath_var=no
7644 ;;
7645
7646 freebsd1*)
7647 ld_shlibs=no
7648 ;;
7649
7650 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7651 # support. Future versions do this automatically, but an explicit c++rt0.o
7652 # does not break anything, and helps significantly (at the cost of a little
7653 # extra space).
7654 freebsd2.2*)
7655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7656 hardcode_libdir_flag_spec='-R$libdir'
7657 hardcode_direct=yes
7658 hardcode_shlibpath_var=no
7659 ;;
7660
7661 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7662 freebsd2*)
7663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7664 hardcode_direct=yes
7665 hardcode_minus_L=yes
7666 hardcode_shlibpath_var=no
7667 ;;
7668
7669 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7670 freebsd* | kfreebsd*-gnu | dragonfly*)
7671 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7672 hardcode_libdir_flag_spec='-R$libdir'
7673 hardcode_direct=yes
7674 hardcode_shlibpath_var=no
7675 ;;
7676
7677 hpux9*)
7678 if test "$GCC" = yes; then
7679 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'
7680 else
7681 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'
7682 fi
7683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7684 hardcode_libdir_separator=:
7685 hardcode_direct=yes
7686
7687 # hardcode_minus_L: Not really in the search PATH,
7688 # but as the default location of the library.
7689 hardcode_minus_L=yes
7690 export_dynamic_flag_spec='${wl}-E'
7691 ;;
7692
7693 hpux10*)
7694 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7696 else
7697 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7698 fi
7699 if test "$with_gnu_ld" = no; then
7700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7701 hardcode_libdir_separator=:
7702
7703 hardcode_direct=yes
7704 export_dynamic_flag_spec='${wl}-E'
7705
7706 # hardcode_minus_L: Not really in the search PATH,
7707 # but as the default location of the library.
7708 hardcode_minus_L=yes
7709 fi
7710 ;;
7711
7712 hpux11*)
7713 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7714 case $host_cpu in
7715 hppa*64*)
7716 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7717 ;;
7718 ia64*)
7719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7720 ;;
7721 *)
7722 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7723 ;;
7724 esac
7725 else
7726 case $host_cpu in
7727 hppa*64*)
7728 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7729 ;;
7730 ia64*)
7731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7732 ;;
7733 *)
7734 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7735 ;;
7736 esac
7737 fi
7738 if test "$with_gnu_ld" = no; then
7739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7740 hardcode_libdir_separator=:
7741
7742 case $host_cpu in
7743 hppa*64*|ia64*)
7744 hardcode_libdir_flag_spec_ld='+b $libdir'
7745 hardcode_direct=no
7746 hardcode_shlibpath_var=no
7747 ;;
7748 *)
7749 hardcode_direct=yes
7750 export_dynamic_flag_spec='${wl}-E'
7751
7752 # hardcode_minus_L: Not really in the search PATH,
7753 # but as the default location of the library.
7754 hardcode_minus_L=yes
7755 ;;
7756 esac
7757 fi
7758 ;;
7759
7760 irix5* | irix6* | nonstopux*)
7761 if test "$GCC" = yes; then
7762 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'
7763 else
7764 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'
7765 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7766 fi
7767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7768 hardcode_libdir_separator=:
7769 link_all_deplibs=yes
7770 ;;
7771
7772 netbsd*)
7773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7775 else
7776 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7777 fi
7778 hardcode_libdir_flag_spec='-R$libdir'
7779 hardcode_direct=yes
7780 hardcode_shlibpath_var=no
7781 ;;
7782
7783 newsos6)
7784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7785 hardcode_direct=yes
7786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7787 hardcode_libdir_separator=:
7788 hardcode_shlibpath_var=no
7789 ;;
7790
7791 openbsd*)
7792 hardcode_direct=yes
7793 hardcode_shlibpath_var=no
7794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7796 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7797 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7798 export_dynamic_flag_spec='${wl}-E'
7799 else
7800 case $host_os in
7801 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7803 hardcode_libdir_flag_spec='-R$libdir'
7804 ;;
7805 *)
7806 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7807 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7808 ;;
7809 esac
7810 fi
7811 ;;
7812
7813 os2*)
7814 hardcode_libdir_flag_spec='-L$libdir'
7815 hardcode_minus_L=yes
7816 allow_undefined_flag=unsupported
7817 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'
7818 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7819 ;;
7820
7821 osf3*)
7822 if test "$GCC" = yes; then
7823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7824 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'
7825 else
7826 allow_undefined_flag=' -expect_unresolved \*'
7827 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'
7828 fi
7829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7830 hardcode_libdir_separator=:
7831 ;;
7832
7833 osf4* | osf5*) # as osf3* with the addition of -msym flag
7834 if test "$GCC" = yes; then
7835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7836 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'
7837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7838 else
7839 allow_undefined_flag=' -expect_unresolved \*'
7840 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'
7841 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7842 $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'
7843
7844 # Both c and cxx compiler support -rpath directly
7845 hardcode_libdir_flag_spec='-rpath $libdir'
7846 fi
7847 hardcode_libdir_separator=:
7848 ;;
7849
7850 solaris*)
7851 no_undefined_flag=' -z text'
7852 if test "$GCC" = yes; then
7853 wlarc='${wl}'
7854 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7855 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7856 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7857 else
7858 wlarc=''
7859 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7860 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7861 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7862 fi
7863 hardcode_libdir_flag_spec='-R$libdir'
7864 hardcode_shlibpath_var=no
7865 case $host_os in
7866 solaris2.[0-5] | solaris2.[0-5].*) ;;
7867 *)
7868 # The compiler driver will combine linker options so we
7869 # cannot just pass the convience library names through
7870 # without $wl, iff we do not link with $LD.
7871 # Luckily, gcc supports the same syntax we need for Sun Studio.
7872 # Supported since Solaris 2.6 (maybe 2.5.1?)
7873 case $wlarc in
7874 '')
7875 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7876 *)
7877 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' ;;
7878 esac ;;
7879 esac
7880 link_all_deplibs=yes
7881 ;;
7882
7883 sunos4*)
7884 if test "x$host_vendor" = xsequent; then
7885 # Use $CC to link under sequent, because it throws in some extra .o
7886 # files that make .init and .fini sections work.
7887 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7888 else
7889 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7890 fi
7891 hardcode_libdir_flag_spec='-L$libdir'
7892 hardcode_direct=yes
7893 hardcode_minus_L=yes
7894 hardcode_shlibpath_var=no
7895 ;;
7896
7897 sysv4)
7898 case $host_vendor in
7899 sni)
7900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7901 hardcode_direct=yes # is this really true???
7902 ;;
7903 siemens)
7904 ## LD is ld it makes a PLAMLIB
7905 ## CC just makes a GrossModule.
7906 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7907 reload_cmds='$CC -r -o $output$reload_objs'
7908 hardcode_direct=no
7909 ;;
7910 motorola)
7911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7912 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7913 ;;
7914 esac
7915 runpath_var='LD_RUN_PATH'
7916 hardcode_shlibpath_var=no
7917 ;;
7918
7919 sysv4.3*)
7920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7921 hardcode_shlibpath_var=no
7922 export_dynamic_flag_spec='-Bexport'
7923 ;;
7924
7925 sysv4*MP*)
7926 if test -d /usr/nec; then
7927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7928 hardcode_shlibpath_var=no
7929 runpath_var=LD_RUN_PATH
7930 hardcode_runpath_var=yes
7931 ld_shlibs=yes
7932 fi
7933 ;;
7934
7935 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7936 no_undefined_flag='${wl}-z,text'
7937 archive_cmds_need_lc=no
7938 hardcode_shlibpath_var=no
7939 runpath_var='LD_RUN_PATH'
7940
7941 if test "$GCC" = yes; then
7942 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7943 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7944 else
7945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7946 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7947 fi
7948 ;;
7949
7950 sysv5* | sco3.2v5* | sco5v6*)
7951 # Note: We can NOT use -z defs as we might desire, because we do not
7952 # link with -lc, and that would cause any symbols used from libc to
7953 # always be unresolved, which means just about no library would
7954 # ever link correctly. If we're not using GNU ld we use -z text
7955 # though, which does catch some bad symbols but isn't as heavy-handed
7956 # as -z defs.
7957 no_undefined_flag='${wl}-z,text'
7958 allow_undefined_flag='${wl}-z,nodefs'
7959 archive_cmds_need_lc=no
7960 hardcode_shlibpath_var=no
7961 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7962 hardcode_libdir_separator=':'
7963 link_all_deplibs=yes
7964 export_dynamic_flag_spec='${wl}-Bexport'
7965 runpath_var='LD_RUN_PATH'
7966
7967 if test "$GCC" = yes; then
7968 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7970 else
7971 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7973 fi
7974 ;;
7975
7976 uts4*)
7977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7978 hardcode_libdir_flag_spec='-L$libdir'
7979 hardcode_shlibpath_var=no
7980 ;;
7981
7982 *)
7983 ld_shlibs=no
7984 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007985 esac
7986 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007987
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007988echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7989echo "${ECHO_T}$ld_shlibs" >&6
7990test "$ld_shlibs" = no && can_build_shared=no
7991
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007992#
7993# Do we need to explicitly link libc?
7994#
7995case "x$archive_cmds_need_lc" in
7996x|xyes)
7997 # Assume -lc should be added
7998 archive_cmds_need_lc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007999
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008000 if test "$enable_shared" = yes && test "$GCC" = yes; then
8001 case $archive_cmds in
8002 *'~'*)
8003 # FIXME: we may have to deal with multi-command sequences.
8004 ;;
8005 '$CC '*)
8006 # Test whether the compiler implicitly links with -lc since on some
8007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8008 # to ld, don't add -lc before -lgcc.
8009 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8010echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8011 $rm conftest*
8012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8013
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } 2>conftest.err; then
8019 soname=conftest
8020 lib=conftest
8021 libobjs=conftest.$ac_objext
8022 deplibs=
8023 wl=$lt_prog_compiler_wl
8024 pic_flag=$lt_prog_compiler_pic
8025 compiler_flags=-v
8026 linker_flags=-v
8027 verstring=
8028 output_objdir=.
8029 libname=conftest
8030 lt_save_allow_undefined_flag=$allow_undefined_flag
8031 allow_undefined_flag=
8032 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8033 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }
8037 then
8038 archive_cmds_need_lc=no
8039 else
8040 archive_cmds_need_lc=yes
8041 fi
8042 allow_undefined_flag=$lt_save_allow_undefined_flag
8043 else
8044 cat conftest.err 1>&5
8045 fi
8046 $rm conftest*
8047 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8048echo "${ECHO_T}$archive_cmds_need_lc" >&6
8049 ;;
8050 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008051 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008052 ;;
8053esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008054
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008055echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8056echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8057library_names_spec=
8058libname_spec='lib$name'
8059soname_spec=
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008060shrext_cmds=".so"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008061postinstall_cmds=
8062postuninstall_cmds=
8063finish_cmds=
8064finish_eval=
8065shlibpath_var=
8066shlibpath_overrides_runpath=unknown
8067version_type=none
8068dynamic_linker="$host_os ld.so"
8069sys_lib_dlsearch_path_spec="/lib /usr/lib"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008070if test "$GCC" = yes; then
8071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8072 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8073 # if the path contains ";" then we assume it to be the separator
8074 # otherwise default to the standard path separator (i.e. ":") - it is
8075 # assumed that no part of a normal pathname contains ";" but that should
8076 # okay in the real world where ";" in dirpaths is itself problematic.
8077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8078 else
8079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8080 fi
8081else
8082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8083fi
8084need_lib_prefix=unknown
8085hardcode_into_libs=no
8086
8087# when you set need_version to no, make sure it does not cause -set_version
8088# flags to be left without arguments
8089need_version=unknown
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008090
8091case $host_os in
8092aix3*)
8093 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008095 shlibpath_var=LIBPATH
8096
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008097 # AIX 3 has no versioning support, so we append a major version to the name.
8098 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008099 ;;
8100
8101aix4* | aix5*)
8102 version_type=linux
8103 need_lib_prefix=no
8104 need_version=no
8105 hardcode_into_libs=yes
8106 if test "$host_cpu" = ia64; then
8107 # AIX 5 supports IA64
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008109 shlibpath_var=LD_LIBRARY_PATH
8110 else
8111 # With GCC up to 2.95.x, collect2 would create an import file
8112 # for dependence libraries. The import file would start with
8113 # the line `#! .'. This would cause the generated library to
8114 # depend on `.', always an invalid library. This was fixed in
8115 # development snapshots of GCC prior to 3.0.
8116 case $host_os in
8117 aix4 | aix4.[01] | aix4.[01].*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8119 echo ' yes '
8120 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8121 :
8122 else
8123 can_build_shared=no
8124 fi
8125 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008126 esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8128 # soname into executable. Probably we can add versioning support to
8129 # collect2, so additional links can be useful in future.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008130 if test "$aix_use_runtimelinking" = yes; then
8131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8132 # instead of lib<name>.a to let people know that these are not
8133 # typical AIX shared libraries.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008135 else
8136 # We preserve .a as extension for shared libraries through AIX4.2
8137 # and later when we are not doing run time linking.
8138 library_names_spec='${libname}${release}.a $libname.a'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008139 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008140 fi
8141 shlibpath_var=LIBPATH
8142 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008143 ;;
8144
8145amigaos*)
8146 library_names_spec='$libname.ixlibrary $libname.a'
8147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008148 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 -06008149 ;;
8150
8151beos*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008152 library_names_spec='${libname}${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008153 dynamic_linker="$host_os ld.so"
8154 shlibpath_var=LIBRARY_PATH
8155 ;;
8156
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008157bsdi[45]*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008158 version_type=linux
8159 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8163 shlibpath_var=LD_LIBRARY_PATH
8164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008166 # the default ld.so.conf also contains /usr/contrib/lib and
8167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8168 # libtool to hard-code these into programs
8169 ;;
8170
8171cygwin* | mingw* | pw32*)
8172 version_type=windows
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008173 shrext_cmds=".dll"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008174 need_version=no
8175 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008176
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008177 case $GCC,$host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008178 yes,cygwin* | yes,mingw* | yes,pw32*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008179 library_names_spec='$libname.dll.a'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8181 postinstall_cmds='base_file=`basename \${file}`~
8182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008183 dldir=$destdir/`dirname \$dlpath`~
8184 test -d \$dldir || mkdir -p \$dldir~
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008185 $install_prog $dir/$dlname \$dldir/$dlname~
8186 chmod a+x \$dldir/$dlname'
8187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008188 dlpath=$dir/\$dldll~
8189 $rm \$dlpath'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008190 shlibpath_overrides_runpath=yes
8191
8192 case $host_os in
8193 cygwin*)
8194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8195 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8196 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8197 ;;
8198 mingw*)
8199 # MinGW DLLs use traditional 'lib' prefix
8200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8202 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8203 # It is most probably a Windows format PATH printed by
8204 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8205 # path with ; separators, and with drive letters. We can handle the
8206 # drive letters (cygwin fileutils understands them), so leave them,
8207 # especially as we might pass files found there to a mingw objdump,
8208 # which wouldn't understand a cygwinified path. Ahh.
8209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8210 else
8211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8212 fi
8213 ;;
8214 pw32*)
8215 # pw32 DLLs use 'pw' prefix rather than 'lib'
8216 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8217 ;;
8218 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008219 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008220
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008221 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008222 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008223 ;;
8224 esac
8225 dynamic_linker='Win32 ld.exe'
8226 # FIXME: first we should search . and the directory the executable is in
8227 shlibpath_var=PATH
8228 ;;
8229
8230darwin* | rhapsody*)
8231 dynamic_linker="$host_os dyld"
8232 version_type=darwin
8233 need_lib_prefix=no
8234 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008235 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8236 soname_spec='${libname}${release}${major}$shared_ext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008237 shlibpath_overrides_runpath=yes
8238 shlibpath_var=DYLD_LIBRARY_PATH
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008239 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8240 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8241 if test "$GCC" = yes; then
8242 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"`
8243 else
8244 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8245 fi
8246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8247 ;;
8248
8249dgux*)
8250 version_type=linux
8251 need_lib_prefix=no
8252 need_version=no
8253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8254 soname_spec='${libname}${release}${shared_ext}$major'
8255 shlibpath_var=LD_LIBRARY_PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008256 ;;
8257
8258freebsd1*)
8259 dynamic_linker=no
8260 ;;
8261
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008262kfreebsd*-gnu)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008263 version_type=linux
8264 need_lib_prefix=no
8265 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8267 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008268 shlibpath_var=LD_LIBRARY_PATH
8269 shlibpath_overrides_runpath=no
8270 hardcode_into_libs=yes
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008271 dynamic_linker='GNU ld.so'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008272 ;;
8273
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008274freebsd* | dragonfly*)
8275 # DragonFly does not have aout. When/if they implement a new
8276 # versioning mechanism, adjust this.
8277 if test -x /usr/bin/objformat; then
8278 objformat=`/usr/bin/objformat`
8279 else
8280 case $host_os in
8281 freebsd[123]*) objformat=aout ;;
8282 *) objformat=elf ;;
8283 esac
8284 fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06008285 version_type=freebsd-$objformat
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008286 case $version_type in
8287 freebsd-elf*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008289 need_version=no
8290 need_lib_prefix=no
8291 ;;
8292 freebsd-*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008294 need_version=yes
8295 ;;
8296 esac
8297 shlibpath_var=LD_LIBRARY_PATH
8298 case $host_os in
8299 freebsd2*)
8300 shlibpath_overrides_runpath=yes
8301 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008302 freebsd3.[01]* | freebsdelf3.[01]*)
8303 shlibpath_overrides_runpath=yes
8304 hardcode_into_libs=yes
8305 ;;
8306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008308 shlibpath_overrides_runpath=no
8309 hardcode_into_libs=yes
8310 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008311 freebsd*) # from 4.6 on
8312 shlibpath_overrides_runpath=yes
8313 hardcode_into_libs=yes
8314 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008315 esac
8316 ;;
8317
8318gnu*)
8319 version_type=linux
8320 need_lib_prefix=no
8321 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8323 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008324 shlibpath_var=LD_LIBRARY_PATH
8325 hardcode_into_libs=yes
8326 ;;
8327
8328hpux9* | hpux10* | hpux11*)
8329 # Give a soname corresponding to the major version so that dld.sl refuses to
8330 # link against other versions.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008331 version_type=sunos
8332 need_lib_prefix=no
8333 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008334 case $host_cpu in
8335 ia64*)
8336 shrext_cmds='.so'
8337 hardcode_into_libs=yes
8338 dynamic_linker="$host_os dld.so"
8339 shlibpath_var=LD_LIBRARY_PATH
8340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8342 soname_spec='${libname}${release}${shared_ext}$major'
8343 if test "X$HPUX_IA64_MODE" = X32; then
8344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8345 else
8346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8347 fi
8348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8349 ;;
8350 hppa*64*)
8351 shrext_cmds='.sl'
8352 hardcode_into_libs=yes
8353 dynamic_linker="$host_os dld.sl"
8354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8357 soname_spec='${libname}${release}${shared_ext}$major'
8358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8360 ;;
8361 *)
8362 shrext_cmds='.sl'
8363 dynamic_linker="$host_os dld.sl"
8364 shlibpath_var=SHLIB_PATH
8365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8367 soname_spec='${libname}${release}${shared_ext}$major'
8368 ;;
8369 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008370 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8371 postinstall_cmds='chmod 555 $lib'
8372 ;;
8373
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008374interix3*)
8375 version_type=linux
8376 need_lib_prefix=no
8377 need_version=no
8378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8379 soname_spec='${libname}${release}${shared_ext}$major'
8380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8381 shlibpath_var=LD_LIBRARY_PATH
8382 shlibpath_overrides_runpath=no
8383 hardcode_into_libs=yes
8384 ;;
8385
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008386irix5* | irix6* | nonstopux*)
8387 case $host_os in
8388 nonstopux*) version_type=nonstopux ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008389 *)
8390 if test "$lt_cv_prog_gnu_ld" = yes; then
8391 version_type=linux
8392 else
8393 version_type=irix
8394 fi ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008395 esac
8396 need_lib_prefix=no
8397 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008398 soname_spec='${libname}${release}${shared_ext}$major'
8399 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 -06008400 case $host_os in
8401 irix5* | nonstopux*)
8402 libsuff= shlibsuff=
8403 ;;
8404 *)
8405 case $LD in # libtool.m4 will add one of these switches to LD
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8407 libsuff= shlibsuff= libmagic=32-bit;;
8408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8409 libsuff=32 shlibsuff=N32 libmagic=N32;;
8410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008412 *) libsuff= shlibsuff= libmagic=never-match;;
8413 esac
8414 ;;
8415 esac
8416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8417 shlibpath_overrides_runpath=no
8418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008420 hardcode_into_libs=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008421 ;;
8422
8423# No shared lib support for Linux oldld, aout, or coff.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008424linux*oldld* | linux*aout* | linux*coff*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008425 dynamic_linker=no
8426 ;;
8427
8428# This must be Linux ELF.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008429linux*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008430 version_type=linux
8431 need_lib_prefix=no
8432 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8434 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8436 shlibpath_var=LD_LIBRARY_PATH
8437 shlibpath_overrides_runpath=no
8438 # This implies no fast_install, which is unacceptable.
8439 # Some rework will be needed to allow for fast_install
8440 # before this can be enabled.
8441 hardcode_into_libs=yes
8442
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008443 # Append ld.so.conf contents to the search path
8444 if test -f /etc/ld.so.conf; then
8445 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' ' '`
8446 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8447 fi
8448
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008449 # We used to test for /lib/ld.so.1 and disable shared libraries on
8450 # powerpc, because MkLinux only supported shared libraries with the
8451 # GNU dynamic linker. Since this was broken with cross compilers,
8452 # most powerpc-linux boxes support dynamic linking these days and
8453 # people can always --disable-shared, the test was removed, and we
8454 # assume the GNU/Linux dynamic linker is in use.
8455 dynamic_linker='GNU/Linux ld.so'
8456 ;;
8457
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008458knetbsd*-gnu)
8459 version_type=linux
8460 need_lib_prefix=no
8461 need_version=no
8462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8463 soname_spec='${libname}${release}${shared_ext}$major'
8464 shlibpath_var=LD_LIBRARY_PATH
8465 shlibpath_overrides_runpath=no
8466 hardcode_into_libs=yes
8467 dynamic_linker='GNU ld.so'
8468 ;;
8469
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008470netbsd*)
8471 version_type=sunos
8472 need_lib_prefix=no
8473 need_version=no
8474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8477 dynamic_linker='NetBSD (a.out) ld.so'
8478 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8480 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008481 dynamic_linker='NetBSD ld.elf_so'
8482 fi
8483 shlibpath_var=LD_LIBRARY_PATH
8484 shlibpath_overrides_runpath=yes
8485 hardcode_into_libs=yes
8486 ;;
8487
8488newsos6)
8489 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8491 shlibpath_var=LD_LIBRARY_PATH
8492 shlibpath_overrides_runpath=yes
8493 ;;
8494
8495nto-qnx*)
8496 version_type=linux
8497 need_lib_prefix=no
8498 need_version=no
8499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8500 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008501 shlibpath_var=LD_LIBRARY_PATH
8502 shlibpath_overrides_runpath=yes
8503 ;;
8504
8505openbsd*)
8506 version_type=sunos
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008507 sys_lib_dlsearch_path_spec="/usr/lib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008508 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008509 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8510 case $host_os in
8511 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8512 *) need_version=no ;;
8513 esac
8514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8516 shlibpath_var=LD_LIBRARY_PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008517 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 -06008518 case $host_os in
8519 openbsd2.[89] | openbsd2.[89].*)
8520 shlibpath_overrides_runpath=no
8521 ;;
8522 *)
8523 shlibpath_overrides_runpath=yes
8524 ;;
8525 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008526 else
8527 shlibpath_overrides_runpath=yes
8528 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008529 ;;
8530
8531os2*)
8532 libname_spec='$name'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008533 shrext_cmds=".dll"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008534 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008535 library_names_spec='$libname${shared_ext} $libname.a'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008536 dynamic_linker='OS/2 ld.exe'
8537 shlibpath_var=LIBPATH
8538 ;;
8539
8540osf3* | osf4* | osf5*)
8541 version_type=osf
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008542 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008543 need_version=no
8544 soname_spec='${libname}${release}${shared_ext}$major'
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008546 shlibpath_var=LD_LIBRARY_PATH
8547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008549 ;;
8550
8551solaris*)
8552 version_type=linux
8553 need_lib_prefix=no
8554 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008557 shlibpath_var=LD_LIBRARY_PATH
8558 shlibpath_overrides_runpath=yes
8559 hardcode_into_libs=yes
8560 # ldd complains unless libraries are executable
8561 postinstall_cmds='chmod +x $lib'
8562 ;;
8563
8564sunos4*)
8565 version_type=sunos
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008567 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 shlibpath_overrides_runpath=yes
8570 if test "$with_gnu_ld" = yes; then
8571 need_lib_prefix=no
8572 fi
8573 need_version=yes
8574 ;;
8575
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008576sysv4 | sysv4.3*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008577 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008580 shlibpath_var=LD_LIBRARY_PATH
8581 case $host_vendor in
8582 sni)
8583 shlibpath_overrides_runpath=no
8584 need_lib_prefix=no
8585 export_dynamic_flag_spec='${wl}-Blargedynsym'
8586 runpath_var=LD_RUN_PATH
8587 ;;
8588 siemens)
8589 need_lib_prefix=no
8590 ;;
8591 motorola)
8592 need_lib_prefix=no
8593 need_version=no
8594 shlibpath_overrides_runpath=no
8595 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8596 ;;
8597 esac
8598 ;;
8599
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008600sysv4*MP*)
8601 if test -d /usr/nec ;then
8602 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008603 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8604 soname_spec='$libname${shared_ext}.$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008605 shlibpath_var=LD_LIBRARY_PATH
8606 fi
8607 ;;
8608
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008609sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8610 version_type=freebsd-elf
8611 need_lib_prefix=no
8612 need_version=no
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8614 soname_spec='${libname}${release}${shared_ext}$major'
8615 shlibpath_var=LD_LIBRARY_PATH
8616 hardcode_into_libs=yes
8617 if test "$with_gnu_ld" = yes; then
8618 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8619 shlibpath_overrides_runpath=no
8620 else
8621 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8622 shlibpath_overrides_runpath=yes
8623 case $host_os in
8624 sco3.2v5*)
8625 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8626 ;;
8627 esac
8628 fi
8629 sys_lib_dlsearch_path_spec='/usr/lib'
8630 ;;
8631
8632uts4*)
8633 version_type=linux
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635 soname_spec='${libname}${release}${shared_ext}$major'
8636 shlibpath_var=LD_LIBRARY_PATH
8637 ;;
8638
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008639*)
8640 dynamic_linker=no
8641 ;;
8642esac
8643echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8644echo "${ECHO_T}$dynamic_linker" >&6
8645test "$dynamic_linker" = no && can_build_shared=no
8646
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008647variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8648if test "$GCC" = yes; then
8649 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8650fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008651
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008652echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8653echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8654hardcode_action=
8655if test -n "$hardcode_libdir_flag_spec" || \
8656 test -n "$runpath_var" || \
8657 test "X$hardcode_automatic" = "Xyes" ; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008658
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008659 # We can hardcode non-existant directories.
8660 if test "$hardcode_direct" != no &&
8661 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8662 # have to relink, otherwise we might link with an installed library
8663 # when we should be linking with a yet-to-be-installed one
8664 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8665 test "$hardcode_minus_L" != no; then
8666 # Linking always hardcodes the temporary library directory.
8667 hardcode_action=relink
8668 else
8669 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8670 hardcode_action=immediate
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008671 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008672else
8673 # We cannot hardcode anything, or else we can only hardcode existing
8674 # directories.
8675 hardcode_action=unsupported
8676fi
8677echo "$as_me:$LINENO: result: $hardcode_action" >&5
8678echo "${ECHO_T}$hardcode_action" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008679
8680if test "$hardcode_action" = relink; then
8681 # Fast installation is not supported
8682 enable_fast_install=no
8683elif test "$shlibpath_overrides_runpath" = yes ||
8684 test "$enable_shared" = no; then
8685 # Fast installation is not necessary
8686 enable_fast_install=needless
8687fi
8688
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008689striplib=
8690old_striplib=
8691echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8692echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8693if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8694 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8695 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8696 echo "$as_me:$LINENO: result: yes" >&5
8697echo "${ECHO_T}yes" >&6
8698else
8699# FIXME - insert some real tests, host_os isn't really good enough
8700 case $host_os in
8701 darwin*)
8702 if test -n "$STRIP" ; then
8703 striplib="$STRIP -x"
8704 echo "$as_me:$LINENO: result: yes" >&5
8705echo "${ECHO_T}yes" >&6
8706 else
8707 echo "$as_me:$LINENO: result: no" >&5
8708echo "${ECHO_T}no" >&6
8709fi
8710 ;;
8711 *)
8712 echo "$as_me:$LINENO: result: no" >&5
8713echo "${ECHO_T}no" >&6
8714 ;;
8715 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008716fi
8717
8718if test "x$enable_dlopen" != xyes; then
8719 enable_dlopen=unknown
8720 enable_dlopen_self=unknown
8721 enable_dlopen_self_static=unknown
8722else
8723 lt_cv_dlopen=no
8724 lt_cv_dlopen_libs=
8725
8726 case $host_os in
8727 beos*)
8728 lt_cv_dlopen="load_add_on"
8729 lt_cv_dlopen_libs=
8730 lt_cv_dlopen_self=yes
8731 ;;
8732
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008733 mingw* | pw32*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008734 lt_cv_dlopen="LoadLibrary"
8735 lt_cv_dlopen_libs=
8736 ;;
8737
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008738 cygwin*)
8739 lt_cv_dlopen="dlopen"
8740 lt_cv_dlopen_libs=
8741 ;;
8742
8743 darwin*)
8744 # if libdl is installed we need to link against it
8745 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8746echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8747if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749else
8750 ac_check_lib_save_LIBS=$LIBS
8751LIBS="-ldl $LIBS"
8752cat >conftest.$ac_ext <<_ACEOF
8753/* confdefs.h. */
8754_ACEOF
8755cat confdefs.h >>conftest.$ac_ext
8756cat >>conftest.$ac_ext <<_ACEOF
8757/* end confdefs.h. */
8758
8759/* Override any gcc2 internal prototype to avoid an error. */
8760#ifdef __cplusplus
8761extern "C"
8762#endif
8763/* We use char because int might match the return type of a gcc2
8764 builtin and then its argument prototype would still apply. */
8765char dlopen ();
8766int
8767main ()
8768{
8769dlopen ();
8770 ;
8771 return 0;
8772}
8773_ACEOF
8774rm -f conftest.$ac_objext conftest$ac_exeext
8775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try='test -z "$ac_c_werror_flag"
8784 || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest$ac_exeext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 (eval $ac_try) 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8796 ac_cv_lib_dl_dlopen=yes
8797else
8798 echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801ac_cv_lib_dl_dlopen=no
8802fi
8803rm -f conftest.err conftest.$ac_objext \
8804 conftest$ac_exeext conftest.$ac_ext
8805LIBS=$ac_check_lib_save_LIBS
8806fi
8807echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8808echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8809if test $ac_cv_lib_dl_dlopen = yes; then
8810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8811else
8812
8813 lt_cv_dlopen="dyld"
8814 lt_cv_dlopen_libs=
8815 lt_cv_dlopen_self=yes
8816
8817fi
8818
8819 ;;
8820
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008821 *)
8822 echo "$as_me:$LINENO: checking for shl_load" >&5
8823echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8824if test "${ac_cv_func_shl_load+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826else
8827 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008828/* confdefs.h. */
8829_ACEOF
8830cat confdefs.h >>conftest.$ac_ext
8831cat >>conftest.$ac_ext <<_ACEOF
8832/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008833/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8835#define shl_load innocuous_shl_load
8836
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008837/* System header to define __stub macros and hopefully few prototypes,
8838 which can conflict with char shl_load (); below.
8839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8840 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008841
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008842#ifdef __STDC__
8843# include <limits.h>
8844#else
8845# include <assert.h>
8846#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008847
8848#undef shl_load
8849
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008850/* Override any gcc2 internal prototype to avoid an error. */
8851#ifdef __cplusplus
8852extern "C"
8853{
8854#endif
8855/* We use char because int might match the return type of a gcc2
8856 builtin and then its argument prototype would still apply. */
8857char shl_load ();
8858/* The GNU C library defines this for functions which it implements
8859 to always fail with ENOSYS. Some functions are actually named
8860 something starting with __ and the normal name is an alias. */
8861#if defined (__stub_shl_load) || defined (__stub___shl_load)
8862choke me
8863#else
8864char (*f) () = shl_load;
8865#endif
8866#ifdef __cplusplus
8867}
8868#endif
8869
8870int
8871main ()
8872{
8873return f != shl_load;
8874 ;
8875 return 0;
8876}
8877_ACEOF
8878rm -f conftest.$ac_objext conftest$ac_exeext
8879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008880 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008881 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008887 { ac_try='test -z "$ac_c_werror_flag"
8888 || test ! -s conftest.err'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; } &&
8894 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 (eval $ac_try) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 ac_cv_func_shl_load=yes
8901else
8902 echo "$as_me: failed program was:" >&5
8903sed 's/^/| /' conftest.$ac_ext >&5
8904
8905ac_cv_func_shl_load=no
8906fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008907rm -f conftest.err conftest.$ac_objext \
8908 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008909fi
8910echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8911echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8912if test $ac_cv_func_shl_load = yes; then
8913 lt_cv_dlopen="shl_load"
8914else
8915 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8916echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8917if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919else
8920 ac_check_lib_save_LIBS=$LIBS
8921LIBS="-ldld $LIBS"
8922cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008923/* confdefs.h. */
8924_ACEOF
8925cat confdefs.h >>conftest.$ac_ext
8926cat >>conftest.$ac_ext <<_ACEOF
8927/* end confdefs.h. */
8928
8929/* Override any gcc2 internal prototype to avoid an error. */
8930#ifdef __cplusplus
8931extern "C"
8932#endif
8933/* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8935char shl_load ();
8936int
8937main ()
8938{
8939shl_load ();
8940 ;
8941 return 0;
8942}
8943_ACEOF
8944rm -f conftest.$ac_objext conftest$ac_exeext
8945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008946 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008947 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008953 { ac_try='test -z "$ac_c_werror_flag"
8954 || test ! -s conftest.err'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_cv_lib_dld_shl_load=yes
8967else
8968 echo "$as_me: failed program was:" >&5
8969sed 's/^/| /' conftest.$ac_ext >&5
8970
8971ac_cv_lib_dld_shl_load=no
8972fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008973rm -f conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008975LIBS=$ac_check_lib_save_LIBS
8976fi
8977echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8978echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8979if test $ac_cv_lib_dld_shl_load = yes; then
8980 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8981else
8982 echo "$as_me:$LINENO: checking for dlopen" >&5
8983echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8984if test "${ac_cv_func_dlopen+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986else
8987 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008988/* confdefs.h. */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008993/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8995#define dlopen innocuous_dlopen
8996
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008997/* System header to define __stub macros and hopefully few prototypes,
8998 which can conflict with char dlopen (); below.
8999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9000 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009001
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009002#ifdef __STDC__
9003# include <limits.h>
9004#else
9005# include <assert.h>
9006#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009007
9008#undef dlopen
9009
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009010/* Override any gcc2 internal prototype to avoid an error. */
9011#ifdef __cplusplus
9012extern "C"
9013{
9014#endif
9015/* We use char because int might match the return type of a gcc2
9016 builtin and then its argument prototype would still apply. */
9017char dlopen ();
9018/* The GNU C library defines this for functions which it implements
9019 to always fail with ENOSYS. Some functions are actually named
9020 something starting with __ and the normal name is an alias. */
9021#if defined (__stub_dlopen) || defined (__stub___dlopen)
9022choke me
9023#else
9024char (*f) () = dlopen;
9025#endif
9026#ifdef __cplusplus
9027}
9028#endif
9029
9030int
9031main ()
9032{
9033return f != dlopen;
9034 ;
9035 return 0;
9036}
9037_ACEOF
9038rm -f conftest.$ac_objext conftest$ac_exeext
9039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009040 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009041 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009047 { ac_try='test -z "$ac_c_werror_flag"
9048 || test ! -s conftest.err'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; } &&
9054 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9060 ac_cv_func_dlopen=yes
9061else
9062 echo "$as_me: failed program was:" >&5
9063sed 's/^/| /' conftest.$ac_ext >&5
9064
9065ac_cv_func_dlopen=no
9066fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009067rm -f conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009069fi
9070echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9071echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9072if test $ac_cv_func_dlopen = yes; then
9073 lt_cv_dlopen="dlopen"
9074else
9075 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9076echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9077if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079else
9080 ac_check_lib_save_LIBS=$LIBS
9081LIBS="-ldl $LIBS"
9082cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009083/* confdefs.h. */
9084_ACEOF
9085cat confdefs.h >>conftest.$ac_ext
9086cat >>conftest.$ac_ext <<_ACEOF
9087/* end confdefs.h. */
9088
9089/* Override any gcc2 internal prototype to avoid an error. */
9090#ifdef __cplusplus
9091extern "C"
9092#endif
9093/* We use char because int might match the return type of a gcc2
9094 builtin and then its argument prototype would still apply. */
9095char dlopen ();
9096int
9097main ()
9098{
9099dlopen ();
9100 ;
9101 return 0;
9102}
9103_ACEOF
9104rm -f conftest.$ac_objext conftest$ac_exeext
9105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009106 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009107 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009113 { ac_try='test -z "$ac_c_werror_flag"
9114 || test ! -s conftest.err'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_lib_dl_dlopen=yes
9127else
9128 echo "$as_me: failed program was:" >&5
9129sed 's/^/| /' conftest.$ac_ext >&5
9130
9131ac_cv_lib_dl_dlopen=no
9132fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009133rm -f conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009135LIBS=$ac_check_lib_save_LIBS
9136fi
9137echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9138echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9139if test $ac_cv_lib_dl_dlopen = yes; then
9140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9141else
9142 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9143echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9144if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146else
9147 ac_check_lib_save_LIBS=$LIBS
9148LIBS="-lsvld $LIBS"
9149cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009150/* confdefs.h. */
9151_ACEOF
9152cat confdefs.h >>conftest.$ac_ext
9153cat >>conftest.$ac_ext <<_ACEOF
9154/* end confdefs.h. */
9155
9156/* Override any gcc2 internal prototype to avoid an error. */
9157#ifdef __cplusplus
9158extern "C"
9159#endif
9160/* We use char because int might match the return type of a gcc2
9161 builtin and then its argument prototype would still apply. */
9162char dlopen ();
9163int
9164main ()
9165{
9166dlopen ();
9167 ;
9168 return 0;
9169}
9170_ACEOF
9171rm -f conftest.$ac_objext conftest$ac_exeext
9172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009173 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009174 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009180 { ac_try='test -z "$ac_c_werror_flag"
9181 || test ! -s conftest.err'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 (eval $ac_try) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_cv_lib_svld_dlopen=yes
9194else
9195 echo "$as_me: failed program was:" >&5
9196sed 's/^/| /' conftest.$ac_ext >&5
9197
9198ac_cv_lib_svld_dlopen=no
9199fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009200rm -f conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009202LIBS=$ac_check_lib_save_LIBS
9203fi
9204echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9205echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9206if test $ac_cv_lib_svld_dlopen = yes; then
9207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9208else
9209 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9210echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9211if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214 ac_check_lib_save_LIBS=$LIBS
9215LIBS="-ldld $LIBS"
9216cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009217/* confdefs.h. */
9218_ACEOF
9219cat confdefs.h >>conftest.$ac_ext
9220cat >>conftest.$ac_ext <<_ACEOF
9221/* end confdefs.h. */
9222
9223/* Override any gcc2 internal prototype to avoid an error. */
9224#ifdef __cplusplus
9225extern "C"
9226#endif
9227/* We use char because int might match the return type of a gcc2
9228 builtin and then its argument prototype would still apply. */
9229char dld_link ();
9230int
9231main ()
9232{
9233dld_link ();
9234 ;
9235 return 0;
9236}
9237_ACEOF
9238rm -f conftest.$ac_objext conftest$ac_exeext
9239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009240 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009241 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009247 { ac_try='test -z "$ac_c_werror_flag"
9248 || test ! -s conftest.err'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; } &&
9254 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_lib_dld_dld_link=yes
9261else
9262 echo "$as_me: failed program was:" >&5
9263sed 's/^/| /' conftest.$ac_ext >&5
9264
9265ac_cv_lib_dld_dld_link=no
9266fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009267rm -f conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009269LIBS=$ac_check_lib_save_LIBS
9270fi
9271echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9272echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9273if test $ac_cv_lib_dld_dld_link = yes; then
9274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9275fi
9276
9277
9278fi
9279
9280
9281fi
9282
9283
9284fi
9285
9286
9287fi
9288
9289
9290fi
9291
9292 ;;
9293 esac
9294
9295 if test "x$lt_cv_dlopen" != xno; then
9296 enable_dlopen=yes
9297 else
9298 enable_dlopen=no
9299 fi
9300
9301 case $lt_cv_dlopen in
9302 dlopen)
9303 save_CPPFLAGS="$CPPFLAGS"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009304 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009305
9306 save_LDFLAGS="$LDFLAGS"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009307 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009308
9309 save_LIBS="$LIBS"
9310 LIBS="$lt_cv_dlopen_libs $LIBS"
9311
9312 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9313echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9314if test "${lt_cv_dlopen_self+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9316else
9317 if test "$cross_compiling" = yes; then :
9318 lt_cv_dlopen_self=cross
9319else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009321 lt_status=$lt_dlunknown
9322 cat > conftest.$ac_ext <<EOF
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06009323#line 9323 "configure"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009324#include "confdefs.h"
9325
9326#if HAVE_DLFCN_H
9327#include <dlfcn.h>
9328#endif
9329
9330#include <stdio.h>
9331
9332#ifdef RTLD_GLOBAL
9333# define LT_DLGLOBAL RTLD_GLOBAL
9334#else
9335# ifdef DL_GLOBAL
9336# define LT_DLGLOBAL DL_GLOBAL
9337# else
9338# define LT_DLGLOBAL 0
9339# endif
9340#endif
9341
9342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9343 find out it does not work in some platform. */
9344#ifndef LT_DLLAZY_OR_NOW
9345# ifdef RTLD_LAZY
9346# define LT_DLLAZY_OR_NOW RTLD_LAZY
9347# else
9348# ifdef DL_LAZY
9349# define LT_DLLAZY_OR_NOW DL_LAZY
9350# else
9351# ifdef RTLD_NOW
9352# define LT_DLLAZY_OR_NOW RTLD_NOW
9353# else
9354# ifdef DL_NOW
9355# define LT_DLLAZY_OR_NOW DL_NOW
9356# else
9357# define LT_DLLAZY_OR_NOW 0
9358# endif
9359# endif
9360# endif
9361# endif
9362#endif
9363
9364#ifdef __cplusplus
9365extern "C" void exit (int);
9366#endif
9367
9368void fnord() { int i=42;}
9369int main ()
9370{
9371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9372 int status = $lt_dlunknown;
9373
9374 if (self)
9375 {
9376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9377 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9378 /* dlclose (self); */
9379 }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009380 else
9381 puts (dlerror ());
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009382
9383 exit (status);
9384}
9385EOF
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387 (eval $ac_link) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009391 (./conftest; exit; ) >&5 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009392 lt_status=$?
9393 case x$lt_status in
9394 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9395 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009396 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009397 esac
9398 else :
9399 # compilation failed
9400 lt_cv_dlopen_self=no
9401 fi
9402fi
9403rm -fr conftest*
9404
9405
9406fi
9407echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9408echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9409
9410 if test "x$lt_cv_dlopen_self" = xyes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009412 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9413echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9414if test "${lt_cv_dlopen_self_static+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416else
9417 if test "$cross_compiling" = yes; then :
9418 lt_cv_dlopen_self_static=cross
9419else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009421 lt_status=$lt_dlunknown
9422 cat > conftest.$ac_ext <<EOF
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06009423#line 9423 "configure"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009424#include "confdefs.h"
9425
9426#if HAVE_DLFCN_H
9427#include <dlfcn.h>
9428#endif
9429
9430#include <stdio.h>
9431
9432#ifdef RTLD_GLOBAL
9433# define LT_DLGLOBAL RTLD_GLOBAL
9434#else
9435# ifdef DL_GLOBAL
9436# define LT_DLGLOBAL DL_GLOBAL
9437# else
9438# define LT_DLGLOBAL 0
9439# endif
9440#endif
9441
9442/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9443 find out it does not work in some platform. */
9444#ifndef LT_DLLAZY_OR_NOW
9445# ifdef RTLD_LAZY
9446# define LT_DLLAZY_OR_NOW RTLD_LAZY
9447# else
9448# ifdef DL_LAZY
9449# define LT_DLLAZY_OR_NOW DL_LAZY
9450# else
9451# ifdef RTLD_NOW
9452# define LT_DLLAZY_OR_NOW RTLD_NOW
9453# else
9454# ifdef DL_NOW
9455# define LT_DLLAZY_OR_NOW DL_NOW
9456# else
9457# define LT_DLLAZY_OR_NOW 0
9458# endif
9459# endif
9460# endif
9461# endif
9462#endif
9463
9464#ifdef __cplusplus
9465extern "C" void exit (int);
9466#endif
9467
9468void fnord() { int i=42;}
9469int main ()
9470{
9471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9472 int status = $lt_dlunknown;
9473
9474 if (self)
9475 {
9476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9478 /* dlclose (self); */
9479 }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009480 else
9481 puts (dlerror ());
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009482
9483 exit (status);
9484}
9485EOF
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>&5
9488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009491 (./conftest; exit; ) >&5 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009492 lt_status=$?
9493 case x$lt_status in
9494 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9495 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009496 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009497 esac
9498 else :
9499 # compilation failed
9500 lt_cv_dlopen_self_static=no
9501 fi
9502fi
9503rm -fr conftest*
9504
9505
9506fi
9507echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9508echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9509 fi
9510
9511 CPPFLAGS="$save_CPPFLAGS"
9512 LDFLAGS="$save_LDFLAGS"
9513 LIBS="$save_LIBS"
9514 ;;
9515 esac
9516
9517 case $lt_cv_dlopen_self in
9518 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9519 *) enable_dlopen_self=unknown ;;
9520 esac
9521
9522 case $lt_cv_dlopen_self_static in
9523 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9524 *) enable_dlopen_self_static=unknown ;;
9525 esac
9526fi
9527
9528
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009529# Report which library types will actually be built
9530echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9531echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9532echo "$as_me:$LINENO: result: $can_build_shared" >&5
9533echo "${ECHO_T}$can_build_shared" >&6
9534
9535echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9536echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9537test "$can_build_shared" = "no" && enable_shared=no
9538
9539# On AIX, shared libraries and static libraries use the same namespace, and
9540# are all built from PIC.
9541case $host_os in
9542aix3*)
9543 test "$enable_shared" = yes && enable_static=no
9544 if test -n "$RANLIB"; then
9545 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9546 postinstall_cmds='$RANLIB $lib'
9547 fi
9548 ;;
9549
9550aix4* | aix5*)
9551 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9552 test "$enable_shared" = yes && enable_static=no
9553 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009554 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009555esac
9556echo "$as_me:$LINENO: result: $enable_shared" >&5
9557echo "${ECHO_T}$enable_shared" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009558
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009559echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9560echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9561# Make sure either enable_shared or enable_static is yes.
9562test "$enable_shared" = yes || enable_static=yes
9563echo "$as_me:$LINENO: result: $enable_static" >&5
9564echo "${ECHO_T}$enable_static" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009565
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009566# The else clause should only fire when bootstrapping the
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009567# libtool distribution, otherwise you forgot to ship ltmain.sh
9568# with your package, and you will get complaints that there are
9569# no rules to generate ltmain.sh.
9570if test -f "$ltmain"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009571 # See if we are running on zsh, and set the options which allow our commands through
9572 # without removal of \ escapes.
9573 if test -n "${ZSH_VERSION+set}" ; then
9574 setopt NO_GLOB_SUBST
9575 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009576 # Now quote all the things that may contain metacharacters while being
9577 # careful not to overquote the AC_SUBSTed values. We take copies of the
9578 # variables and quote the copies for generation of the libtool script.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009579 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9580 SED SHELL STRIP \
9581 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9582 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9583 deplibs_check_method reload_flag reload_cmds need_locks \
9584 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9585 lt_cv_sys_global_symbol_to_c_name_address \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009586 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009587 old_postinstall_cmds old_postuninstall_cmds \
9588 compiler \
9589 CC \
9590 LD \
9591 lt_prog_compiler_wl \
9592 lt_prog_compiler_pic \
9593 lt_prog_compiler_static \
9594 lt_prog_compiler_no_builtin_flag \
9595 export_dynamic_flag_spec \
9596 thread_safe_flag_spec \
9597 whole_archive_flag_spec \
9598 enable_shared_with_static_runtimes \
9599 old_archive_cmds \
9600 old_archive_from_new_cmds \
9601 predep_objects \
9602 postdep_objects \
9603 predeps \
9604 postdeps \
9605 compiler_lib_search_path \
9606 archive_cmds \
9607 archive_expsym_cmds \
9608 postinstall_cmds \
9609 postuninstall_cmds \
9610 old_archive_from_expsyms_cmds \
9611 allow_undefined_flag \
9612 no_undefined_flag \
9613 export_symbols_cmds \
9614 hardcode_libdir_flag_spec \
9615 hardcode_libdir_flag_spec_ld \
9616 hardcode_libdir_separator \
9617 hardcode_automatic \
9618 module_cmds \
9619 module_expsym_cmds \
9620 lt_cv_prog_compiler_c_o \
9621 exclude_expsyms \
9622 include_expsyms; do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009623
9624 case $var in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009625 old_archive_cmds | \
9626 old_archive_from_new_cmds | \
9627 archive_cmds | \
9628 archive_expsym_cmds | \
9629 module_cmds | \
9630 module_expsym_cmds | \
9631 old_archive_from_expsyms_cmds | \
9632 export_symbols_cmds | \
9633 extract_expsyms_cmds | reload_cmds | finish_cmds | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009634 postinstall_cmds | postuninstall_cmds | \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009635 old_postinstall_cmds | old_postuninstall_cmds | \
9636 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009637 # Double-quote double-evaled strings.
9638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9639 ;;
9640 *)
9641 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9642 ;;
9643 esac
9644 done
9645
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009646 case $lt_echo in
9647 *'\$0 --fallback-echo"')
9648 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9649 ;;
9650 esac
9651
9652cfgfile="${ofile}T"
9653 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9654 $rm -f "$cfgfile"
9655 { echo "$as_me:$LINENO: creating $ofile" >&5
9656echo "$as_me: creating $ofile" >&6;}
9657
9658 cat <<__EOF__ >> "$cfgfile"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009659#! $SHELL
9660
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009661# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009662# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9663# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9664#
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009665# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9666# Free Software Foundation, Inc.
9667#
9668# This file is part of GNU Libtool:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009669# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9670#
9671# This program is free software; you can redistribute it and/or modify
9672# it under the terms of the GNU General Public License as published by
9673# the Free Software Foundation; either version 2 of the License, or
9674# (at your option) any later version.
9675#
9676# This program is distributed in the hope that it will be useful, but
9677# WITHOUT ANY WARRANTY; without even the implied warranty of
9678# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9679# General Public License for more details.
9680#
9681# You should have received a copy of the GNU General Public License
9682# along with this program; if not, write to the Free Software
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009683# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009684#
9685# As a special exception to the GNU General Public License, if you
9686# distribute this file as part of a program that contains a
9687# configuration script generated by Autoconf, you may include it under
9688# the same distribution terms that you use for the rest of that program.
9689
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009690# A sed program that does not truncate output.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009691SED=$lt_SED
9692
9693# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009694Xsed="$SED -e 1s/^X//"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009695
9696# The HP-UX ksh and POSIX shell print the target directory to stdout
9697# if CDPATH is set.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009698(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9699
9700# The names of the tagged configurations supported by this script.
9701available_tags=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009702
9703# ### BEGIN LIBTOOL CONFIG
9704
9705# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9706
9707# Shell to use when invoking shell scripts.
9708SHELL=$lt_SHELL
9709
9710# Whether or not to build shared libraries.
9711build_libtool_libs=$enable_shared
9712
9713# Whether or not to build static libraries.
9714build_old_libs=$enable_static
9715
9716# Whether or not to add -lc for building shared libraries.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009717build_libtool_need_lc=$archive_cmds_need_lc
9718
9719# Whether or not to disallow shared libs when runtime libs are static
9720allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009721
9722# Whether or not to optimize for fast installation.
9723fast_install=$enable_fast_install
9724
9725# The host system.
9726host_alias=$host_alias
9727host=$host
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009728host_os=$host_os
9729
9730# The build system.
9731build_alias=$build_alias
9732build=$build
9733build_os=$build_os
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009734
9735# An echo program that does not interpret backslashes.
9736echo=$lt_echo
9737
9738# The archiver.
9739AR=$lt_AR
9740AR_FLAGS=$lt_AR_FLAGS
9741
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009742# A C compiler.
9743LTCC=$lt_LTCC
9744
9745# LTCC compiler flags.
9746LTCFLAGS=$lt_LTCFLAGS
9747
9748# A language-specific compiler.
9749CC=$lt_compiler
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009750
9751# Is the compiler the GNU C compiler?
9752with_gcc=$GCC
9753
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009754# An ERE matcher.
9755EGREP=$lt_EGREP
9756
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009757# The linker used to build libraries.
9758LD=$lt_LD
9759
9760# Whether we need hard or soft links.
9761LN_S=$lt_LN_S
9762
9763# A BSD-compatible nm program.
9764NM=$lt_NM
9765
9766# A symbol stripping program
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009767STRIP=$lt_STRIP
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009768
9769# Used to examine libraries when file_magic_cmd begins "file"
9770MAGIC_CMD=$MAGIC_CMD
9771
9772# Used on cygwin: DLL creation program.
9773DLLTOOL="$DLLTOOL"
9774
9775# Used on cygwin: object dumper.
9776OBJDUMP="$OBJDUMP"
9777
9778# Used on cygwin: assembler.
9779AS="$AS"
9780
9781# The name of the directory that contains temporary libtool files.
9782objdir=$objdir
9783
9784# How to create reloadable object files.
9785reload_flag=$lt_reload_flag
9786reload_cmds=$lt_reload_cmds
9787
9788# How to pass a linker flag through the compiler.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009789wl=$lt_lt_prog_compiler_wl
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009790
9791# Object file suffix (normally "o").
9792objext="$ac_objext"
9793
9794# Old archive suffix (normally "a").
9795libext="$libext"
9796
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009797# Shared library suffix (normally ".so").
9798shrext_cmds='$shrext_cmds'
9799
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009800# Executable file suffix (normally "").
9801exeext="$exeext"
9802
9803# Additional compiler flags for building library objects.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009804pic_flag=$lt_lt_prog_compiler_pic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009805pic_mode=$pic_mode
9806
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009807# What is the maximum length of a command?
9808max_cmd_len=$lt_cv_sys_max_cmd_len
9809
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009810# Does compiler simultaneously support -c and -o options?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009811compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009812
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009813# Must we lock files when doing compilation?
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009814need_locks=$lt_need_locks
9815
9816# Do we need the lib prefix for modules?
9817need_lib_prefix=$need_lib_prefix
9818
9819# Do we need a version for libraries?
9820need_version=$need_version
9821
9822# Whether dlopen is supported.
9823dlopen_support=$enable_dlopen
9824
9825# Whether dlopen of programs is supported.
9826dlopen_self=$enable_dlopen_self
9827
9828# Whether dlopen of statically linked programs is supported.
9829dlopen_self_static=$enable_dlopen_self_static
9830
9831# Compiler flag to prevent dynamic linking.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009832link_static_flag=$lt_lt_prog_compiler_static
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009833
9834# Compiler flag to turn off builtin functions.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009835no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009836
9837# Compiler flag to allow reflexive dlopens.
9838export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9839
9840# Compiler flag to generate shared objects directly from archives.
9841whole_archive_flag_spec=$lt_whole_archive_flag_spec
9842
9843# Compiler flag to generate thread-safe objects.
9844thread_safe_flag_spec=$lt_thread_safe_flag_spec
9845
9846# Library versioning type.
9847version_type=$version_type
9848
9849# Format of library name prefix.
9850libname_spec=$lt_libname_spec
9851
9852# List of archive names. First name is the real one, the rest are links.
9853# The last name is the one that the linker finds with -lNAME.
9854library_names_spec=$lt_library_names_spec
9855
9856# The coded name of the library, if different from the real name.
9857soname_spec=$lt_soname_spec
9858
9859# Commands used to build and install an old-style archive.
9860RANLIB=$lt_RANLIB
9861old_archive_cmds=$lt_old_archive_cmds
9862old_postinstall_cmds=$lt_old_postinstall_cmds
9863old_postuninstall_cmds=$lt_old_postuninstall_cmds
9864
9865# Create an old-style archive from a shared archive.
9866old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9867
9868# Create a temporary old-style archive to link instead of a shared archive.
9869old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9870
9871# Commands used to build and install a shared archive.
9872archive_cmds=$lt_archive_cmds
9873archive_expsym_cmds=$lt_archive_expsym_cmds
9874postinstall_cmds=$lt_postinstall_cmds
9875postuninstall_cmds=$lt_postuninstall_cmds
9876
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009877# Commands used to build a loadable module (assumed same as above if empty)
9878module_cmds=$lt_module_cmds
9879module_expsym_cmds=$lt_module_expsym_cmds
9880
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009881# Commands to strip libraries.
9882old_striplib=$lt_old_striplib
9883striplib=$lt_striplib
9884
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009885# Dependencies to place before the objects being linked to create a
9886# shared library.
9887predep_objects=$lt_predep_objects
9888
9889# Dependencies to place after the objects being linked to create a
9890# shared library.
9891postdep_objects=$lt_postdep_objects
9892
9893# Dependencies to place before the objects being linked to create a
9894# shared library.
9895predeps=$lt_predeps
9896
9897# Dependencies to place after the objects being linked to create a
9898# shared library.
9899postdeps=$lt_postdeps
9900
9901# The library search path used internally by the compiler when linking
9902# a shared library.
9903compiler_lib_search_path=$lt_compiler_lib_search_path
9904
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009905# Method to check whether dependent libraries are shared objects.
9906deplibs_check_method=$lt_deplibs_check_method
9907
9908# Command to use when deplibs_check_method == file_magic.
9909file_magic_cmd=$lt_file_magic_cmd
9910
9911# Flag that allows shared libraries with undefined symbols to be built.
9912allow_undefined_flag=$lt_allow_undefined_flag
9913
9914# Flag that forces no undefined symbols.
9915no_undefined_flag=$lt_no_undefined_flag
9916
9917# Commands used to finish a libtool library installation in a directory.
9918finish_cmds=$lt_finish_cmds
9919
9920# Same as above, but a single script fragment to be evaled but not shown.
9921finish_eval=$lt_finish_eval
9922
9923# Take the output of nm and produce a listing of raw symbols and C names.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009924global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009925
9926# Transform the output of nm in a proper C declaration
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009927global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009928
9929# Transform the output of nm in a C name address pair
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009930global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009931
9932# This is the shared library runtime path variable.
9933runpath_var=$runpath_var
9934
9935# This is the shared library path variable.
9936shlibpath_var=$shlibpath_var
9937
9938# Is shlibpath searched before the hard-coded library search path?
9939shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9940
9941# How to hardcode a shared library path into an executable.
9942hardcode_action=$hardcode_action
9943
9944# Whether we should hardcode library paths into libraries.
9945hardcode_into_libs=$hardcode_into_libs
9946
9947# Flag to hardcode \$libdir into a binary during linking.
9948# This must work even if \$libdir does not exist.
9949hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9950
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009951# If ld is used when linking, flag to hardcode \$libdir into
9952# a binary during linking. This must work even if \$libdir does
9953# not exist.
9954hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9955
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009956# Whether we need a single -rpath flag with a separated argument.
9957hardcode_libdir_separator=$lt_hardcode_libdir_separator
9958
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009959# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009960# resulting binary.
9961hardcode_direct=$hardcode_direct
9962
9963# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9964# resulting binary.
9965hardcode_minus_L=$hardcode_minus_L
9966
9967# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9968# the resulting binary.
9969hardcode_shlibpath_var=$hardcode_shlibpath_var
9970
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009971# Set to yes if building a shared library automatically hardcodes DIR into the library
9972# and all subsequent libraries and executables linked against it.
9973hardcode_automatic=$hardcode_automatic
9974
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009975# Variables whose values should be saved in libtool wrapper scripts and
9976# restored at relink time.
9977variables_saved_for_relink="$variables_saved_for_relink"
9978
9979# Whether libtool must link a program against all its dependency libraries.
9980link_all_deplibs=$link_all_deplibs
9981
9982# Compile-time system search path for libraries
9983sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9984
9985# Run-time system search path for libraries
9986sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9987
9988# Fix the shell variable \$srcfile for the compiler.
9989fix_srcfile_path="$fix_srcfile_path"
9990
9991# Set to yes if exported symbols are required.
9992always_export_symbols=$always_export_symbols
9993
9994# The commands to list exported symbols.
9995export_symbols_cmds=$lt_export_symbols_cmds
9996
9997# The commands to extract the exported symbol list from a shared archive.
9998extract_expsyms_cmds=$lt_extract_expsyms_cmds
9999
10000# Symbols that should not be listed in the preloaded symbols.
10001exclude_expsyms=$lt_exclude_expsyms
10002
10003# Symbols that must always be exported.
10004include_expsyms=$lt_include_expsyms
10005
10006# ### END LIBTOOL CONFIG
10007
10008__EOF__
10009
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010010
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010011 case $host_os in
10012 aix3*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010013 cat <<\EOF >> "$cfgfile"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010014
10015# AIX sometimes has problems with the GCC collect2 program. For some
10016# reason, if we set the COLLECT_NAMES environment variable, the problems
10017# vanish in a puff of smoke.
10018if test "X${COLLECT_NAMES+set}" != Xset; then
10019 COLLECT_NAMES=
10020 export COLLECT_NAMES
10021fi
10022EOF
10023 ;;
10024 esac
10025
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010026 # We use sed instead of cat because bash on DJGPP gets confused if
10027 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10028 # text mode, it properly converts lines to CR/LF. This bash problem
10029 # is reportedly fixed, but why not run on old versions too?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010030 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010031
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010032 mv -f "$cfgfile" "$ofile" || \
10033 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010034 chmod +x "$ofile"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010035
10036else
10037 # If there is no Makefile yet, we rely on a make rule to execute
10038 # `config.status --recheck' to rerun these tests and create the
10039 # libtool script then.
10040 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10041 if test -f "$ltmain_in"; then
10042 test -f Makefile && make "$ltmain"
10043 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010044fi
10045
10046
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010047ac_ext=c
10048ac_cpp='$CPP $CPPFLAGS'
10049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10051ac_compiler_gnu=$ac_cv_c_compiler_gnu
10052
10053CC="$lt_save_CC"
10054
10055
10056# Check whether --with-tags or --without-tags was given.
10057if test "${with_tags+set}" = set; then
10058 withval="$with_tags"
10059 tagnames="$withval"
10060fi;
10061
10062if test -f "$ltmain" && test -n "$tagnames"; then
10063 if test ! -f "${ofile}"; then
10064 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10065echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10066 fi
10067
10068 if test -z "$LTCC"; then
10069 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10070 if test -z "$LTCC"; then
10071 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10072echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10073 else
10074 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10075echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10076 fi
10077 fi
10078 if test -z "$LTCFLAGS"; then
10079 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10080 fi
10081
10082 # Extract list of available tagged configurations in $ofile.
10083 # Note that this assumes the entire list is on one line.
10084 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10085
10086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10087 for tagname in $tagnames; do
10088 IFS="$lt_save_ifs"
10089 # Check whether tagname contains only valid characters
10090 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10091 "") ;;
10092 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10093echo "$as_me: error: invalid tag name: $tagname" >&2;}
10094 { (exit 1); exit 1; }; }
10095 ;;
10096 esac
10097
10098 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10099 then
10100 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10101echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10102 { (exit 1); exit 1; }; }
10103 fi
10104
10105 # Update the list of available tags.
10106 if test -n "$tagname"; then
10107 echo appending configuration tag \"$tagname\" to $ofile
10108
10109 case $tagname in
10110 CXX)
10111 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10112 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10113 (test "X$CXX" != "Xg++"))) ; then
10114 ac_ext=cc
10115ac_cpp='$CXXCPP $CPPFLAGS'
10116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10119
10120
10121
10122
10123archive_cmds_need_lc_CXX=no
10124allow_undefined_flag_CXX=
10125always_export_symbols_CXX=no
10126archive_expsym_cmds_CXX=
10127export_dynamic_flag_spec_CXX=
10128hardcode_direct_CXX=no
10129hardcode_libdir_flag_spec_CXX=
10130hardcode_libdir_flag_spec_ld_CXX=
10131hardcode_libdir_separator_CXX=
10132hardcode_minus_L_CXX=no
10133hardcode_shlibpath_var_CXX=unsupported
10134hardcode_automatic_CXX=no
10135module_cmds_CXX=
10136module_expsym_cmds_CXX=
10137link_all_deplibs_CXX=unknown
10138old_archive_cmds_CXX=$old_archive_cmds
10139no_undefined_flag_CXX=
10140whole_archive_flag_spec_CXX=
10141enable_shared_with_static_runtimes_CXX=no
10142
10143# Dependencies to place before and after the object being linked:
10144predep_objects_CXX=
10145postdep_objects_CXX=
10146predeps_CXX=
10147postdeps_CXX=
10148compiler_lib_search_path_CXX=
10149
10150# Source file extension for C++ test sources.
10151ac_ext=cpp
10152
10153# Object file extension for compiled C++ test sources.
10154objext=o
10155objext_CXX=$objext
10156
10157# Code to be used in simple compile tests
10158lt_simple_compile_test_code="int some_variable = 0;\n"
10159
10160# Code to be used in simple link tests
10161lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10162
10163# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10164
10165# If no C compiler was specified, use CC.
10166LTCC=${LTCC-"$CC"}
10167
10168# If no C compiler flags were specified, use CFLAGS.
10169LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10170
10171# Allow CC to be a program name with arguments.
10172compiler=$CC
10173
10174
10175# save warnings/boilerplate of simple test code
10176ac_outfile=conftest.$ac_objext
10177printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10178eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10179_lt_compiler_boilerplate=`cat conftest.err`
10180$rm conftest*
10181
10182ac_outfile=conftest.$ac_objext
10183printf "$lt_simple_link_test_code" >conftest.$ac_ext
10184eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10185_lt_linker_boilerplate=`cat conftest.err`
10186$rm conftest*
10187
10188
10189# Allow CC to be a program name with arguments.
10190lt_save_CC=$CC
10191lt_save_LD=$LD
10192lt_save_GCC=$GCC
10193GCC=$GXX
10194lt_save_with_gnu_ld=$with_gnu_ld
10195lt_save_path_LD=$lt_cv_path_LD
10196if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10197 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10198else
10199 $as_unset lt_cv_prog_gnu_ld
10200fi
10201if test -n "${lt_cv_path_LDCXX+set}"; then
10202 lt_cv_path_LD=$lt_cv_path_LDCXX
10203else
10204 $as_unset lt_cv_path_LD
10205fi
10206test -z "${LDCXX+set}" || LD=$LDCXX
10207CC=${CXX-"c++"}
10208compiler=$CC
10209compiler_CXX=$CC
10210for cc_temp in $compiler""; do
10211 case $cc_temp in
10212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10214 \-*) ;;
10215 *) break;;
10216 esac
10217done
10218cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10219
10220
10221# We don't want -fno-exception wen compiling C++ code, so set the
10222# no_builtin_flag separately
10223if test "$GXX" = yes; then
10224 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10225else
10226 lt_prog_compiler_no_builtin_flag_CXX=
10227fi
10228
10229if test "$GXX" = yes; then
10230 # Set up default GNU C++ configuration
10231
10232
10233# Check whether --with-gnu-ld or --without-gnu-ld was given.
10234if test "${with_gnu_ld+set}" = set; then
10235 withval="$with_gnu_ld"
10236 test "$withval" = no || with_gnu_ld=yes
10237else
10238 with_gnu_ld=no
10239fi;
10240ac_prog=ld
10241if test "$GCC" = yes; then
10242 # Check if gcc -print-prog-name=ld gives a path.
10243 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10244echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10245 case $host in
10246 *-*-mingw*)
10247 # gcc leaves a trailing carriage return which upsets mingw
10248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10249 *)
10250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10251 esac
10252 case $ac_prog in
10253 # Accept absolute paths.
10254 [\\/]* | ?:[\\/]*)
10255 re_direlt='/[^/][^/]*/\.\./'
10256 # Canonicalize the pathname of ld
10257 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10258 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10259 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10260 done
10261 test -z "$LD" && LD="$ac_prog"
10262 ;;
10263 "")
10264 # If it fails, then pretend we aren't using GCC.
10265 ac_prog=ld
10266 ;;
10267 *)
10268 # If it is relative, then search for the first ld in PATH.
10269 with_gnu_ld=unknown
10270 ;;
10271 esac
10272elif test "$with_gnu_ld" = yes; then
10273 echo "$as_me:$LINENO: checking for GNU ld" >&5
10274echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10275else
10276 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10277echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10278fi
10279if test "${lt_cv_path_LD+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 if test -z "$LD"; then
10283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10284 for ac_dir in $PATH; do
10285 IFS="$lt_save_ifs"
10286 test -z "$ac_dir" && ac_dir=.
10287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10288 lt_cv_path_LD="$ac_dir/$ac_prog"
10289 # Check to see if the program is GNU ld. I'd rather use --version,
10290 # but apparently some variants of GNU ld only accept -v.
10291 # Break only if it was the GNU/non-GNU ld that we prefer.
10292 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10293 *GNU* | *'with BFD'*)
10294 test "$with_gnu_ld" != no && break
10295 ;;
10296 *)
10297 test "$with_gnu_ld" != yes && break
10298 ;;
10299 esac
10300 fi
10301 done
10302 IFS="$lt_save_ifs"
10303else
10304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10305fi
10306fi
10307
10308LD="$lt_cv_path_LD"
10309if test -n "$LD"; then
10310 echo "$as_me:$LINENO: result: $LD" >&5
10311echo "${ECHO_T}$LD" >&6
10312else
10313 echo "$as_me:$LINENO: result: no" >&5
10314echo "${ECHO_T}no" >&6
10315fi
10316test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10317echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10318 { (exit 1); exit 1; }; }
10319echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10320echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10321if test "${lt_cv_prog_gnu_ld+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323else
10324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10325case `$LD -v 2>&1 </dev/null` in
10326*GNU* | *'with BFD'*)
10327 lt_cv_prog_gnu_ld=yes
10328 ;;
10329*)
10330 lt_cv_prog_gnu_ld=no
10331 ;;
10332esac
10333fi
10334echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10335echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10336with_gnu_ld=$lt_cv_prog_gnu_ld
10337
10338
10339
10340 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10341 # archiving commands below assume that GNU ld is being used.
10342 if test "$with_gnu_ld" = yes; then
10343 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10344 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'
10345
10346 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10347 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10348
10349 # If archive_cmds runs LD, not CC, wlarc should be empty
10350 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10351 # investigate it a little bit more. (MM)
10352 wlarc='${wl}'
10353
10354 # ancient GNU ld didn't support --whole-archive et. al.
10355 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10356 grep 'no-whole-archive' > /dev/null; then
10357 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10358 else
10359 whole_archive_flag_spec_CXX=
10360 fi
10361 else
10362 with_gnu_ld=no
10363 wlarc=
10364
10365 # A generic and very simple default shared library creation
10366 # command for GNU C++ for the case where it uses the native
10367 # linker, instead of GNU ld. If possible, this setting should
10368 # overridden to take advantage of the native linker features on
10369 # the platform it is being used on.
10370 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10371 fi
10372
10373 # Commands to make compiler produce verbose output that lists
10374 # what "hidden" libraries, object files and flags are used when
10375 # linking a shared library.
10376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10377
10378else
10379 GXX=no
10380 with_gnu_ld=no
10381 wlarc=
10382fi
10383
10384# PORTME: fill in a description of your system's C++ link characteristics
10385echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10386echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10387ld_shlibs_CXX=yes
10388case $host_os in
10389 aix3*)
10390 # FIXME: insert proper C++ library support
10391 ld_shlibs_CXX=no
10392 ;;
10393 aix4* | aix5*)
10394 if test "$host_cpu" = ia64; then
10395 # On IA64, the linker does run time linking by default, so we don't
10396 # have to do anything special.
10397 aix_use_runtimelinking=no
10398 exp_sym_flag='-Bexport'
10399 no_entry_flag=""
10400 else
10401 aix_use_runtimelinking=no
10402
10403 # Test if we are trying to use run time linking or normal
10404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10405 # need to do runtime linking.
10406 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10407 for ld_flag in $LDFLAGS; do
10408 case $ld_flag in
10409 *-brtl*)
10410 aix_use_runtimelinking=yes
10411 break
10412 ;;
10413 esac
10414 done
10415 ;;
10416 esac
10417
10418 exp_sym_flag='-bexport'
10419 no_entry_flag='-bnoentry'
10420 fi
10421
10422 # When large executables or shared objects are built, AIX ld can
10423 # have problems creating the table of contents. If linking a library
10424 # or program results in "error TOC overflow" add -mminimal-toc to
10425 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10426 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10427
10428 archive_cmds_CXX=''
10429 hardcode_direct_CXX=yes
10430 hardcode_libdir_separator_CXX=':'
10431 link_all_deplibs_CXX=yes
10432
10433 if test "$GXX" = yes; then
10434 case $host_os in aix4.[012]|aix4.[012].*)
10435 # We only want to do this on AIX 4.2 and lower, the check
10436 # below for broken collect2 doesn't work under 4.3+
10437 collect2name=`${CC} -print-prog-name=collect2`
10438 if test -f "$collect2name" && \
10439 strings "$collect2name" | grep resolve_lib_name >/dev/null
10440 then
10441 # We have reworked collect2
10442 hardcode_direct_CXX=yes
10443 else
10444 # We have old collect2
10445 hardcode_direct_CXX=unsupported
10446 # It fails to find uninstalled libraries when the uninstalled
10447 # path is not listed in the libpath. Setting hardcode_minus_L
10448 # to unsupported forces relinking
10449 hardcode_minus_L_CXX=yes
10450 hardcode_libdir_flag_spec_CXX='-L$libdir'
10451 hardcode_libdir_separator_CXX=
10452 fi
10453 ;;
10454 esac
10455 shared_flag='-shared'
10456 if test "$aix_use_runtimelinking" = yes; then
10457 shared_flag="$shared_flag "'${wl}-G'
10458 fi
10459 else
10460 # not using gcc
10461 if test "$host_cpu" = ia64; then
10462 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10463 # chokes on -Wl,-G. The following line is correct:
10464 shared_flag='-G'
10465 else
10466 if test "$aix_use_runtimelinking" = yes; then
10467 shared_flag='${wl}-G'
10468 else
10469 shared_flag='${wl}-bM:SRE'
10470 fi
10471 fi
10472 fi
10473
10474 # It seems that -bexpall does not export symbols beginning with
10475 # underscore (_), so it is better to generate a list of symbols to export.
10476 always_export_symbols_CXX=yes
10477 if test "$aix_use_runtimelinking" = yes; then
10478 # Warning - without using the other runtime loading flags (-brtl),
10479 # -berok will link without error, but may produce a broken library.
10480 allow_undefined_flag_CXX='-berok'
10481 # Determine the default libpath from the value encoded in an empty executable.
10482 cat >conftest.$ac_ext <<_ACEOF
10483/* confdefs.h. */
10484_ACEOF
10485cat confdefs.h >>conftest.$ac_ext
10486cat >>conftest.$ac_ext <<_ACEOF
10487/* end confdefs.h. */
10488
10489int
10490main ()
10491{
10492
10493 ;
10494 return 0;
10495}
10496_ACEOF
10497rm -f conftest.$ac_objext conftest$ac_exeext
10498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10499 (eval $ac_link) 2>conftest.er1
10500 ac_status=$?
10501 grep -v '^ *+' conftest.er1 >conftest.err
10502 rm -f conftest.er1
10503 cat conftest.err >&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } &&
10506 { ac_try='test -z "$ac_cxx_werror_flag"
10507 || test ! -s conftest.err'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; } &&
10513 { ac_try='test -s conftest$ac_exeext'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519
10520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10521}'`
10522# Check for a 64-bit object if we didn't find anything.
10523if 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; }
10524}'`; fi
10525else
10526 echo "$as_me: failed program was:" >&5
10527sed 's/^/| /' conftest.$ac_ext >&5
10528
10529fi
10530rm -f conftest.err conftest.$ac_objext \
10531 conftest$ac_exeext conftest.$ac_ext
10532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10533
10534 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10535
10536 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"
10537 else
10538 if test "$host_cpu" = ia64; then
10539 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10540 allow_undefined_flag_CXX="-z nodefs"
10541 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"
10542 else
10543 # Determine the default libpath from the value encoded in an empty executable.
10544 cat >conftest.$ac_ext <<_ACEOF
10545/* confdefs.h. */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h. */
10550
10551int
10552main ()
10553{
10554
10555 ;
10556 return 0;
10557}
10558_ACEOF
10559rm -f conftest.$ac_objext conftest$ac_exeext
10560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_cxx_werror_flag"
10569 || test ! -s conftest.err'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; } &&
10575 { ac_try='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581
10582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10583}'`
10584# Check for a 64-bit object if we didn't find anything.
10585if 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; }
10586}'`; fi
10587else
10588 echo "$as_me: failed program was:" >&5
10589sed 's/^/| /' conftest.$ac_ext >&5
10590
10591fi
10592rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10594if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10595
10596 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10597 # Warning - without using the other run time loading flags,
10598 # -berok will link without error, but may produce a broken library.
10599 no_undefined_flag_CXX=' ${wl}-bernotok'
10600 allow_undefined_flag_CXX=' ${wl}-berok'
10601 # Exported symbols can be pulled into shared objects from archives
10602 whole_archive_flag_spec_CXX='$convenience'
10603 archive_cmds_need_lc_CXX=yes
10604 # This is similar to how AIX traditionally builds its shared libraries.
10605 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'
10606 fi
10607 fi
10608 ;;
10609
10610 beos*)
10611 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10612 allow_undefined_flag_CXX=unsupported
10613 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10614 # support --undefined. This deserves some investigation. FIXME
10615 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10616 else
10617 ld_shlibs_CXX=no
10618 fi
10619 ;;
10620
10621 chorus*)
10622 case $cc_basename in
10623 *)
10624 # FIXME: insert proper C++ library support
10625 ld_shlibs_CXX=no
10626 ;;
10627 esac
10628 ;;
10629
10630 cygwin* | mingw* | pw32*)
10631 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10632 # as there is no search path for DLLs.
10633 hardcode_libdir_flag_spec_CXX='-L$libdir'
10634 allow_undefined_flag_CXX=unsupported
10635 always_export_symbols_CXX=no
10636 enable_shared_with_static_runtimes_CXX=yes
10637
10638 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10639 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'
10640 # If the export-symbols file already is a .def file (1st line
10641 # is EXPORTS), use it as is; otherwise, prepend...
10642 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10643 cp $export_symbols $output_objdir/$soname.def;
10644 else
10645 echo EXPORTS > $output_objdir/$soname.def;
10646 cat $export_symbols >> $output_objdir/$soname.def;
10647 fi~
10648 $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'
10649 else
10650 ld_shlibs_CXX=no
10651 fi
10652 ;;
10653 darwin* | rhapsody*)
10654 case $host_os in
10655 rhapsody* | darwin1.[012])
10656 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10657 ;;
10658 *) # Darwin 1.3 on
10659 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10660 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10661 else
10662 case ${MACOSX_DEPLOYMENT_TARGET} in
10663 10.[012])
10664 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10665 ;;
10666 10.*)
10667 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10668 ;;
10669 esac
10670 fi
10671 ;;
10672 esac
10673 archive_cmds_need_lc_CXX=no
10674 hardcode_direct_CXX=no
10675 hardcode_automatic_CXX=yes
10676 hardcode_shlibpath_var_CXX=unsupported
10677 whole_archive_flag_spec_CXX=''
10678 link_all_deplibs_CXX=yes
10679
10680 if test "$GXX" = yes ; then
10681 lt_int_apple_cc_single_mod=no
10682 output_verbose_link_cmd='echo'
10683 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10684 lt_int_apple_cc_single_mod=yes
10685 fi
10686 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10687 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10688 else
10689 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'
10690 fi
10691 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10692 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10693 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10694 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}'
10695 else
10696 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}'
10697 fi
10698 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}'
10699 else
10700 case $cc_basename in
10701 xlc*)
10702 output_verbose_link_cmd='echo'
10703 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'
10704 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10705 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10706 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}'
10707 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}'
10708 ;;
10709 *)
10710 ld_shlibs_CXX=no
10711 ;;
10712 esac
10713 fi
10714 ;;
10715
10716 dgux*)
10717 case $cc_basename in
10718 ec++*)
10719 # FIXME: insert proper C++ library support
10720 ld_shlibs_CXX=no
10721 ;;
10722 ghcx*)
10723 # Green Hills C++ Compiler
10724 # FIXME: insert proper C++ library support
10725 ld_shlibs_CXX=no
10726 ;;
10727 *)
10728 # FIXME: insert proper C++ library support
10729 ld_shlibs_CXX=no
10730 ;;
10731 esac
10732 ;;
10733 freebsd[12]*)
10734 # C++ shared libraries reported to be fairly broken before switch to ELF
10735 ld_shlibs_CXX=no
10736 ;;
10737 freebsd-elf*)
10738 archive_cmds_need_lc_CXX=no
10739 ;;
10740 freebsd* | kfreebsd*-gnu | dragonfly*)
10741 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10742 # conventions
10743 ld_shlibs_CXX=yes
10744 ;;
10745 gnu*)
10746 ;;
10747 hpux9*)
10748 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10749 hardcode_libdir_separator_CXX=:
10750 export_dynamic_flag_spec_CXX='${wl}-E'
10751 hardcode_direct_CXX=yes
10752 hardcode_minus_L_CXX=yes # Not in the search PATH,
10753 # but as the default
10754 # location of the library.
10755
10756 case $cc_basename in
10757 CC*)
10758 # FIXME: insert proper C++ library support
10759 ld_shlibs_CXX=no
10760 ;;
10761 aCC*)
10762 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'
10763 # Commands to make compiler produce verbose output that lists
10764 # what "hidden" libraries, object files and flags are used when
10765 # linking a shared library.
10766 #
10767 # There doesn't appear to be a way to prevent this compiler from
10768 # explicitly linking system object files so we need to strip them
10769 # from the output so that they don't get included in the library
10770 # dependencies.
10771 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'
10772 ;;
10773 *)
10774 if test "$GXX" = yes; then
10775 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'
10776 else
10777 # FIXME: insert proper C++ library support
10778 ld_shlibs_CXX=no
10779 fi
10780 ;;
10781 esac
10782 ;;
10783 hpux10*|hpux11*)
10784 if test $with_gnu_ld = no; then
10785 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10786 hardcode_libdir_separator_CXX=:
10787
10788 case $host_cpu in
10789 hppa*64*|ia64*)
10790 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10791 ;;
10792 *)
10793 export_dynamic_flag_spec_CXX='${wl}-E'
10794 ;;
10795 esac
10796 fi
10797 case $host_cpu in
10798 hppa*64*|ia64*)
10799 hardcode_direct_CXX=no
10800 hardcode_shlibpath_var_CXX=no
10801 ;;
10802 *)
10803 hardcode_direct_CXX=yes
10804 hardcode_minus_L_CXX=yes # Not in the search PATH,
10805 # but as the default
10806 # location of the library.
10807 ;;
10808 esac
10809
10810 case $cc_basename in
10811 CC*)
10812 # FIXME: insert proper C++ library support
10813 ld_shlibs_CXX=no
10814 ;;
10815 aCC*)
10816 case $host_cpu in
10817 hppa*64*)
10818 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10819 ;;
10820 ia64*)
10821 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10822 ;;
10823 *)
10824 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10825 ;;
10826 esac
10827 # Commands to make compiler produce verbose output that lists
10828 # what "hidden" libraries, object files and flags are used when
10829 # linking a shared library.
10830 #
10831 # There doesn't appear to be a way to prevent this compiler from
10832 # explicitly linking system object files so we need to strip them
10833 # from the output so that they don't get included in the library
10834 # dependencies.
10835 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'
10836 ;;
10837 *)
10838 if test "$GXX" = yes; then
10839 if test $with_gnu_ld = no; then
10840 case $host_cpu in
10841 hppa*64*)
10842 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10843 ;;
10844 ia64*)
10845 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10846 ;;
10847 *)
10848 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'
10849 ;;
10850 esac
10851 fi
10852 else
10853 # FIXME: insert proper C++ library support
10854 ld_shlibs_CXX=no
10855 fi
10856 ;;
10857 esac
10858 ;;
10859 interix3*)
10860 hardcode_direct_CXX=no
10861 hardcode_shlibpath_var_CXX=no
10862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10863 export_dynamic_flag_spec_CXX='${wl}-E'
10864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10865 # Instead, shared libraries are loaded at an image base (0x10000000 by
10866 # default) and relocated if they conflict, which is a slow very memory
10867 # consuming and fragmenting process. To avoid this, we pick a random,
10868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10869 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10870 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'
10871 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'
10872 ;;
10873 irix5* | irix6*)
10874 case $cc_basename in
10875 CC*)
10876 # SGI C++
10877 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'
10878
10879 # Archives containing C++ object files must be created using
10880 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10881 # necessary to make sure instantiated templates are included
10882 # in the archive.
10883 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10884 ;;
10885 *)
10886 if test "$GXX" = yes; then
10887 if test "$with_gnu_ld" = no; then
10888 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'
10889 else
10890 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'
10891 fi
10892 fi
10893 link_all_deplibs_CXX=yes
10894 ;;
10895 esac
10896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10897 hardcode_libdir_separator_CXX=:
10898 ;;
10899 linux*)
10900 case $cc_basename in
10901 KCC*)
10902 # Kuck and Associates, Inc. (KAI) C++ Compiler
10903
10904 # KCC will only create a shared library if the output file
10905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10906 # to its proper name (with version) after linking.
10907 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'
10908 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'
10909 # Commands to make compiler produce verbose output that lists
10910 # what "hidden" libraries, object files and flags are used when
10911 # linking a shared library.
10912 #
10913 # There doesn't appear to be a way to prevent this compiler from
10914 # explicitly linking system object files so we need to strip them
10915 # from the output so that they don't get included in the library
10916 # dependencies.
10917 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'
10918
10919 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10921
10922 # Archives containing C++ object files must be created using
10923 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10924 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10925 ;;
10926 icpc*)
10927 # Intel C++
10928 with_gnu_ld=yes
10929 # version 8.0 and above of icpc choke on multiply defined symbols
10930 # if we add $predep_objects and $postdep_objects, however 7.1 and
10931 # earlier do not add the objects themselves.
10932 case `$CC -V 2>&1` in
10933 *"Version 7."*)
10934 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10935 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'
10936 ;;
10937 *) # Version 8.0 or newer
10938 tmp_idyn=
10939 case $host_cpu in
10940 ia64*) tmp_idyn=' -i_dynamic';;
10941 esac
10942 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10943 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'
10944 ;;
10945 esac
10946 archive_cmds_need_lc_CXX=no
10947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10949 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10950 ;;
10951 pgCC*)
10952 # Portland Group C++ compiler
10953 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10954 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'
10955
10956 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10957 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10958 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'
10959 ;;
10960 cxx*)
10961 # Compaq C++
10962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10963 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'
10964
10965 runpath_var=LD_RUN_PATH
10966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10967 hardcode_libdir_separator_CXX=:
10968
10969 # Commands to make compiler produce verbose output that lists
10970 # what "hidden" libraries, object files and flags are used when
10971 # linking a shared library.
10972 #
10973 # There doesn't appear to be a way to prevent this compiler from
10974 # explicitly linking system object files so we need to strip them
10975 # from the output so that they don't get included in the library
10976 # dependencies.
10977 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'
10978 ;;
10979 esac
10980 ;;
10981 lynxos*)
10982 # FIXME: insert proper C++ library support
10983 ld_shlibs_CXX=no
10984 ;;
10985 m88k*)
10986 # FIXME: insert proper C++ library support
10987 ld_shlibs_CXX=no
10988 ;;
10989 mvs*)
10990 case $cc_basename in
10991 cxx*)
10992 # FIXME: insert proper C++ library support
10993 ld_shlibs_CXX=no
10994 ;;
10995 *)
10996 # FIXME: insert proper C++ library support
10997 ld_shlibs_CXX=no
10998 ;;
10999 esac
11000 ;;
11001 netbsd*)
11002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11003 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11004 wlarc=
11005 hardcode_libdir_flag_spec_CXX='-R$libdir'
11006 hardcode_direct_CXX=yes
11007 hardcode_shlibpath_var_CXX=no
11008 fi
11009 # Workaround some broken pre-1.5 toolchains
11010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11011 ;;
11012 openbsd2*)
11013 # C++ shared libraries are fairly broken
11014 ld_shlibs_CXX=no
11015 ;;
11016 openbsd*)
11017 hardcode_direct_CXX=yes
11018 hardcode_shlibpath_var_CXX=no
11019 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11020 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11022 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11023 export_dynamic_flag_spec_CXX='${wl}-E'
11024 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11025 fi
11026 output_verbose_link_cmd='echo'
11027 ;;
11028 osf3*)
11029 case $cc_basename in
11030 KCC*)
11031 # Kuck and Associates, Inc. (KAI) C++ Compiler
11032
11033 # KCC will only create a shared library if the output file
11034 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11035 # to its proper name (with version) after linking.
11036 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'
11037
11038 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11039 hardcode_libdir_separator_CXX=:
11040
11041 # Archives containing C++ object files must be created using
11042 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11043 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11044
11045 ;;
11046 RCC*)
11047 # Rational C++ 2.4.1
11048 # FIXME: insert proper C++ library support
11049 ld_shlibs_CXX=no
11050 ;;
11051 cxx*)
11052 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11053 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'
11054
11055 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11056 hardcode_libdir_separator_CXX=:
11057
11058 # Commands to make compiler produce verbose output that lists
11059 # what "hidden" libraries, object files and flags are used when
11060 # linking a shared library.
11061 #
11062 # There doesn't appear to be a way to prevent this compiler from
11063 # explicitly linking system object files so we need to strip them
11064 # from the output so that they don't get included in the library
11065 # dependencies.
11066 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'
11067 ;;
11068 *)
11069 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11070 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11071 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'
11072
11073 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11074 hardcode_libdir_separator_CXX=:
11075
11076 # Commands to make compiler produce verbose output that lists
11077 # what "hidden" libraries, object files and flags are used when
11078 # linking a shared library.
11079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11080
11081 else
11082 # FIXME: insert proper C++ library support
11083 ld_shlibs_CXX=no
11084 fi
11085 ;;
11086 esac
11087 ;;
11088 osf4* | osf5*)
11089 case $cc_basename in
11090 KCC*)
11091 # Kuck and Associates, Inc. (KAI) C++ Compiler
11092
11093 # KCC will only create a shared library if the output file
11094 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11095 # to its proper name (with version) after linking.
11096 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'
11097
11098 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11099 hardcode_libdir_separator_CXX=:
11100
11101 # Archives containing C++ object files must be created using
11102 # the KAI C++ compiler.
11103 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11104 ;;
11105 RCC*)
11106 # Rational C++ 2.4.1
11107 # FIXME: insert proper C++ library support
11108 ld_shlibs_CXX=no
11109 ;;
11110 cxx*)
11111 allow_undefined_flag_CXX=' -expect_unresolved \*'
11112 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'
11113 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11114 echo "-hidden">> $lib.exp~
11115 $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~
11116 $rm $lib.exp'
11117
11118 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11119 hardcode_libdir_separator_CXX=:
11120
11121 # Commands to make compiler produce verbose output that lists
11122 # what "hidden" libraries, object files and flags are used when
11123 # linking a shared library.
11124 #
11125 # There doesn't appear to be a way to prevent this compiler from
11126 # explicitly linking system object files so we need to strip them
11127 # from the output so that they don't get included in the library
11128 # dependencies.
11129 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'
11130 ;;
11131 *)
11132 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11133 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11134 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'
11135
11136 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11137 hardcode_libdir_separator_CXX=:
11138
11139 # Commands to make compiler produce verbose output that lists
11140 # what "hidden" libraries, object files and flags are used when
11141 # linking a shared library.
11142 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11143
11144 else
11145 # FIXME: insert proper C++ library support
11146 ld_shlibs_CXX=no
11147 fi
11148 ;;
11149 esac
11150 ;;
11151 psos*)
11152 # FIXME: insert proper C++ library support
11153 ld_shlibs_CXX=no
11154 ;;
11155 sunos4*)
11156 case $cc_basename in
11157 CC*)
11158 # Sun C++ 4.x
11159 # FIXME: insert proper C++ library support
11160 ld_shlibs_CXX=no
11161 ;;
11162 lcc*)
11163 # Lucid
11164 # FIXME: insert proper C++ library support
11165 ld_shlibs_CXX=no
11166 ;;
11167 *)
11168 # FIXME: insert proper C++ library support
11169 ld_shlibs_CXX=no
11170 ;;
11171 esac
11172 ;;
11173 solaris*)
11174 case $cc_basename in
11175 CC*)
11176 # Sun C++ 4.2, 5.x and Centerline C++
11177 archive_cmds_need_lc_CXX=yes
11178 no_undefined_flag_CXX=' -zdefs'
11179 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11180 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11181 $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'
11182
11183 hardcode_libdir_flag_spec_CXX='-R$libdir'
11184 hardcode_shlibpath_var_CXX=no
11185 case $host_os in
11186 solaris2.[0-5] | solaris2.[0-5].*) ;;
11187 *)
11188 # The C++ compiler is used as linker so we must use $wl
11189 # flag to pass the commands to the underlying system
11190 # linker. We must also pass each convience library through
11191 # to the system linker between allextract/defaultextract.
11192 # The C++ compiler will combine linker options so we
11193 # cannot just pass the convience library names through
11194 # without $wl.
11195 # Supported since Solaris 2.6 (maybe 2.5.1?)
11196 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'
11197 ;;
11198 esac
11199 link_all_deplibs_CXX=yes
11200
11201 output_verbose_link_cmd='echo'
11202
11203 # Archives containing C++ object files must be created using
11204 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11205 # necessary to make sure instantiated templates are included
11206 # in the archive.
11207 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11208 ;;
11209 gcx*)
11210 # Green Hills C++ Compiler
11211 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11212
11213 # The C++ compiler must be used to create the archive.
11214 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11215 ;;
11216 *)
11217 # GNU C++ compiler with Solaris linker
11218 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11219 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11220 if $CC --version | grep -v '^2\.7' > /dev/null; then
11221 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11222 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11223 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11224
11225 # Commands to make compiler produce verbose output that lists
11226 # what "hidden" libraries, object files and flags are used when
11227 # linking a shared library.
11228 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11229 else
11230 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11231 # platform.
11232 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11233 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11234 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11235
11236 # Commands to make compiler produce verbose output that lists
11237 # what "hidden" libraries, object files and flags are used when
11238 # linking a shared library.
11239 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11240 fi
11241
11242 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11243 fi
11244 ;;
11245 esac
11246 ;;
11247 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11248 no_undefined_flag_CXX='${wl}-z,text'
11249 archive_cmds_need_lc_CXX=no
11250 hardcode_shlibpath_var_CXX=no
11251 runpath_var='LD_RUN_PATH'
11252
11253 case $cc_basename in
11254 CC*)
11255 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11256 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11257 ;;
11258 *)
11259 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11260 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11261 ;;
11262 esac
11263 ;;
11264 sysv5* | sco3.2v5* | sco5v6*)
11265 # Note: We can NOT use -z defs as we might desire, because we do not
11266 # link with -lc, and that would cause any symbols used from libc to
11267 # always be unresolved, which means just about no library would
11268 # ever link correctly. If we're not using GNU ld we use -z text
11269 # though, which does catch some bad symbols but isn't as heavy-handed
11270 # as -z defs.
11271 # For security reasons, it is highly recommended that you always
11272 # use absolute paths for naming shared libraries, and exclude the
11273 # DT_RUNPATH tag from executables and libraries. But doing so
11274 # requires that you compile everything twice, which is a pain.
11275 # So that behaviour is only enabled if SCOABSPATH is set to a
11276 # non-empty value in the environment. Most likely only useful for
11277 # creating official distributions of packages.
11278 # This is a hack until libtool officially supports absolute path
11279 # names for shared libraries.
11280 no_undefined_flag_CXX='${wl}-z,text'
11281 allow_undefined_flag_CXX='${wl}-z,nodefs'
11282 archive_cmds_need_lc_CXX=no
11283 hardcode_shlibpath_var_CXX=no
11284 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11285 hardcode_libdir_separator_CXX=':'
11286 link_all_deplibs_CXX=yes
11287 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11288 runpath_var='LD_RUN_PATH'
11289
11290 case $cc_basename in
11291 CC*)
11292 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11293 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11294 ;;
11295 *)
11296 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11297 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11298 ;;
11299 esac
11300 ;;
11301 tandem*)
11302 case $cc_basename in
11303 NCC*)
11304 # NonStop-UX NCC 3.20
11305 # FIXME: insert proper C++ library support
11306 ld_shlibs_CXX=no
11307 ;;
11308 *)
11309 # FIXME: insert proper C++ library support
11310 ld_shlibs_CXX=no
11311 ;;
11312 esac
11313 ;;
11314 vxworks*)
11315 # FIXME: insert proper C++ library support
11316 ld_shlibs_CXX=no
11317 ;;
11318 *)
11319 # FIXME: insert proper C++ library support
11320 ld_shlibs_CXX=no
11321 ;;
11322esac
11323echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11324echo "${ECHO_T}$ld_shlibs_CXX" >&6
11325test "$ld_shlibs_CXX" = no && can_build_shared=no
11326
11327GCC_CXX="$GXX"
11328LD_CXX="$LD"
11329
11330
11331cat > conftest.$ac_ext <<EOF
11332class Foo
11333{
11334public:
11335 Foo (void) { a = 0; }
11336private:
11337 int a;
11338};
11339EOF
11340
11341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11342 (eval $ac_compile) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; then
11346 # Parse the compiler output and extract the necessary
11347 # objects, libraries and library flags.
11348
11349 # Sentinel used to keep track of whether or not we are before
11350 # the conftest object file.
11351 pre_test_object_deps_done=no
11352
11353 # The `*' in the case matches for architectures that use `case' in
11354 # $output_verbose_cmd can trigger glob expansion during the loop
11355 # eval without this substitution.
11356 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11357
11358 for p in `eval $output_verbose_link_cmd`; do
11359 case $p in
11360
11361 -L* | -R* | -l*)
11362 # Some compilers place space between "-{L,R}" and the path.
11363 # Remove the space.
11364 if test $p = "-L" \
11365 || test $p = "-R"; then
11366 prev=$p
11367 continue
11368 else
11369 prev=
11370 fi
11371
11372 if test "$pre_test_object_deps_done" = no; then
11373 case $p in
11374 -L* | -R*)
11375 # Internal compiler library paths should come after those
11376 # provided the user. The postdeps already come after the
11377 # user supplied libs so there is no need to process them.
11378 if test -z "$compiler_lib_search_path_CXX"; then
11379 compiler_lib_search_path_CXX="${prev}${p}"
11380 else
11381 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11382 fi
11383 ;;
11384 # The "-l" case would never come before the object being
11385 # linked, so don't bother handling this case.
11386 esac
11387 else
11388 if test -z "$postdeps_CXX"; then
11389 postdeps_CXX="${prev}${p}"
11390 else
11391 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11392 fi
11393 fi
11394 ;;
11395
11396 *.$objext)
11397 # This assumes that the test object file only shows up
11398 # once in the compiler output.
11399 if test "$p" = "conftest.$objext"; then
11400 pre_test_object_deps_done=yes
11401 continue
11402 fi
11403
11404 if test "$pre_test_object_deps_done" = no; then
11405 if test -z "$predep_objects_CXX"; then
11406 predep_objects_CXX="$p"
11407 else
11408 predep_objects_CXX="$predep_objects_CXX $p"
11409 fi
11410 else
11411 if test -z "$postdep_objects_CXX"; then
11412 postdep_objects_CXX="$p"
11413 else
11414 postdep_objects_CXX="$postdep_objects_CXX $p"
11415 fi
11416 fi
11417 ;;
11418
11419 *) ;; # Ignore the rest.
11420
11421 esac
11422 done
11423
11424 # Clean up.
11425 rm -f a.out a.exe
11426else
11427 echo "libtool.m4: error: problem compiling CXX test program"
11428fi
11429
11430$rm -f confest.$objext
11431
11432# PORTME: override above test on systems where it is broken
11433case $host_os in
11434interix3*)
11435 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11436 # hack all around it, let's just trust "g++" to DTRT.
11437 predep_objects_CXX=
11438 postdep_objects_CXX=
11439 postdeps_CXX=
11440 ;;
11441
11442solaris*)
11443 case $cc_basename in
11444 CC*)
11445 # Adding this requires a known-good setup of shared libraries for
11446 # Sun compiler versions before 5.6, else PIC objects from an old
11447 # archive will be linked into the output, leading to subtle bugs.
11448 postdeps_CXX='-lCstd -lCrun'
11449 ;;
11450 esac
11451 ;;
11452esac
11453
11454
11455case " $postdeps_CXX " in
11456*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11457esac
11458
11459lt_prog_compiler_wl_CXX=
11460lt_prog_compiler_pic_CXX=
11461lt_prog_compiler_static_CXX=
11462
11463echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11464echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11465
11466 # C++ specific cases for pic, static, wl, etc.
11467 if test "$GXX" = yes; then
11468 lt_prog_compiler_wl_CXX='-Wl,'
11469 lt_prog_compiler_static_CXX='-static'
11470
11471 case $host_os in
11472 aix*)
11473 # All AIX code is PIC.
11474 if test "$host_cpu" = ia64; then
11475 # AIX 5 now supports IA64 processor
11476 lt_prog_compiler_static_CXX='-Bstatic'
11477 fi
11478 ;;
11479 amigaos*)
11480 # FIXME: we need at least 68020 code to build shared libraries, but
11481 # adding the `-m68020' flag to GCC prevents building anything better,
11482 # like `-m68040'.
11483 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11484 ;;
11485 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11486 # PIC is the default for these OSes.
11487 ;;
11488 mingw* | os2* | pw32*)
11489 # This hack is so that the source file can tell whether it is being
11490 # built for inclusion in a dll (and should export symbols for example).
11491 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11492 ;;
11493 darwin* | rhapsody*)
11494 # PIC is the default on this platform
11495 # Common symbols not allowed in MH_DYLIB files
11496 lt_prog_compiler_pic_CXX='-fno-common'
11497 ;;
11498 *djgpp*)
11499 # DJGPP does not support shared libraries at all
11500 lt_prog_compiler_pic_CXX=
11501 ;;
11502 interix3*)
11503 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11504 # Instead, we relocate shared libraries at runtime.
11505 ;;
11506 sysv4*MP*)
11507 if test -d /usr/nec; then
11508 lt_prog_compiler_pic_CXX=-Kconform_pic
11509 fi
11510 ;;
11511 hpux*)
11512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11513 # not for PA HP-UX.
11514 case $host_cpu in
11515 hppa*64*|ia64*)
11516 ;;
11517 *)
11518 lt_prog_compiler_pic_CXX='-fPIC'
11519 ;;
11520 esac
11521 ;;
11522 *)
11523 lt_prog_compiler_pic_CXX='-fPIC'
11524 ;;
11525 esac
11526 else
11527 case $host_os in
11528 aix4* | aix5*)
11529 # All AIX code is PIC.
11530 if test "$host_cpu" = ia64; then
11531 # AIX 5 now supports IA64 processor
11532 lt_prog_compiler_static_CXX='-Bstatic'
11533 else
11534 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11535 fi
11536 ;;
11537 chorus*)
11538 case $cc_basename in
11539 cxch68*)
11540 # Green Hills C++ Compiler
11541 # _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"
11542 ;;
11543 esac
11544 ;;
11545 darwin*)
11546 # PIC is the default on this platform
11547 # Common symbols not allowed in MH_DYLIB files
11548 case $cc_basename in
11549 xlc*)
11550 lt_prog_compiler_pic_CXX='-qnocommon'
11551 lt_prog_compiler_wl_CXX='-Wl,'
11552 ;;
11553 esac
11554 ;;
11555 dgux*)
11556 case $cc_basename in
11557 ec++*)
11558 lt_prog_compiler_pic_CXX='-KPIC'
11559 ;;
11560 ghcx*)
11561 # Green Hills C++ Compiler
11562 lt_prog_compiler_pic_CXX='-pic'
11563 ;;
11564 *)
11565 ;;
11566 esac
11567 ;;
11568 freebsd* | kfreebsd*-gnu | dragonfly*)
11569 # FreeBSD uses GNU C++
11570 ;;
11571 hpux9* | hpux10* | hpux11*)
11572 case $cc_basename in
11573 CC*)
11574 lt_prog_compiler_wl_CXX='-Wl,'
11575 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11576 if test "$host_cpu" != ia64; then
11577 lt_prog_compiler_pic_CXX='+Z'
11578 fi
11579 ;;
11580 aCC*)
11581 lt_prog_compiler_wl_CXX='-Wl,'
11582 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11583 case $host_cpu in
11584 hppa*64*|ia64*)
11585 # +Z the default
11586 ;;
11587 *)
11588 lt_prog_compiler_pic_CXX='+Z'
11589 ;;
11590 esac
11591 ;;
11592 *)
11593 ;;
11594 esac
11595 ;;
11596 interix*)
11597 # This is c89, which is MS Visual C++ (no shared libs)
11598 # Anyone wants to do a port?
11599 ;;
11600 irix5* | irix6* | nonstopux*)
11601 case $cc_basename in
11602 CC*)
11603 lt_prog_compiler_wl_CXX='-Wl,'
11604 lt_prog_compiler_static_CXX='-non_shared'
11605 # CC pic flag -KPIC is the default.
11606 ;;
11607 *)
11608 ;;
11609 esac
11610 ;;
11611 linux*)
11612 case $cc_basename in
11613 KCC*)
11614 # KAI C++ Compiler
11615 lt_prog_compiler_wl_CXX='--backend -Wl,'
11616 lt_prog_compiler_pic_CXX='-fPIC'
11617 ;;
11618 icpc* | ecpc*)
11619 # Intel C++
11620 lt_prog_compiler_wl_CXX='-Wl,'
11621 lt_prog_compiler_pic_CXX='-KPIC'
11622 lt_prog_compiler_static_CXX='-static'
11623 ;;
11624 pgCC*)
11625 # Portland Group C++ compiler.
11626 lt_prog_compiler_wl_CXX='-Wl,'
11627 lt_prog_compiler_pic_CXX='-fpic'
11628 lt_prog_compiler_static_CXX='-Bstatic'
11629 ;;
11630 cxx*)
11631 # Compaq C++
11632 # Make sure the PIC flag is empty. It appears that all Alpha
11633 # Linux and Compaq Tru64 Unix objects are PIC.
11634 lt_prog_compiler_pic_CXX=
11635 lt_prog_compiler_static_CXX='-non_shared'
11636 ;;
11637 *)
11638 ;;
11639 esac
11640 ;;
11641 lynxos*)
11642 ;;
11643 m88k*)
11644 ;;
11645 mvs*)
11646 case $cc_basename in
11647 cxx*)
11648 lt_prog_compiler_pic_CXX='-W c,exportall'
11649 ;;
11650 *)
11651 ;;
11652 esac
11653 ;;
11654 netbsd*)
11655 ;;
11656 osf3* | osf4* | osf5*)
11657 case $cc_basename in
11658 KCC*)
11659 lt_prog_compiler_wl_CXX='--backend -Wl,'
11660 ;;
11661 RCC*)
11662 # Rational C++ 2.4.1
11663 lt_prog_compiler_pic_CXX='-pic'
11664 ;;
11665 cxx*)
11666 # Digital/Compaq C++
11667 lt_prog_compiler_wl_CXX='-Wl,'
11668 # Make sure the PIC flag is empty. It appears that all Alpha
11669 # Linux and Compaq Tru64 Unix objects are PIC.
11670 lt_prog_compiler_pic_CXX=
11671 lt_prog_compiler_static_CXX='-non_shared'
11672 ;;
11673 *)
11674 ;;
11675 esac
11676 ;;
11677 psos*)
11678 ;;
11679 solaris*)
11680 case $cc_basename in
11681 CC*)
11682 # Sun C++ 4.2, 5.x and Centerline C++
11683 lt_prog_compiler_pic_CXX='-KPIC'
11684 lt_prog_compiler_static_CXX='-Bstatic'
11685 lt_prog_compiler_wl_CXX='-Qoption ld '
11686 ;;
11687 gcx*)
11688 # Green Hills C++ Compiler
11689 lt_prog_compiler_pic_CXX='-PIC'
11690 ;;
11691 *)
11692 ;;
11693 esac
11694 ;;
11695 sunos4*)
11696 case $cc_basename in
11697 CC*)
11698 # Sun C++ 4.x
11699 lt_prog_compiler_pic_CXX='-pic'
11700 lt_prog_compiler_static_CXX='-Bstatic'
11701 ;;
11702 lcc*)
11703 # Lucid
11704 lt_prog_compiler_pic_CXX='-pic'
11705 ;;
11706 *)
11707 ;;
11708 esac
11709 ;;
11710 tandem*)
11711 case $cc_basename in
11712 NCC*)
11713 # NonStop-UX NCC 3.20
11714 lt_prog_compiler_pic_CXX='-KPIC'
11715 ;;
11716 *)
11717 ;;
11718 esac
11719 ;;
11720 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11721 case $cc_basename in
11722 CC*)
11723 lt_prog_compiler_wl_CXX='-Wl,'
11724 lt_prog_compiler_pic_CXX='-KPIC'
11725 lt_prog_compiler_static_CXX='-Bstatic'
11726 ;;
11727 esac
11728 ;;
11729 vxworks*)
11730 ;;
11731 *)
11732 lt_prog_compiler_can_build_shared_CXX=no
11733 ;;
11734 esac
11735 fi
11736
11737echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11738echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11739
11740#
11741# Check to make sure the PIC flag actually works.
11742#
11743if test -n "$lt_prog_compiler_pic_CXX"; then
11744
11745echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11746echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11747if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749else
11750 lt_prog_compiler_pic_works_CXX=no
11751 ac_outfile=conftest.$ac_objext
11752 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11753 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11754 # Insert the option either (1) after the last *FLAGS variable, or
11755 # (2) before a word containing "conftest.", or (3) at the end.
11756 # Note that $ac_compile itself does not contain backslashes and begins
11757 # with a dollar sign (not a hyphen), so the echo should work correctly.
11758 # The option is referenced via a variable to avoid confusing sed.
11759 lt_compile=`echo "$ac_compile" | $SED \
11760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11762 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060011763 (eval echo "\"\$as_me:11763: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011764 (eval "$lt_compile" 2>conftest.err)
11765 ac_status=$?
11766 cat conftest.err >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060011767 echo "$as_me:11767: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011768 if (exit $ac_status) && test -s "$ac_outfile"; then
11769 # The compiler can only warn and ignore the option if not recognized
11770 # So say no if there are warnings other than the usual output.
11771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11774 lt_prog_compiler_pic_works_CXX=yes
11775 fi
11776 fi
11777 $rm conftest*
11778
11779fi
11780echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11781echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11782
11783if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11784 case $lt_prog_compiler_pic_CXX in
11785 "" | " "*) ;;
11786 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11787 esac
11788else
11789 lt_prog_compiler_pic_CXX=
11790 lt_prog_compiler_can_build_shared_CXX=no
11791fi
11792
11793fi
11794case $host_os in
11795 # For platforms which do not support PIC, -DPIC is meaningless:
11796 *djgpp*)
11797 lt_prog_compiler_pic_CXX=
11798 ;;
11799 *)
11800 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11801 ;;
11802esac
11803
11804#
11805# Check to make sure the static flag actually works.
11806#
11807wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11808echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11809echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11810if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812else
11813 lt_prog_compiler_static_works_CXX=no
11814 save_LDFLAGS="$LDFLAGS"
11815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11816 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11818 # The linker can only warn and ignore the option if not recognized
11819 # So say no if there are warnings
11820 if test -s conftest.err; then
11821 # Append any errors to the config.log.
11822 cat conftest.err 1>&5
11823 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11825 if diff conftest.exp conftest.er2 >/dev/null; then
11826 lt_prog_compiler_static_works_CXX=yes
11827 fi
11828 else
11829 lt_prog_compiler_static_works_CXX=yes
11830 fi
11831 fi
11832 $rm conftest*
11833 LDFLAGS="$save_LDFLAGS"
11834
11835fi
11836echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11837echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11838
11839if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11840 :
11841else
11842 lt_prog_compiler_static_CXX=
11843fi
11844
11845
11846echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11847echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11848if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850else
11851 lt_cv_prog_compiler_c_o_CXX=no
11852 $rm -r conftest 2>/dev/null
11853 mkdir conftest
11854 cd conftest
11855 mkdir out
11856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11857
11858 lt_compiler_flag="-o out/conftest2.$ac_objext"
11859 # Insert the option either (1) after the last *FLAGS variable, or
11860 # (2) before a word containing "conftest.", or (3) at the end.
11861 # Note that $ac_compile itself does not contain backslashes and begins
11862 # with a dollar sign (not a hyphen), so the echo should work correctly.
11863 lt_compile=`echo "$ac_compile" | $SED \
11864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11866 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060011867 (eval echo "\"\$as_me:11867: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011868 (eval "$lt_compile" 2>out/conftest.err)
11869 ac_status=$?
11870 cat out/conftest.err >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060011871 echo "$as_me:11871: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11873 then
11874 # The compiler can only warn and ignore the option if not recognized
11875 # So say no if there are warnings
11876 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11879 lt_cv_prog_compiler_c_o_CXX=yes
11880 fi
11881 fi
11882 chmod u+w . 2>&5
11883 $rm conftest*
11884 # SGI C++ compiler will create directory out/ii_files/ for
11885 # template instantiation
11886 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11887 $rm out/* && rmdir out
11888 cd ..
11889 rmdir conftest
11890 $rm conftest*
11891
11892fi
11893echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11894echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11895
11896
11897hard_links="nottested"
11898if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11899 # do not overwrite the value of need_locks provided by the user
11900 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11901echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11902 hard_links=yes
11903 $rm conftest*
11904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11905 touch conftest.a
11906 ln conftest.a conftest.b 2>&5 || hard_links=no
11907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11908 echo "$as_me:$LINENO: result: $hard_links" >&5
11909echo "${ECHO_T}$hard_links" >&6
11910 if test "$hard_links" = no; then
11911 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11912echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11913 need_locks=warn
11914 fi
11915else
11916 need_locks=no
11917fi
11918
11919echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11920echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11921
11922 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11923 case $host_os in
11924 aix4* | aix5*)
11925 # If we're using GNU nm, then we don't want the "-C" option.
11926 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11927 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11928 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'
11929 else
11930 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'
11931 fi
11932 ;;
11933 pw32*)
11934 export_symbols_cmds_CXX="$ltdll_cmds"
11935 ;;
11936 cygwin* | mingw*)
11937 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'
11938 ;;
11939 *)
11940 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11941 ;;
11942 esac
11943
11944echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11945echo "${ECHO_T}$ld_shlibs_CXX" >&6
11946test "$ld_shlibs_CXX" = no && can_build_shared=no
11947
11948#
11949# Do we need to explicitly link libc?
11950#
11951case "x$archive_cmds_need_lc_CXX" in
11952x|xyes)
11953 # Assume -lc should be added
11954 archive_cmds_need_lc_CXX=yes
11955
11956 if test "$enable_shared" = yes && test "$GCC" = yes; then
11957 case $archive_cmds_CXX in
11958 *'~'*)
11959 # FIXME: we may have to deal with multi-command sequences.
11960 ;;
11961 '$CC '*)
11962 # Test whether the compiler implicitly links with -lc since on some
11963 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11964 # to ld, don't add -lc before -lgcc.
11965 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11966echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11967 $rm conftest*
11968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11969
11970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971 (eval $ac_compile) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } 2>conftest.err; then
11975 soname=conftest
11976 lib=conftest
11977 libobjs=conftest.$ac_objext
11978 deplibs=
11979 wl=$lt_prog_compiler_wl_CXX
11980 pic_flag=$lt_prog_compiler_pic_CXX
11981 compiler_flags=-v
11982 linker_flags=-v
11983 verstring=
11984 output_objdir=.
11985 libname=conftest
11986 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11987 allow_undefined_flag_CXX=
11988 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11989 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }
11993 then
11994 archive_cmds_need_lc_CXX=no
11995 else
11996 archive_cmds_need_lc_CXX=yes
11997 fi
11998 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11999 else
12000 cat conftest.err 1>&5
12001 fi
12002 $rm conftest*
12003 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12004echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12005 ;;
12006 esac
12007 fi
12008 ;;
12009esac
12010
12011echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12012echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12013library_names_spec=
12014libname_spec='lib$name'
12015soname_spec=
12016shrext_cmds=".so"
12017postinstall_cmds=
12018postuninstall_cmds=
12019finish_cmds=
12020finish_eval=
12021shlibpath_var=
12022shlibpath_overrides_runpath=unknown
12023version_type=none
12024dynamic_linker="$host_os ld.so"
12025sys_lib_dlsearch_path_spec="/lib /usr/lib"
12026if test "$GCC" = yes; then
12027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12028 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12029 # if the path contains ";" then we assume it to be the separator
12030 # otherwise default to the standard path separator (i.e. ":") - it is
12031 # assumed that no part of a normal pathname contains ";" but that should
12032 # okay in the real world where ";" in dirpaths is itself problematic.
12033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12034 else
12035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12036 fi
12037else
12038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12039fi
12040need_lib_prefix=unknown
12041hardcode_into_libs=no
12042
12043# when you set need_version to no, make sure it does not cause -set_version
12044# flags to be left without arguments
12045need_version=unknown
12046
12047case $host_os in
12048aix3*)
12049 version_type=linux
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12051 shlibpath_var=LIBPATH
12052
12053 # AIX 3 has no versioning support, so we append a major version to the name.
12054 soname_spec='${libname}${release}${shared_ext}$major'
12055 ;;
12056
12057aix4* | aix5*)
12058 version_type=linux
12059 need_lib_prefix=no
12060 need_version=no
12061 hardcode_into_libs=yes
12062 if test "$host_cpu" = ia64; then
12063 # AIX 5 supports IA64
12064 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12065 shlibpath_var=LD_LIBRARY_PATH
12066 else
12067 # With GCC up to 2.95.x, collect2 would create an import file
12068 # for dependence libraries. The import file would start with
12069 # the line `#! .'. This would cause the generated library to
12070 # depend on `.', always an invalid library. This was fixed in
12071 # development snapshots of GCC prior to 3.0.
12072 case $host_os in
12073 aix4 | aix4.[01] | aix4.[01].*)
12074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12075 echo ' yes '
12076 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12077 :
12078 else
12079 can_build_shared=no
12080 fi
12081 ;;
12082 esac
12083 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12084 # soname into executable. Probably we can add versioning support to
12085 # collect2, so additional links can be useful in future.
12086 if test "$aix_use_runtimelinking" = yes; then
12087 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12088 # instead of lib<name>.a to let people know that these are not
12089 # typical AIX shared libraries.
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12091 else
12092 # We preserve .a as extension for shared libraries through AIX4.2
12093 # and later when we are not doing run time linking.
12094 library_names_spec='${libname}${release}.a $libname.a'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 fi
12097 shlibpath_var=LIBPATH
12098 fi
12099 ;;
12100
12101amigaos*)
12102 library_names_spec='$libname.ixlibrary $libname.a'
12103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12104 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'
12105 ;;
12106
12107beos*)
12108 library_names_spec='${libname}${shared_ext}'
12109 dynamic_linker="$host_os ld.so"
12110 shlibpath_var=LIBRARY_PATH
12111 ;;
12112
12113bsdi[45]*)
12114 version_type=linux
12115 need_version=no
12116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12117 soname_spec='${libname}${release}${shared_ext}$major'
12118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12119 shlibpath_var=LD_LIBRARY_PATH
12120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12122 # the default ld.so.conf also contains /usr/contrib/lib and
12123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12124 # libtool to hard-code these into programs
12125 ;;
12126
12127cygwin* | mingw* | pw32*)
12128 version_type=windows
12129 shrext_cmds=".dll"
12130 need_version=no
12131 need_lib_prefix=no
12132
12133 case $GCC,$host_os in
12134 yes,cygwin* | yes,mingw* | yes,pw32*)
12135 library_names_spec='$libname.dll.a'
12136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12137 postinstall_cmds='base_file=`basename \${file}`~
12138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12139 dldir=$destdir/`dirname \$dlpath`~
12140 test -d \$dldir || mkdir -p \$dldir~
12141 $install_prog $dir/$dlname \$dldir/$dlname~
12142 chmod a+x \$dldir/$dlname'
12143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12144 dlpath=$dir/\$dldll~
12145 $rm \$dlpath'
12146 shlibpath_overrides_runpath=yes
12147
12148 case $host_os in
12149 cygwin*)
12150 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12151 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12152 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12153 ;;
12154 mingw*)
12155 # MinGW DLLs use traditional 'lib' prefix
12156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12157 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12158 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12159 # It is most probably a Windows format PATH printed by
12160 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12161 # path with ; separators, and with drive letters. We can handle the
12162 # drive letters (cygwin fileutils understands them), so leave them,
12163 # especially as we might pass files found there to a mingw objdump,
12164 # which wouldn't understand a cygwinified path. Ahh.
12165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12166 else
12167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12168 fi
12169 ;;
12170 pw32*)
12171 # pw32 DLLs use 'pw' prefix rather than 'lib'
12172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12173 ;;
12174 esac
12175 ;;
12176
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012177 *)
12178 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12179 ;;
12180 esac
12181 dynamic_linker='Win32 ld.exe'
12182 # FIXME: first we should search . and the directory the executable is in
12183 shlibpath_var=PATH
12184 ;;
12185
12186darwin* | rhapsody*)
12187 dynamic_linker="$host_os dyld"
12188 version_type=darwin
12189 need_lib_prefix=no
12190 need_version=no
12191 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12192 soname_spec='${libname}${release}${major}$shared_ext'
12193 shlibpath_overrides_runpath=yes
12194 shlibpath_var=DYLD_LIBRARY_PATH
12195 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12196 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12197 if test "$GCC" = yes; then
12198 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"`
12199 else
12200 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12201 fi
12202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12203 ;;
12204
12205dgux*)
12206 version_type=linux
12207 need_lib_prefix=no
12208 need_version=no
12209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12210 soname_spec='${libname}${release}${shared_ext}$major'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 ;;
12213
12214freebsd1*)
12215 dynamic_linker=no
12216 ;;
12217
12218kfreebsd*-gnu)
12219 version_type=linux
12220 need_lib_prefix=no
12221 need_version=no
12222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12223 soname_spec='${libname}${release}${shared_ext}$major'
12224 shlibpath_var=LD_LIBRARY_PATH
12225 shlibpath_overrides_runpath=no
12226 hardcode_into_libs=yes
12227 dynamic_linker='GNU ld.so'
12228 ;;
12229
12230freebsd* | dragonfly*)
12231 # DragonFly does not have aout. When/if they implement a new
12232 # versioning mechanism, adjust this.
12233 if test -x /usr/bin/objformat; then
12234 objformat=`/usr/bin/objformat`
12235 else
12236 case $host_os in
12237 freebsd[123]*) objformat=aout ;;
12238 *) objformat=elf ;;
12239 esac
12240 fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012241 version_type=freebsd-$objformat
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012242 case $version_type in
12243 freebsd-elf*)
12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12245 need_version=no
12246 need_lib_prefix=no
12247 ;;
12248 freebsd-*)
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12250 need_version=yes
12251 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012252 esac
12253 shlibpath_var=LD_LIBRARY_PATH
12254 case $host_os in
12255 freebsd2*)
12256 shlibpath_overrides_runpath=yes
12257 ;;
12258 freebsd3.[01]* | freebsdelf3.[01]*)
12259 shlibpath_overrides_runpath=yes
12260 hardcode_into_libs=yes
12261 ;;
12262 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12263 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12264 shlibpath_overrides_runpath=no
12265 hardcode_into_libs=yes
12266 ;;
12267 freebsd*) # from 4.6 on
12268 shlibpath_overrides_runpath=yes
12269 hardcode_into_libs=yes
12270 ;;
12271 esac
12272 ;;
12273
12274gnu*)
12275 version_type=linux
12276 need_lib_prefix=no
12277 need_version=no
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12279 soname_spec='${libname}${release}${shared_ext}$major'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 hardcode_into_libs=yes
12282 ;;
12283
12284hpux9* | hpux10* | hpux11*)
12285 # Give a soname corresponding to the major version so that dld.sl refuses to
12286 # link against other versions.
12287 version_type=sunos
12288 need_lib_prefix=no
12289 need_version=no
12290 case $host_cpu in
12291 ia64*)
12292 shrext_cmds='.so'
12293 hardcode_into_libs=yes
12294 dynamic_linker="$host_os dld.so"
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12298 soname_spec='${libname}${release}${shared_ext}$major'
12299 if test "X$HPUX_IA64_MODE" = X32; then
12300 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12301 else
12302 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12303 fi
12304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12305 ;;
12306 hppa*64*)
12307 shrext_cmds='.sl'
12308 hardcode_into_libs=yes
12309 dynamic_linker="$host_os dld.sl"
12310 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12313 soname_spec='${libname}${release}${shared_ext}$major'
12314 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12316 ;;
12317 *)
12318 shrext_cmds='.sl'
12319 dynamic_linker="$host_os dld.sl"
12320 shlibpath_var=SHLIB_PATH
12321 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323 soname_spec='${libname}${release}${shared_ext}$major'
12324 ;;
12325 esac
12326 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12327 postinstall_cmds='chmod 555 $lib'
12328 ;;
12329
12330interix3*)
12331 version_type=linux
12332 need_lib_prefix=no
12333 need_version=no
12334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12335 soname_spec='${libname}${release}${shared_ext}$major'
12336 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12337 shlibpath_var=LD_LIBRARY_PATH
12338 shlibpath_overrides_runpath=no
12339 hardcode_into_libs=yes
12340 ;;
12341
12342irix5* | irix6* | nonstopux*)
12343 case $host_os in
12344 nonstopux*) version_type=nonstopux ;;
12345 *)
12346 if test "$lt_cv_prog_gnu_ld" = yes; then
12347 version_type=linux
12348 else
12349 version_type=irix
12350 fi ;;
12351 esac
12352 need_lib_prefix=no
12353 need_version=no
12354 soname_spec='${libname}${release}${shared_ext}$major'
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12356 case $host_os in
12357 irix5* | nonstopux*)
12358 libsuff= shlibsuff=
12359 ;;
12360 *)
12361 case $LD in # libtool.m4 will add one of these switches to LD
12362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12363 libsuff= shlibsuff= libmagic=32-bit;;
12364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12365 libsuff=32 shlibsuff=N32 libmagic=N32;;
12366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12368 *) libsuff= shlibsuff= libmagic=never-match;;
12369 esac
12370 ;;
12371 esac
12372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12373 shlibpath_overrides_runpath=no
12374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12376 hardcode_into_libs=yes
12377 ;;
12378
12379# No shared lib support for Linux oldld, aout, or coff.
12380linux*oldld* | linux*aout* | linux*coff*)
12381 dynamic_linker=no
12382 ;;
12383
12384# This must be Linux ELF.
12385linux*)
12386 version_type=linux
12387 need_lib_prefix=no
12388 need_version=no
12389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390 soname_spec='${libname}${release}${shared_ext}$major'
12391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12392 shlibpath_var=LD_LIBRARY_PATH
12393 shlibpath_overrides_runpath=no
12394 # This implies no fast_install, which is unacceptable.
12395 # Some rework will be needed to allow for fast_install
12396 # before this can be enabled.
12397 hardcode_into_libs=yes
12398
12399 # Append ld.so.conf contents to the search path
12400 if test -f /etc/ld.so.conf; then
12401 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' ' '`
12402 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12403 fi
12404
12405 # We used to test for /lib/ld.so.1 and disable shared libraries on
12406 # powerpc, because MkLinux only supported shared libraries with the
12407 # GNU dynamic linker. Since this was broken with cross compilers,
12408 # most powerpc-linux boxes support dynamic linking these days and
12409 # people can always --disable-shared, the test was removed, and we
12410 # assume the GNU/Linux dynamic linker is in use.
12411 dynamic_linker='GNU/Linux ld.so'
12412 ;;
12413
12414knetbsd*-gnu)
12415 version_type=linux
12416 need_lib_prefix=no
12417 need_version=no
12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12419 soname_spec='${libname}${release}${shared_ext}$major'
12420 shlibpath_var=LD_LIBRARY_PATH
12421 shlibpath_overrides_runpath=no
12422 hardcode_into_libs=yes
12423 dynamic_linker='GNU ld.so'
12424 ;;
12425
12426netbsd*)
12427 version_type=sunos
12428 need_lib_prefix=no
12429 need_version=no
12430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12433 dynamic_linker='NetBSD (a.out) ld.so'
12434 else
12435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12436 soname_spec='${libname}${release}${shared_ext}$major'
12437 dynamic_linker='NetBSD ld.elf_so'
12438 fi
12439 shlibpath_var=LD_LIBRARY_PATH
12440 shlibpath_overrides_runpath=yes
12441 hardcode_into_libs=yes
12442 ;;
12443
12444newsos6)
12445 version_type=linux
12446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12447 shlibpath_var=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath=yes
12449 ;;
12450
12451nto-qnx*)
12452 version_type=linux
12453 need_lib_prefix=no
12454 need_version=no
12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12456 soname_spec='${libname}${release}${shared_ext}$major'
12457 shlibpath_var=LD_LIBRARY_PATH
12458 shlibpath_overrides_runpath=yes
12459 ;;
12460
12461openbsd*)
12462 version_type=sunos
12463 sys_lib_dlsearch_path_spec="/usr/lib"
12464 need_lib_prefix=no
12465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12466 case $host_os in
12467 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12468 *) need_version=no ;;
12469 esac
12470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12472 shlibpath_var=LD_LIBRARY_PATH
12473 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12474 case $host_os in
12475 openbsd2.[89] | openbsd2.[89].*)
12476 shlibpath_overrides_runpath=no
12477 ;;
12478 *)
12479 shlibpath_overrides_runpath=yes
12480 ;;
12481 esac
12482 else
12483 shlibpath_overrides_runpath=yes
12484 fi
12485 ;;
12486
12487os2*)
12488 libname_spec='$name'
12489 shrext_cmds=".dll"
12490 need_lib_prefix=no
12491 library_names_spec='$libname${shared_ext} $libname.a'
12492 dynamic_linker='OS/2 ld.exe'
12493 shlibpath_var=LIBPATH
12494 ;;
12495
12496osf3* | osf4* | osf5*)
12497 version_type=osf
12498 need_lib_prefix=no
12499 need_version=no
12500 soname_spec='${libname}${release}${shared_ext}$major'
12501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12502 shlibpath_var=LD_LIBRARY_PATH
12503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12505 ;;
12506
12507solaris*)
12508 version_type=linux
12509 need_lib_prefix=no
12510 need_version=no
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=yes
12515 hardcode_into_libs=yes
12516 # ldd complains unless libraries are executable
12517 postinstall_cmds='chmod +x $lib'
12518 ;;
12519
12520sunos4*)
12521 version_type=sunos
12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12524 shlibpath_var=LD_LIBRARY_PATH
12525 shlibpath_overrides_runpath=yes
12526 if test "$with_gnu_ld" = yes; then
12527 need_lib_prefix=no
12528 fi
12529 need_version=yes
12530 ;;
12531
12532sysv4 | sysv4.3*)
12533 version_type=linux
12534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12535 soname_spec='${libname}${release}${shared_ext}$major'
12536 shlibpath_var=LD_LIBRARY_PATH
12537 case $host_vendor in
12538 sni)
12539 shlibpath_overrides_runpath=no
12540 need_lib_prefix=no
12541 export_dynamic_flag_spec='${wl}-Blargedynsym'
12542 runpath_var=LD_RUN_PATH
12543 ;;
12544 siemens)
12545 need_lib_prefix=no
12546 ;;
12547 motorola)
12548 need_lib_prefix=no
12549 need_version=no
12550 shlibpath_overrides_runpath=no
12551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12552 ;;
12553 esac
12554 ;;
12555
12556sysv4*MP*)
12557 if test -d /usr/nec ;then
12558 version_type=linux
12559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12560 soname_spec='$libname${shared_ext}.$major'
12561 shlibpath_var=LD_LIBRARY_PATH
12562 fi
12563 ;;
12564
12565sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12566 version_type=freebsd-elf
12567 need_lib_prefix=no
12568 need_version=no
12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12570 soname_spec='${libname}${release}${shared_ext}$major'
12571 shlibpath_var=LD_LIBRARY_PATH
12572 hardcode_into_libs=yes
12573 if test "$with_gnu_ld" = yes; then
12574 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12575 shlibpath_overrides_runpath=no
12576 else
12577 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12578 shlibpath_overrides_runpath=yes
12579 case $host_os in
12580 sco3.2v5*)
12581 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12582 ;;
12583 esac
12584 fi
12585 sys_lib_dlsearch_path_spec='/usr/lib'
12586 ;;
12587
12588uts4*)
12589 version_type=linux
12590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12591 soname_spec='${libname}${release}${shared_ext}$major'
12592 shlibpath_var=LD_LIBRARY_PATH
12593 ;;
12594
12595*)
12596 dynamic_linker=no
12597 ;;
12598esac
12599echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12600echo "${ECHO_T}$dynamic_linker" >&6
12601test "$dynamic_linker" = no && can_build_shared=no
12602
12603variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12604if test "$GCC" = yes; then
12605 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12606fi
12607
12608echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12609echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12610hardcode_action_CXX=
12611if test -n "$hardcode_libdir_flag_spec_CXX" || \
12612 test -n "$runpath_var_CXX" || \
12613 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12614
12615 # We can hardcode non-existant directories.
12616 if test "$hardcode_direct_CXX" != no &&
12617 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12618 # have to relink, otherwise we might link with an installed library
12619 # when we should be linking with a yet-to-be-installed one
12620 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12621 test "$hardcode_minus_L_CXX" != no; then
12622 # Linking always hardcodes the temporary library directory.
12623 hardcode_action_CXX=relink
12624 else
12625 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12626 hardcode_action_CXX=immediate
12627 fi
12628else
12629 # We cannot hardcode anything, or else we can only hardcode existing
12630 # directories.
12631 hardcode_action_CXX=unsupported
12632fi
12633echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12634echo "${ECHO_T}$hardcode_action_CXX" >&6
12635
12636if test "$hardcode_action_CXX" = relink; then
12637 # Fast installation is not supported
12638 enable_fast_install=no
12639elif test "$shlibpath_overrides_runpath" = yes ||
12640 test "$enable_shared" = no; then
12641 # Fast installation is not necessary
12642 enable_fast_install=needless
12643fi
12644
12645
12646# The else clause should only fire when bootstrapping the
12647# libtool distribution, otherwise you forgot to ship ltmain.sh
12648# with your package, and you will get complaints that there are
12649# no rules to generate ltmain.sh.
12650if test -f "$ltmain"; then
12651 # See if we are running on zsh, and set the options which allow our commands through
12652 # without removal of \ escapes.
12653 if test -n "${ZSH_VERSION+set}" ; then
12654 setopt NO_GLOB_SUBST
12655 fi
12656 # Now quote all the things that may contain metacharacters while being
12657 # careful not to overquote the AC_SUBSTed values. We take copies of the
12658 # variables and quote the copies for generation of the libtool script.
12659 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12660 SED SHELL STRIP \
12661 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12662 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12663 deplibs_check_method reload_flag reload_cmds need_locks \
12664 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12665 lt_cv_sys_global_symbol_to_c_name_address \
12666 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12667 old_postinstall_cmds old_postuninstall_cmds \
12668 compiler_CXX \
12669 CC_CXX \
12670 LD_CXX \
12671 lt_prog_compiler_wl_CXX \
12672 lt_prog_compiler_pic_CXX \
12673 lt_prog_compiler_static_CXX \
12674 lt_prog_compiler_no_builtin_flag_CXX \
12675 export_dynamic_flag_spec_CXX \
12676 thread_safe_flag_spec_CXX \
12677 whole_archive_flag_spec_CXX \
12678 enable_shared_with_static_runtimes_CXX \
12679 old_archive_cmds_CXX \
12680 old_archive_from_new_cmds_CXX \
12681 predep_objects_CXX \
12682 postdep_objects_CXX \
12683 predeps_CXX \
12684 postdeps_CXX \
12685 compiler_lib_search_path_CXX \
12686 archive_cmds_CXX \
12687 archive_expsym_cmds_CXX \
12688 postinstall_cmds_CXX \
12689 postuninstall_cmds_CXX \
12690 old_archive_from_expsyms_cmds_CXX \
12691 allow_undefined_flag_CXX \
12692 no_undefined_flag_CXX \
12693 export_symbols_cmds_CXX \
12694 hardcode_libdir_flag_spec_CXX \
12695 hardcode_libdir_flag_spec_ld_CXX \
12696 hardcode_libdir_separator_CXX \
12697 hardcode_automatic_CXX \
12698 module_cmds_CXX \
12699 module_expsym_cmds_CXX \
12700 lt_cv_prog_compiler_c_o_CXX \
12701 exclude_expsyms_CXX \
12702 include_expsyms_CXX; do
12703
12704 case $var in
12705 old_archive_cmds_CXX | \
12706 old_archive_from_new_cmds_CXX | \
12707 archive_cmds_CXX | \
12708 archive_expsym_cmds_CXX | \
12709 module_cmds_CXX | \
12710 module_expsym_cmds_CXX | \
12711 old_archive_from_expsyms_cmds_CXX | \
12712 export_symbols_cmds_CXX | \
12713 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12714 postinstall_cmds | postuninstall_cmds | \
12715 old_postinstall_cmds | old_postuninstall_cmds | \
12716 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12717 # Double-quote double-evaled strings.
12718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12719 ;;
12720 *)
12721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12722 ;;
12723 esac
12724 done
12725
12726 case $lt_echo in
12727 *'\$0 --fallback-echo"')
12728 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12729 ;;
12730 esac
12731
12732cfgfile="$ofile"
12733
12734 cat <<__EOF__ >> "$cfgfile"
12735# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12736
12737# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12738
12739# Shell to use when invoking shell scripts.
12740SHELL=$lt_SHELL
12741
12742# Whether or not to build shared libraries.
12743build_libtool_libs=$enable_shared
12744
12745# Whether or not to build static libraries.
12746build_old_libs=$enable_static
12747
12748# Whether or not to add -lc for building shared libraries.
12749build_libtool_need_lc=$archive_cmds_need_lc_CXX
12750
12751# Whether or not to disallow shared libs when runtime libs are static
12752allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12753
12754# Whether or not to optimize for fast installation.
12755fast_install=$enable_fast_install
12756
12757# The host system.
12758host_alias=$host_alias
12759host=$host
12760host_os=$host_os
12761
12762# The build system.
12763build_alias=$build_alias
12764build=$build
12765build_os=$build_os
12766
12767# An echo program that does not interpret backslashes.
12768echo=$lt_echo
12769
12770# The archiver.
12771AR=$lt_AR
12772AR_FLAGS=$lt_AR_FLAGS
12773
12774# A C compiler.
12775LTCC=$lt_LTCC
12776
12777# LTCC compiler flags.
12778LTCFLAGS=$lt_LTCFLAGS
12779
12780# A language-specific compiler.
12781CC=$lt_compiler_CXX
12782
12783# Is the compiler the GNU C compiler?
12784with_gcc=$GCC_CXX
12785
12786# An ERE matcher.
12787EGREP=$lt_EGREP
12788
12789# The linker used to build libraries.
12790LD=$lt_LD_CXX
12791
12792# Whether we need hard or soft links.
12793LN_S=$lt_LN_S
12794
12795# A BSD-compatible nm program.
12796NM=$lt_NM
12797
12798# A symbol stripping program
12799STRIP=$lt_STRIP
12800
12801# Used to examine libraries when file_magic_cmd begins "file"
12802MAGIC_CMD=$MAGIC_CMD
12803
12804# Used on cygwin: DLL creation program.
12805DLLTOOL="$DLLTOOL"
12806
12807# Used on cygwin: object dumper.
12808OBJDUMP="$OBJDUMP"
12809
12810# Used on cygwin: assembler.
12811AS="$AS"
12812
12813# The name of the directory that contains temporary libtool files.
12814objdir=$objdir
12815
12816# How to create reloadable object files.
12817reload_flag=$lt_reload_flag
12818reload_cmds=$lt_reload_cmds
12819
12820# How to pass a linker flag through the compiler.
12821wl=$lt_lt_prog_compiler_wl_CXX
12822
12823# Object file suffix (normally "o").
12824objext="$ac_objext"
12825
12826# Old archive suffix (normally "a").
12827libext="$libext"
12828
12829# Shared library suffix (normally ".so").
12830shrext_cmds='$shrext_cmds'
12831
12832# Executable file suffix (normally "").
12833exeext="$exeext"
12834
12835# Additional compiler flags for building library objects.
12836pic_flag=$lt_lt_prog_compiler_pic_CXX
12837pic_mode=$pic_mode
12838
12839# What is the maximum length of a command?
12840max_cmd_len=$lt_cv_sys_max_cmd_len
12841
12842# Does compiler simultaneously support -c and -o options?
12843compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12844
12845# Must we lock files when doing compilation?
12846need_locks=$lt_need_locks
12847
12848# Do we need the lib prefix for modules?
12849need_lib_prefix=$need_lib_prefix
12850
12851# Do we need a version for libraries?
12852need_version=$need_version
12853
12854# Whether dlopen is supported.
12855dlopen_support=$enable_dlopen
12856
12857# Whether dlopen of programs is supported.
12858dlopen_self=$enable_dlopen_self
12859
12860# Whether dlopen of statically linked programs is supported.
12861dlopen_self_static=$enable_dlopen_self_static
12862
12863# Compiler flag to prevent dynamic linking.
12864link_static_flag=$lt_lt_prog_compiler_static_CXX
12865
12866# Compiler flag to turn off builtin functions.
12867no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12868
12869# Compiler flag to allow reflexive dlopens.
12870export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12871
12872# Compiler flag to generate shared objects directly from archives.
12873whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12874
12875# Compiler flag to generate thread-safe objects.
12876thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12877
12878# Library versioning type.
12879version_type=$version_type
12880
12881# Format of library name prefix.
12882libname_spec=$lt_libname_spec
12883
12884# List of archive names. First name is the real one, the rest are links.
12885# The last name is the one that the linker finds with -lNAME.
12886library_names_spec=$lt_library_names_spec
12887
12888# The coded name of the library, if different from the real name.
12889soname_spec=$lt_soname_spec
12890
12891# Commands used to build and install an old-style archive.
12892RANLIB=$lt_RANLIB
12893old_archive_cmds=$lt_old_archive_cmds_CXX
12894old_postinstall_cmds=$lt_old_postinstall_cmds
12895old_postuninstall_cmds=$lt_old_postuninstall_cmds
12896
12897# Create an old-style archive from a shared archive.
12898old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12899
12900# Create a temporary old-style archive to link instead of a shared archive.
12901old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12902
12903# Commands used to build and install a shared archive.
12904archive_cmds=$lt_archive_cmds_CXX
12905archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12906postinstall_cmds=$lt_postinstall_cmds
12907postuninstall_cmds=$lt_postuninstall_cmds
12908
12909# Commands used to build a loadable module (assumed same as above if empty)
12910module_cmds=$lt_module_cmds_CXX
12911module_expsym_cmds=$lt_module_expsym_cmds_CXX
12912
12913# Commands to strip libraries.
12914old_striplib=$lt_old_striplib
12915striplib=$lt_striplib
12916
12917# Dependencies to place before the objects being linked to create a
12918# shared library.
12919predep_objects=$lt_predep_objects_CXX
12920
12921# Dependencies to place after the objects being linked to create a
12922# shared library.
12923postdep_objects=$lt_postdep_objects_CXX
12924
12925# Dependencies to place before the objects being linked to create a
12926# shared library.
12927predeps=$lt_predeps_CXX
12928
12929# Dependencies to place after the objects being linked to create a
12930# shared library.
12931postdeps=$lt_postdeps_CXX
12932
12933# The library search path used internally by the compiler when linking
12934# a shared library.
12935compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12936
12937# Method to check whether dependent libraries are shared objects.
12938deplibs_check_method=$lt_deplibs_check_method
12939
12940# Command to use when deplibs_check_method == file_magic.
12941file_magic_cmd=$lt_file_magic_cmd
12942
12943# Flag that allows shared libraries with undefined symbols to be built.
12944allow_undefined_flag=$lt_allow_undefined_flag_CXX
12945
12946# Flag that forces no undefined symbols.
12947no_undefined_flag=$lt_no_undefined_flag_CXX
12948
12949# Commands used to finish a libtool library installation in a directory.
12950finish_cmds=$lt_finish_cmds
12951
12952# Same as above, but a single script fragment to be evaled but not shown.
12953finish_eval=$lt_finish_eval
12954
12955# Take the output of nm and produce a listing of raw symbols and C names.
12956global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12957
12958# Transform the output of nm in a proper C declaration
12959global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12960
12961# Transform the output of nm in a C name address pair
12962global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12963
12964# This is the shared library runtime path variable.
12965runpath_var=$runpath_var
12966
12967# This is the shared library path variable.
12968shlibpath_var=$shlibpath_var
12969
12970# Is shlibpath searched before the hard-coded library search path?
12971shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12972
12973# How to hardcode a shared library path into an executable.
12974hardcode_action=$hardcode_action_CXX
12975
12976# Whether we should hardcode library paths into libraries.
12977hardcode_into_libs=$hardcode_into_libs
12978
12979# Flag to hardcode \$libdir into a binary during linking.
12980# This must work even if \$libdir does not exist.
12981hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12982
12983# If ld is used when linking, flag to hardcode \$libdir into
12984# a binary during linking. This must work even if \$libdir does
12985# not exist.
12986hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12987
12988# Whether we need a single -rpath flag with a separated argument.
12989hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12990
12991# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12992# resulting binary.
12993hardcode_direct=$hardcode_direct_CXX
12994
12995# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12996# resulting binary.
12997hardcode_minus_L=$hardcode_minus_L_CXX
12998
12999# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13000# the resulting binary.
13001hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13002
13003# Set to yes if building a shared library automatically hardcodes DIR into the library
13004# and all subsequent libraries and executables linked against it.
13005hardcode_automatic=$hardcode_automatic_CXX
13006
13007# Variables whose values should be saved in libtool wrapper scripts and
13008# restored at relink time.
13009variables_saved_for_relink="$variables_saved_for_relink"
13010
13011# Whether libtool must link a program against all its dependency libraries.
13012link_all_deplibs=$link_all_deplibs_CXX
13013
13014# Compile-time system search path for libraries
13015sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13016
13017# Run-time system search path for libraries
13018sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13019
13020# Fix the shell variable \$srcfile for the compiler.
13021fix_srcfile_path="$fix_srcfile_path_CXX"
13022
13023# Set to yes if exported symbols are required.
13024always_export_symbols=$always_export_symbols_CXX
13025
13026# The commands to list exported symbols.
13027export_symbols_cmds=$lt_export_symbols_cmds_CXX
13028
13029# The commands to extract the exported symbol list from a shared archive.
13030extract_expsyms_cmds=$lt_extract_expsyms_cmds
13031
13032# Symbols that should not be listed in the preloaded symbols.
13033exclude_expsyms=$lt_exclude_expsyms_CXX
13034
13035# Symbols that must always be exported.
13036include_expsyms=$lt_include_expsyms_CXX
13037
13038# ### END LIBTOOL TAG CONFIG: $tagname
13039
13040__EOF__
13041
13042
13043else
13044 # If there is no Makefile yet, we rely on a make rule to execute
13045 # `config.status --recheck' to rerun these tests and create the
13046 # libtool script then.
13047 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13048 if test -f "$ltmain_in"; then
13049 test -f Makefile && make "$ltmain"
13050 fi
13051fi
13052
13053
13054ac_ext=c
13055ac_cpp='$CPP $CPPFLAGS'
13056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13058ac_compiler_gnu=$ac_cv_c_compiler_gnu
13059
13060CC=$lt_save_CC
13061LDCXX=$LD
13062LD=$lt_save_LD
13063GCC=$lt_save_GCC
13064with_gnu_ldcxx=$with_gnu_ld
13065with_gnu_ld=$lt_save_with_gnu_ld
13066lt_cv_path_LDCXX=$lt_cv_path_LD
13067lt_cv_path_LD=$lt_save_path_LD
13068lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13069lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13070
13071 else
13072 tagname=""
13073 fi
13074 ;;
13075
13076 F77)
13077 if test -n "$F77" && test "X$F77" != "Xno"; then
13078
13079ac_ext=f
13080ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13081ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13082ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13083
13084
13085archive_cmds_need_lc_F77=no
13086allow_undefined_flag_F77=
13087always_export_symbols_F77=no
13088archive_expsym_cmds_F77=
13089export_dynamic_flag_spec_F77=
13090hardcode_direct_F77=no
13091hardcode_libdir_flag_spec_F77=
13092hardcode_libdir_flag_spec_ld_F77=
13093hardcode_libdir_separator_F77=
13094hardcode_minus_L_F77=no
13095hardcode_automatic_F77=no
13096module_cmds_F77=
13097module_expsym_cmds_F77=
13098link_all_deplibs_F77=unknown
13099old_archive_cmds_F77=$old_archive_cmds
13100no_undefined_flag_F77=
13101whole_archive_flag_spec_F77=
13102enable_shared_with_static_runtimes_F77=no
13103
13104# Source file extension for f77 test sources.
13105ac_ext=f
13106
13107# Object file extension for compiled f77 test sources.
13108objext=o
13109objext_F77=$objext
13110
13111# Code to be used in simple compile tests
13112lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13113
13114# Code to be used in simple link tests
13115lt_simple_link_test_code=" program t\n end\n"
13116
13117# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13118
13119# If no C compiler was specified, use CC.
13120LTCC=${LTCC-"$CC"}
13121
13122# If no C compiler flags were specified, use CFLAGS.
13123LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13124
13125# Allow CC to be a program name with arguments.
13126compiler=$CC
13127
13128
13129# save warnings/boilerplate of simple test code
13130ac_outfile=conftest.$ac_objext
13131printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13132eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13133_lt_compiler_boilerplate=`cat conftest.err`
13134$rm conftest*
13135
13136ac_outfile=conftest.$ac_objext
13137printf "$lt_simple_link_test_code" >conftest.$ac_ext
13138eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13139_lt_linker_boilerplate=`cat conftest.err`
13140$rm conftest*
13141
13142
13143# Allow CC to be a program name with arguments.
13144lt_save_CC="$CC"
13145CC=${F77-"f77"}
13146compiler=$CC
13147compiler_F77=$CC
13148for cc_temp in $compiler""; do
13149 case $cc_temp in
13150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13152 \-*) ;;
13153 *) break;;
13154 esac
13155done
13156cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13157
13158
13159echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13160echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13161echo "$as_me:$LINENO: result: $can_build_shared" >&5
13162echo "${ECHO_T}$can_build_shared" >&6
13163
13164echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13165echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13166test "$can_build_shared" = "no" && enable_shared=no
13167
13168# On AIX, shared libraries and static libraries use the same namespace, and
13169# are all built from PIC.
13170case $host_os in
13171aix3*)
13172 test "$enable_shared" = yes && enable_static=no
13173 if test -n "$RANLIB"; then
13174 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13175 postinstall_cmds='$RANLIB $lib'
13176 fi
13177 ;;
13178aix4* | aix5*)
13179 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13180 test "$enable_shared" = yes && enable_static=no
13181 fi
13182 ;;
13183esac
13184echo "$as_me:$LINENO: result: $enable_shared" >&5
13185echo "${ECHO_T}$enable_shared" >&6
13186
13187echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13188echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13189# Make sure either enable_shared or enable_static is yes.
13190test "$enable_shared" = yes || enable_static=yes
13191echo "$as_me:$LINENO: result: $enable_static" >&5
13192echo "${ECHO_T}$enable_static" >&6
13193
13194GCC_F77="$G77"
13195LD_F77="$LD"
13196
13197lt_prog_compiler_wl_F77=
13198lt_prog_compiler_pic_F77=
13199lt_prog_compiler_static_F77=
13200
13201echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13202echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13203
13204 if test "$GCC" = yes; then
13205 lt_prog_compiler_wl_F77='-Wl,'
13206 lt_prog_compiler_static_F77='-static'
13207
13208 case $host_os in
13209 aix*)
13210 # All AIX code is PIC.
13211 if test "$host_cpu" = ia64; then
13212 # AIX 5 now supports IA64 processor
13213 lt_prog_compiler_static_F77='-Bstatic'
13214 fi
13215 ;;
13216
13217 amigaos*)
13218 # FIXME: we need at least 68020 code to build shared libraries, but
13219 # adding the `-m68020' flag to GCC prevents building anything better,
13220 # like `-m68040'.
13221 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13222 ;;
13223
13224 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13225 # PIC is the default for these OSes.
13226 ;;
13227
13228 mingw* | pw32* | os2*)
13229 # This hack is so that the source file can tell whether it is being
13230 # built for inclusion in a dll (and should export symbols for example).
13231 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13232 ;;
13233
13234 darwin* | rhapsody*)
13235 # PIC is the default on this platform
13236 # Common symbols not allowed in MH_DYLIB files
13237 lt_prog_compiler_pic_F77='-fno-common'
13238 ;;
13239
13240 interix3*)
13241 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13242 # Instead, we relocate shared libraries at runtime.
13243 ;;
13244
13245 msdosdjgpp*)
13246 # Just because we use GCC doesn't mean we suddenly get shared libraries
13247 # on systems that don't support them.
13248 lt_prog_compiler_can_build_shared_F77=no
13249 enable_shared=no
13250 ;;
13251
13252 sysv4*MP*)
13253 if test -d /usr/nec; then
13254 lt_prog_compiler_pic_F77=-Kconform_pic
13255 fi
13256 ;;
13257
13258 hpux*)
13259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13260 # not for PA HP-UX.
13261 case $host_cpu in
13262 hppa*64*|ia64*)
13263 # +Z the default
13264 ;;
13265 *)
13266 lt_prog_compiler_pic_F77='-fPIC'
13267 ;;
13268 esac
13269 ;;
13270
13271 *)
13272 lt_prog_compiler_pic_F77='-fPIC'
13273 ;;
13274 esac
13275 else
13276 # PORTME Check for flag to pass linker flags through the system compiler.
13277 case $host_os in
13278 aix*)
13279 lt_prog_compiler_wl_F77='-Wl,'
13280 if test "$host_cpu" = ia64; then
13281 # AIX 5 now supports IA64 processor
13282 lt_prog_compiler_static_F77='-Bstatic'
13283 else
13284 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13285 fi
13286 ;;
13287 darwin*)
13288 # PIC is the default on this platform
13289 # Common symbols not allowed in MH_DYLIB files
13290 case $cc_basename in
13291 xlc*)
13292 lt_prog_compiler_pic_F77='-qnocommon'
13293 lt_prog_compiler_wl_F77='-Wl,'
13294 ;;
13295 esac
13296 ;;
13297
13298 mingw* | pw32* | os2*)
13299 # This hack is so that the source file can tell whether it is being
13300 # built for inclusion in a dll (and should export symbols for example).
13301 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13302 ;;
13303
13304 hpux9* | hpux10* | hpux11*)
13305 lt_prog_compiler_wl_F77='-Wl,'
13306 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13307 # not for PA HP-UX.
13308 case $host_cpu in
13309 hppa*64*|ia64*)
13310 # +Z the default
13311 ;;
13312 *)
13313 lt_prog_compiler_pic_F77='+Z'
13314 ;;
13315 esac
13316 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13317 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13318 ;;
13319
13320 irix5* | irix6* | nonstopux*)
13321 lt_prog_compiler_wl_F77='-Wl,'
13322 # PIC (with -KPIC) is the default.
13323 lt_prog_compiler_static_F77='-non_shared'
13324 ;;
13325
13326 newsos6)
13327 lt_prog_compiler_pic_F77='-KPIC'
13328 lt_prog_compiler_static_F77='-Bstatic'
13329 ;;
13330
13331 linux*)
13332 case $cc_basename in
13333 icc* | ecc*)
13334 lt_prog_compiler_wl_F77='-Wl,'
13335 lt_prog_compiler_pic_F77='-KPIC'
13336 lt_prog_compiler_static_F77='-static'
13337 ;;
13338 pgcc* | pgf77* | pgf90* | pgf95*)
13339 # Portland Group compilers (*not* the Pentium gcc compiler,
13340 # which looks to be a dead project)
13341 lt_prog_compiler_wl_F77='-Wl,'
13342 lt_prog_compiler_pic_F77='-fpic'
13343 lt_prog_compiler_static_F77='-Bstatic'
13344 ;;
13345 ccc*)
13346 lt_prog_compiler_wl_F77='-Wl,'
13347 # All Alpha code is PIC.
13348 lt_prog_compiler_static_F77='-non_shared'
13349 ;;
13350 esac
13351 ;;
13352
13353 osf3* | osf4* | osf5*)
13354 lt_prog_compiler_wl_F77='-Wl,'
13355 # All OSF/1 code is PIC.
13356 lt_prog_compiler_static_F77='-non_shared'
13357 ;;
13358
13359 solaris*)
13360 lt_prog_compiler_pic_F77='-KPIC'
13361 lt_prog_compiler_static_F77='-Bstatic'
13362 case $cc_basename in
13363 f77* | f90* | f95*)
13364 lt_prog_compiler_wl_F77='-Qoption ld ';;
13365 *)
13366 lt_prog_compiler_wl_F77='-Wl,';;
13367 esac
13368 ;;
13369
13370 sunos4*)
13371 lt_prog_compiler_wl_F77='-Qoption ld '
13372 lt_prog_compiler_pic_F77='-PIC'
13373 lt_prog_compiler_static_F77='-Bstatic'
13374 ;;
13375
13376 sysv4 | sysv4.2uw2* | sysv4.3*)
13377 lt_prog_compiler_wl_F77='-Wl,'
13378 lt_prog_compiler_pic_F77='-KPIC'
13379 lt_prog_compiler_static_F77='-Bstatic'
13380 ;;
13381
13382 sysv4*MP*)
13383 if test -d /usr/nec ;then
13384 lt_prog_compiler_pic_F77='-Kconform_pic'
13385 lt_prog_compiler_static_F77='-Bstatic'
13386 fi
13387 ;;
13388
13389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13390 lt_prog_compiler_wl_F77='-Wl,'
13391 lt_prog_compiler_pic_F77='-KPIC'
13392 lt_prog_compiler_static_F77='-Bstatic'
13393 ;;
13394
13395 unicos*)
13396 lt_prog_compiler_wl_F77='-Wl,'
13397 lt_prog_compiler_can_build_shared_F77=no
13398 ;;
13399
13400 uts4*)
13401 lt_prog_compiler_pic_F77='-pic'
13402 lt_prog_compiler_static_F77='-Bstatic'
13403 ;;
13404
13405 *)
13406 lt_prog_compiler_can_build_shared_F77=no
13407 ;;
13408 esac
13409 fi
13410
13411echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13412echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13413
13414#
13415# Check to make sure the PIC flag actually works.
13416#
13417if test -n "$lt_prog_compiler_pic_F77"; then
13418
13419echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13420echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13421if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423else
13424 lt_prog_compiler_pic_works_F77=no
13425 ac_outfile=conftest.$ac_objext
13426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13427 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13428 # Insert the option either (1) after the last *FLAGS variable, or
13429 # (2) before a word containing "conftest.", or (3) at the end.
13430 # Note that $ac_compile itself does not contain backslashes and begins
13431 # with a dollar sign (not a hyphen), so the echo should work correctly.
13432 # The option is referenced via a variable to avoid confusing sed.
13433 lt_compile=`echo "$ac_compile" | $SED \
13434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13436 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060013437 (eval echo "\"\$as_me:13437: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013438 (eval "$lt_compile" 2>conftest.err)
13439 ac_status=$?
13440 cat conftest.err >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060013441 echo "$as_me:13441: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013442 if (exit $ac_status) && test -s "$ac_outfile"; then
13443 # The compiler can only warn and ignore the option if not recognized
13444 # So say no if there are warnings other than the usual output.
13445 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13448 lt_prog_compiler_pic_works_F77=yes
13449 fi
13450 fi
13451 $rm conftest*
13452
13453fi
13454echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13455echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13456
13457if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13458 case $lt_prog_compiler_pic_F77 in
13459 "" | " "*) ;;
13460 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13461 esac
13462else
13463 lt_prog_compiler_pic_F77=
13464 lt_prog_compiler_can_build_shared_F77=no
13465fi
13466
13467fi
13468case $host_os in
13469 # For platforms which do not support PIC, -DPIC is meaningless:
13470 *djgpp*)
13471 lt_prog_compiler_pic_F77=
13472 ;;
13473 *)
13474 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13475 ;;
13476esac
13477
13478#
13479# Check to make sure the static flag actually works.
13480#
13481wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13482echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13483echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13484if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486else
13487 lt_prog_compiler_static_works_F77=no
13488 save_LDFLAGS="$LDFLAGS"
13489 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13490 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13492 # The linker can only warn and ignore the option if not recognized
13493 # So say no if there are warnings
13494 if test -s conftest.err; then
13495 # Append any errors to the config.log.
13496 cat conftest.err 1>&5
13497 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13499 if diff conftest.exp conftest.er2 >/dev/null; then
13500 lt_prog_compiler_static_works_F77=yes
13501 fi
13502 else
13503 lt_prog_compiler_static_works_F77=yes
13504 fi
13505 fi
13506 $rm conftest*
13507 LDFLAGS="$save_LDFLAGS"
13508
13509fi
13510echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13511echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13512
13513if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13514 :
13515else
13516 lt_prog_compiler_static_F77=
13517fi
13518
13519
13520echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13521echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13522if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524else
13525 lt_cv_prog_compiler_c_o_F77=no
13526 $rm -r conftest 2>/dev/null
13527 mkdir conftest
13528 cd conftest
13529 mkdir out
13530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13531
13532 lt_compiler_flag="-o out/conftest2.$ac_objext"
13533 # Insert the option either (1) after the last *FLAGS variable, or
13534 # (2) before a word containing "conftest.", or (3) at the end.
13535 # Note that $ac_compile itself does not contain backslashes and begins
13536 # with a dollar sign (not a hyphen), so the echo should work correctly.
13537 lt_compile=`echo "$ac_compile" | $SED \
13538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13540 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060013541 (eval echo "\"\$as_me:13541: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013542 (eval "$lt_compile" 2>out/conftest.err)
13543 ac_status=$?
13544 cat out/conftest.err >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060013545 echo "$as_me:13545: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13547 then
13548 # The compiler can only warn and ignore the option if not recognized
13549 # So say no if there are warnings
13550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13553 lt_cv_prog_compiler_c_o_F77=yes
13554 fi
13555 fi
13556 chmod u+w . 2>&5
13557 $rm conftest*
13558 # SGI C++ compiler will create directory out/ii_files/ for
13559 # template instantiation
13560 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13561 $rm out/* && rmdir out
13562 cd ..
13563 rmdir conftest
13564 $rm conftest*
13565
13566fi
13567echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13568echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13569
13570
13571hard_links="nottested"
13572if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13573 # do not overwrite the value of need_locks provided by the user
13574 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13575echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13576 hard_links=yes
13577 $rm conftest*
13578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13579 touch conftest.a
13580 ln conftest.a conftest.b 2>&5 || hard_links=no
13581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13582 echo "$as_me:$LINENO: result: $hard_links" >&5
13583echo "${ECHO_T}$hard_links" >&6
13584 if test "$hard_links" = no; then
13585 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13586echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13587 need_locks=warn
13588 fi
13589else
13590 need_locks=no
13591fi
13592
13593echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13594echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13595
13596 runpath_var=
13597 allow_undefined_flag_F77=
13598 enable_shared_with_static_runtimes_F77=no
13599 archive_cmds_F77=
13600 archive_expsym_cmds_F77=
13601 old_archive_From_new_cmds_F77=
13602 old_archive_from_expsyms_cmds_F77=
13603 export_dynamic_flag_spec_F77=
13604 whole_archive_flag_spec_F77=
13605 thread_safe_flag_spec_F77=
13606 hardcode_libdir_flag_spec_F77=
13607 hardcode_libdir_flag_spec_ld_F77=
13608 hardcode_libdir_separator_F77=
13609 hardcode_direct_F77=no
13610 hardcode_minus_L_F77=no
13611 hardcode_shlibpath_var_F77=unsupported
13612 link_all_deplibs_F77=unknown
13613 hardcode_automatic_F77=no
13614 module_cmds_F77=
13615 module_expsym_cmds_F77=
13616 always_export_symbols_F77=no
13617 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13618 # include_expsyms should be a list of space-separated symbols to be *always*
13619 # included in the symbol list
13620 include_expsyms_F77=
13621 # exclude_expsyms can be an extended regexp of symbols to exclude
13622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13624 # as well as any symbol that contains `d'.
13625 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13627 # platforms (ab)use it in PIC code, but their linkers get confused if
13628 # the symbol is explicitly referenced. Since portable code cannot
13629 # rely on this symbol name, it's probably fine to never include it in
13630 # preloaded symbol tables.
13631 extract_expsyms_cmds=
13632 # Just being paranoid about ensuring that cc_basename is set.
13633 for cc_temp in $compiler""; do
13634 case $cc_temp in
13635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13637 \-*) ;;
13638 *) break;;
13639 esac
13640done
13641cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13642
13643 case $host_os in
13644 cygwin* | mingw* | pw32*)
13645 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13646 # When not using gcc, we currently assume that we are using
13647 # Microsoft Visual C++.
13648 if test "$GCC" != yes; then
13649 with_gnu_ld=no
13650 fi
13651 ;;
13652 interix*)
13653 # we just hope/assume this is gcc and not c89 (= MSVC++)
13654 with_gnu_ld=yes
13655 ;;
13656 openbsd*)
13657 with_gnu_ld=no
13658 ;;
13659 esac
13660
13661 ld_shlibs_F77=yes
13662 if test "$with_gnu_ld" = yes; then
13663 # If archive_cmds runs LD, not CC, wlarc should be empty
13664 wlarc='${wl}'
13665
13666 # Set some defaults for GNU ld with shared library support. These
13667 # are reset later if shared libraries are not supported. Putting them
13668 # here allows them to be overridden if necessary.
13669 runpath_var=LD_RUN_PATH
13670 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13671 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13672 # ancient GNU ld didn't support --whole-archive et. al.
13673 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13674 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13675 else
13676 whole_archive_flag_spec_F77=
13677 fi
13678 supports_anon_versioning=no
13679 case `$LD -v 2>/dev/null` in
13680 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13681 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13682 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13683 *\ 2.11.*) ;; # other 2.11 versions
13684 *) supports_anon_versioning=yes ;;
13685 esac
13686
13687 # See if GNU ld supports shared libraries.
13688 case $host_os in
13689 aix3* | aix4* | aix5*)
13690 # On AIX/PPC, the GNU linker is very broken
13691 if test "$host_cpu" != ia64; then
13692 ld_shlibs_F77=no
13693 cat <<EOF 1>&2
13694
13695*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13696*** to be unable to reliably create shared libraries on AIX.
13697*** Therefore, libtool is disabling shared libraries support. If you
13698*** really care for shared libraries, you may want to modify your PATH
13699*** so that a non-GNU linker is found, and then restart.
13700
13701EOF
13702 fi
13703 ;;
13704
13705 amigaos*)
13706 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)'
13707 hardcode_libdir_flag_spec_F77='-L$libdir'
13708 hardcode_minus_L_F77=yes
13709
13710 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13711 # that the semantics of dynamic libraries on AmigaOS, at least up
13712 # to version 4, is to share data among multiple programs linked
13713 # with the same dynamic library. Since this doesn't match the
13714 # behavior of shared libraries on other platforms, we can't use
13715 # them.
13716 ld_shlibs_F77=no
13717 ;;
13718
13719 beos*)
13720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13721 allow_undefined_flag_F77=unsupported
13722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13723 # support --undefined. This deserves some investigation. FIXME
13724 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725 else
13726 ld_shlibs_F77=no
13727 fi
13728 ;;
13729
13730 cygwin* | mingw* | pw32*)
13731 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13732 # as there is no search path for DLLs.
13733 hardcode_libdir_flag_spec_F77='-L$libdir'
13734 allow_undefined_flag_F77=unsupported
13735 always_export_symbols_F77=no
13736 enable_shared_with_static_runtimes_F77=yes
13737 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13738
13739 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13740 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13741 # If the export-symbols file already is a .def file (1st line
13742 # is EXPORTS), use it as is; otherwise, prepend...
13743 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13744 cp $export_symbols $output_objdir/$soname.def;
13745 else
13746 echo EXPORTS > $output_objdir/$soname.def;
13747 cat $export_symbols >> $output_objdir/$soname.def;
13748 fi~
13749 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13750 else
13751 ld_shlibs_F77=no
13752 fi
13753 ;;
13754
13755 interix3*)
13756 hardcode_direct_F77=no
13757 hardcode_shlibpath_var_F77=no
13758 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13759 export_dynamic_flag_spec_F77='${wl}-E'
13760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13761 # Instead, shared libraries are loaded at an image base (0x10000000 by
13762 # default) and relocated if they conflict, which is a slow very memory
13763 # consuming and fragmenting process. To avoid this, we pick a random,
13764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13765 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13766 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'
13767 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'
13768 ;;
13769
13770 linux*)
13771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13772 tmp_addflag=
13773 case $cc_basename,$host_cpu in
13774 pgcc*) # Portland Group C compiler
13775 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'
13776 tmp_addflag=' $pic_flag'
13777 ;;
13778 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13779 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'
13780 tmp_addflag=' $pic_flag -Mnomain' ;;
13781 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13782 tmp_addflag=' -i_dynamic' ;;
13783 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13784 tmp_addflag=' -i_dynamic -nofor_main' ;;
13785 ifc* | ifort*) # Intel Fortran compiler
13786 tmp_addflag=' -nofor_main' ;;
13787 esac
13788 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13789
13790 if test $supports_anon_versioning = yes; then
13791 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13793 $echo "local: *; };" >> $output_objdir/$libname.ver~
13794 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13795 fi
13796 else
13797 ld_shlibs_F77=no
13798 fi
13799 ;;
13800
13801 netbsd*)
13802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13803 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13804 wlarc=
13805 else
13806 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13807 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13808 fi
13809 ;;
13810
13811 solaris*)
13812 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13813 ld_shlibs_F77=no
13814 cat <<EOF 1>&2
13815
13816*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13817*** create shared libraries on Solaris systems. Therefore, libtool
13818*** is disabling shared libraries support. We urge you to upgrade GNU
13819*** binutils to release 2.9.1 or newer. Another option is to modify
13820*** your PATH or compiler configuration so that the native linker is
13821*** used, and then restart.
13822
13823EOF
13824 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13825 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13826 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13827 else
13828 ld_shlibs_F77=no
13829 fi
13830 ;;
13831
13832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13833 case `$LD -v 2>&1` in
13834 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13835 ld_shlibs_F77=no
13836 cat <<_LT_EOF 1>&2
13837
13838*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13839*** reliably create shared libraries on SCO systems. Therefore, libtool
13840*** is disabling shared libraries support. We urge you to upgrade GNU
13841*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13842*** your PATH or compiler configuration so that the native linker is
13843*** used, and then restart.
13844
13845_LT_EOF
13846 ;;
13847 *)
13848 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13849 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13850 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13851 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13852 else
13853 ld_shlibs_F77=no
13854 fi
13855 ;;
13856 esac
13857 ;;
13858
13859 sunos4*)
13860 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13861 wlarc=
13862 hardcode_direct_F77=yes
13863 hardcode_shlibpath_var_F77=no
13864 ;;
13865
13866 *)
13867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13868 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13869 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13870 else
13871 ld_shlibs_F77=no
13872 fi
13873 ;;
13874 esac
13875
13876 if test "$ld_shlibs_F77" = no; then
13877 runpath_var=
13878 hardcode_libdir_flag_spec_F77=
13879 export_dynamic_flag_spec_F77=
13880 whole_archive_flag_spec_F77=
13881 fi
13882 else
13883 # PORTME fill in a description of your system's linker (not GNU ld)
13884 case $host_os in
13885 aix3*)
13886 allow_undefined_flag_F77=unsupported
13887 always_export_symbols_F77=yes
13888 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'
13889 # Note: this linker hardcodes the directories in LIBPATH if there
13890 # are no directories specified by -L.
13891 hardcode_minus_L_F77=yes
13892 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13893 # Neither direct hardcoding nor static linking is supported with a
13894 # broken collect2.
13895 hardcode_direct_F77=unsupported
13896 fi
13897 ;;
13898
13899 aix4* | aix5*)
13900 if test "$host_cpu" = ia64; then
13901 # On IA64, the linker does run time linking by default, so we don't
13902 # have to do anything special.
13903 aix_use_runtimelinking=no
13904 exp_sym_flag='-Bexport'
13905 no_entry_flag=""
13906 else
13907 # If we're using GNU nm, then we don't want the "-C" option.
13908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13909 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13910 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'
13911 else
13912 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'
13913 fi
13914 aix_use_runtimelinking=no
13915
13916 # Test if we are trying to use run time linking or normal
13917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13918 # need to do runtime linking.
13919 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13920 for ld_flag in $LDFLAGS; do
13921 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13922 aix_use_runtimelinking=yes
13923 break
13924 fi
13925 done
13926 ;;
13927 esac
13928
13929 exp_sym_flag='-bexport'
13930 no_entry_flag='-bnoentry'
13931 fi
13932
13933 # When large executables or shared objects are built, AIX ld can
13934 # have problems creating the table of contents. If linking a library
13935 # or program results in "error TOC overflow" add -mminimal-toc to
13936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13938
13939 archive_cmds_F77=''
13940 hardcode_direct_F77=yes
13941 hardcode_libdir_separator_F77=':'
13942 link_all_deplibs_F77=yes
13943
13944 if test "$GCC" = yes; then
13945 case $host_os in aix4.[012]|aix4.[012].*)
13946 # We only want to do this on AIX 4.2 and lower, the check
13947 # below for broken collect2 doesn't work under 4.3+
13948 collect2name=`${CC} -print-prog-name=collect2`
13949 if test -f "$collect2name" && \
13950 strings "$collect2name" | grep resolve_lib_name >/dev/null
13951 then
13952 # We have reworked collect2
13953 hardcode_direct_F77=yes
13954 else
13955 # We have old collect2
13956 hardcode_direct_F77=unsupported
13957 # It fails to find uninstalled libraries when the uninstalled
13958 # path is not listed in the libpath. Setting hardcode_minus_L
13959 # to unsupported forces relinking
13960 hardcode_minus_L_F77=yes
13961 hardcode_libdir_flag_spec_F77='-L$libdir'
13962 hardcode_libdir_separator_F77=
13963 fi
13964 ;;
13965 esac
13966 shared_flag='-shared'
13967 if test "$aix_use_runtimelinking" = yes; then
13968 shared_flag="$shared_flag "'${wl}-G'
13969 fi
13970 else
13971 # not using gcc
13972 if test "$host_cpu" = ia64; then
13973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13974 # chokes on -Wl,-G. The following line is correct:
13975 shared_flag='-G'
13976 else
13977 if test "$aix_use_runtimelinking" = yes; then
13978 shared_flag='${wl}-G'
13979 else
13980 shared_flag='${wl}-bM:SRE'
13981 fi
13982 fi
13983 fi
13984
13985 # It seems that -bexpall does not export symbols beginning with
13986 # underscore (_), so it is better to generate a list of symbols to export.
13987 always_export_symbols_F77=yes
13988 if test "$aix_use_runtimelinking" = yes; then
13989 # Warning - without using the other runtime loading flags (-brtl),
13990 # -berok will link without error, but may produce a broken library.
13991 allow_undefined_flag_F77='-berok'
13992 # Determine the default libpath from the value encoded in an empty executable.
13993 cat >conftest.$ac_ext <<_ACEOF
13994 program main
13995
13996 end
13997_ACEOF
13998rm -f conftest.$ac_objext conftest$ac_exeext
13999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14000 (eval $ac_link) 2>conftest.er1
14001 ac_status=$?
14002 grep -v '^ *+' conftest.er1 >conftest.err
14003 rm -f conftest.er1
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -z "$ac_f77_werror_flag"
14008 || test ! -s conftest.err'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; } &&
14014 { ac_try='test -s conftest$ac_exeext'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020
14021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14022}'`
14023# Check for a 64-bit object if we didn't find anything.
14024if 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; }
14025}'`; fi
14026else
14027 echo "$as_me: failed program was:" >&5
14028sed 's/^/| /' conftest.$ac_ext >&5
14029
14030fi
14031rm -f conftest.err conftest.$ac_objext \
14032 conftest$ac_exeext conftest.$ac_ext
14033if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14034
14035 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14036 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"
14037 else
14038 if test "$host_cpu" = ia64; then
14039 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14040 allow_undefined_flag_F77="-z nodefs"
14041 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"
14042 else
14043 # Determine the default libpath from the value encoded in an empty executable.
14044 cat >conftest.$ac_ext <<_ACEOF
14045 program main
14046
14047 end
14048_ACEOF
14049rm -f conftest.$ac_objext conftest$ac_exeext
14050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14051 (eval $ac_link) 2>conftest.er1
14052 ac_status=$?
14053 grep -v '^ *+' conftest.er1 >conftest.err
14054 rm -f conftest.er1
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } &&
14058 { ac_try='test -z "$ac_f77_werror_flag"
14059 || test ! -s conftest.err'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14062 ac_status=$?
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; } &&
14065 { ac_try='test -s conftest$ac_exeext'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14068 ac_status=$?
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14071
14072aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14073}'`
14074# Check for a 64-bit object if we didn't find anything.
14075if 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; }
14076}'`; fi
14077else
14078 echo "$as_me: failed program was:" >&5
14079sed 's/^/| /' conftest.$ac_ext >&5
14080
14081fi
14082rm -f conftest.err conftest.$ac_objext \
14083 conftest$ac_exeext conftest.$ac_ext
14084if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14085
14086 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14087 # Warning - without using the other run time loading flags,
14088 # -berok will link without error, but may produce a broken library.
14089 no_undefined_flag_F77=' ${wl}-bernotok'
14090 allow_undefined_flag_F77=' ${wl}-berok'
14091 # Exported symbols can be pulled into shared objects from archives
14092 whole_archive_flag_spec_F77='$convenience'
14093 archive_cmds_need_lc_F77=yes
14094 # This is similar to how AIX traditionally builds its shared libraries.
14095 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'
14096 fi
14097 fi
14098 ;;
14099
14100 amigaos*)
14101 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)'
14102 hardcode_libdir_flag_spec_F77='-L$libdir'
14103 hardcode_minus_L_F77=yes
14104 # see comment about different semantics on the GNU ld section
14105 ld_shlibs_F77=no
14106 ;;
14107
14108 bsdi[45]*)
14109 export_dynamic_flag_spec_F77=-rdynamic
14110 ;;
14111
14112 cygwin* | mingw* | pw32*)
14113 # When not using gcc, we currently assume that we are using
14114 # Microsoft Visual C++.
14115 # hardcode_libdir_flag_spec is actually meaningless, as there is
14116 # no search path for DLLs.
14117 hardcode_libdir_flag_spec_F77=' '
14118 allow_undefined_flag_F77=unsupported
14119 # Tell ltmain to make .lib files, not .a files.
14120 libext=lib
14121 # Tell ltmain to make .dll files, not .so files.
14122 shrext_cmds=".dll"
14123 # FIXME: Setting linknames here is a bad hack.
14124 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14125 # The linker will automatically build a .lib file if we build a DLL.
14126 old_archive_From_new_cmds_F77='true'
14127 # FIXME: Should let the user specify the lib program.
14128 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14129 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14130 enable_shared_with_static_runtimes_F77=yes
14131 ;;
14132
14133 darwin* | rhapsody*)
14134 case $host_os in
14135 rhapsody* | darwin1.[012])
14136 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14137 ;;
14138 *) # Darwin 1.3 on
14139 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14140 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14141 else
14142 case ${MACOSX_DEPLOYMENT_TARGET} in
14143 10.[012])
14144 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14145 ;;
14146 10.*)
14147 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14148 ;;
14149 esac
14150 fi
14151 ;;
14152 esac
14153 archive_cmds_need_lc_F77=no
14154 hardcode_direct_F77=no
14155 hardcode_automatic_F77=yes
14156 hardcode_shlibpath_var_F77=unsupported
14157 whole_archive_flag_spec_F77=''
14158 link_all_deplibs_F77=yes
14159 if test "$GCC" = yes ; then
14160 output_verbose_link_cmd='echo'
14161 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14162 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14163 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14164 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}'
14165 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}'
14166 else
14167 case $cc_basename in
14168 xlc*)
14169 output_verbose_link_cmd='echo'
14170 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14171 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14173 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}'
14174 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}'
14175 ;;
14176 *)
14177 ld_shlibs_F77=no
14178 ;;
14179 esac
14180 fi
14181 ;;
14182
14183 dgux*)
14184 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14185 hardcode_libdir_flag_spec_F77='-L$libdir'
14186 hardcode_shlibpath_var_F77=no
14187 ;;
14188
14189 freebsd1*)
14190 ld_shlibs_F77=no
14191 ;;
14192
14193 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14194 # support. Future versions do this automatically, but an explicit c++rt0.o
14195 # does not break anything, and helps significantly (at the cost of a little
14196 # extra space).
14197 freebsd2.2*)
14198 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14199 hardcode_libdir_flag_spec_F77='-R$libdir'
14200 hardcode_direct_F77=yes
14201 hardcode_shlibpath_var_F77=no
14202 ;;
14203
14204 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14205 freebsd2*)
14206 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14207 hardcode_direct_F77=yes
14208 hardcode_minus_L_F77=yes
14209 hardcode_shlibpath_var_F77=no
14210 ;;
14211
14212 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14213 freebsd* | kfreebsd*-gnu | dragonfly*)
14214 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14215 hardcode_libdir_flag_spec_F77='-R$libdir'
14216 hardcode_direct_F77=yes
14217 hardcode_shlibpath_var_F77=no
14218 ;;
14219
14220 hpux9*)
14221 if test "$GCC" = yes; then
14222 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'
14223 else
14224 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'
14225 fi
14226 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14227 hardcode_libdir_separator_F77=:
14228 hardcode_direct_F77=yes
14229
14230 # hardcode_minus_L: Not really in the search PATH,
14231 # but as the default location of the library.
14232 hardcode_minus_L_F77=yes
14233 export_dynamic_flag_spec_F77='${wl}-E'
14234 ;;
14235
14236 hpux10*)
14237 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14238 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14239 else
14240 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14241 fi
14242 if test "$with_gnu_ld" = no; then
14243 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14244 hardcode_libdir_separator_F77=:
14245
14246 hardcode_direct_F77=yes
14247 export_dynamic_flag_spec_F77='${wl}-E'
14248
14249 # hardcode_minus_L: Not really in the search PATH,
14250 # but as the default location of the library.
14251 hardcode_minus_L_F77=yes
14252 fi
14253 ;;
14254
14255 hpux11*)
14256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14257 case $host_cpu in
14258 hppa*64*)
14259 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14260 ;;
14261 ia64*)
14262 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14263 ;;
14264 *)
14265 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14266 ;;
14267 esac
14268 else
14269 case $host_cpu in
14270 hppa*64*)
14271 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14272 ;;
14273 ia64*)
14274 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14275 ;;
14276 *)
14277 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14278 ;;
14279 esac
14280 fi
14281 if test "$with_gnu_ld" = no; then
14282 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14283 hardcode_libdir_separator_F77=:
14284
14285 case $host_cpu in
14286 hppa*64*|ia64*)
14287 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14288 hardcode_direct_F77=no
14289 hardcode_shlibpath_var_F77=no
14290 ;;
14291 *)
14292 hardcode_direct_F77=yes
14293 export_dynamic_flag_spec_F77='${wl}-E'
14294
14295 # hardcode_minus_L: Not really in the search PATH,
14296 # but as the default location of the library.
14297 hardcode_minus_L_F77=yes
14298 ;;
14299 esac
14300 fi
14301 ;;
14302
14303 irix5* | irix6* | nonstopux*)
14304 if test "$GCC" = yes; then
14305 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'
14306 else
14307 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'
14308 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14309 fi
14310 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14311 hardcode_libdir_separator_F77=:
14312 link_all_deplibs_F77=yes
14313 ;;
14314
14315 netbsd*)
14316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14317 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14318 else
14319 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14320 fi
14321 hardcode_libdir_flag_spec_F77='-R$libdir'
14322 hardcode_direct_F77=yes
14323 hardcode_shlibpath_var_F77=no
14324 ;;
14325
14326 newsos6)
14327 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14328 hardcode_direct_F77=yes
14329 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14330 hardcode_libdir_separator_F77=:
14331 hardcode_shlibpath_var_F77=no
14332 ;;
14333
14334 openbsd*)
14335 hardcode_direct_F77=yes
14336 hardcode_shlibpath_var_F77=no
14337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14338 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14339 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14340 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14341 export_dynamic_flag_spec_F77='${wl}-E'
14342 else
14343 case $host_os in
14344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14345 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14346 hardcode_libdir_flag_spec_F77='-R$libdir'
14347 ;;
14348 *)
14349 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14350 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14351 ;;
14352 esac
14353 fi
14354 ;;
14355
14356 os2*)
14357 hardcode_libdir_flag_spec_F77='-L$libdir'
14358 hardcode_minus_L_F77=yes
14359 allow_undefined_flag_F77=unsupported
14360 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'
14361 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14362 ;;
14363
14364 osf3*)
14365 if test "$GCC" = yes; then
14366 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14367 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'
14368 else
14369 allow_undefined_flag_F77=' -expect_unresolved \*'
14370 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'
14371 fi
14372 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14373 hardcode_libdir_separator_F77=:
14374 ;;
14375
14376 osf4* | osf5*) # as osf3* with the addition of -msym flag
14377 if test "$GCC" = yes; then
14378 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14379 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'
14380 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14381 else
14382 allow_undefined_flag_F77=' -expect_unresolved \*'
14383 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'
14384 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~
14385 $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'
14386
14387 # Both c and cxx compiler support -rpath directly
14388 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14389 fi
14390 hardcode_libdir_separator_F77=:
14391 ;;
14392
14393 solaris*)
14394 no_undefined_flag_F77=' -z text'
14395 if test "$GCC" = yes; then
14396 wlarc='${wl}'
14397 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14398 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14399 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14400 else
14401 wlarc=''
14402 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14403 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14405 fi
14406 hardcode_libdir_flag_spec_F77='-R$libdir'
14407 hardcode_shlibpath_var_F77=no
14408 case $host_os in
14409 solaris2.[0-5] | solaris2.[0-5].*) ;;
14410 *)
14411 # The compiler driver will combine linker options so we
14412 # cannot just pass the convience library names through
14413 # without $wl, iff we do not link with $LD.
14414 # Luckily, gcc supports the same syntax we need for Sun Studio.
14415 # Supported since Solaris 2.6 (maybe 2.5.1?)
14416 case $wlarc in
14417 '')
14418 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14419 *)
14420 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' ;;
14421 esac ;;
14422 esac
14423 link_all_deplibs_F77=yes
14424 ;;
14425
14426 sunos4*)
14427 if test "x$host_vendor" = xsequent; then
14428 # Use $CC to link under sequent, because it throws in some extra .o
14429 # files that make .init and .fini sections work.
14430 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14431 else
14432 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14433 fi
14434 hardcode_libdir_flag_spec_F77='-L$libdir'
14435 hardcode_direct_F77=yes
14436 hardcode_minus_L_F77=yes
14437 hardcode_shlibpath_var_F77=no
14438 ;;
14439
14440 sysv4)
14441 case $host_vendor in
14442 sni)
14443 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14444 hardcode_direct_F77=yes # is this really true???
14445 ;;
14446 siemens)
14447 ## LD is ld it makes a PLAMLIB
14448 ## CC just makes a GrossModule.
14449 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14450 reload_cmds_F77='$CC -r -o $output$reload_objs'
14451 hardcode_direct_F77=no
14452 ;;
14453 motorola)
14454 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14455 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14456 ;;
14457 esac
14458 runpath_var='LD_RUN_PATH'
14459 hardcode_shlibpath_var_F77=no
14460 ;;
14461
14462 sysv4.3*)
14463 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14464 hardcode_shlibpath_var_F77=no
14465 export_dynamic_flag_spec_F77='-Bexport'
14466 ;;
14467
14468 sysv4*MP*)
14469 if test -d /usr/nec; then
14470 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14471 hardcode_shlibpath_var_F77=no
14472 runpath_var=LD_RUN_PATH
14473 hardcode_runpath_var=yes
14474 ld_shlibs_F77=yes
14475 fi
14476 ;;
14477
14478 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14479 no_undefined_flag_F77='${wl}-z,text'
14480 archive_cmds_need_lc_F77=no
14481 hardcode_shlibpath_var_F77=no
14482 runpath_var='LD_RUN_PATH'
14483
14484 if test "$GCC" = yes; then
14485 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14486 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14487 else
14488 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14489 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14490 fi
14491 ;;
14492
14493 sysv5* | sco3.2v5* | sco5v6*)
14494 # Note: We can NOT use -z defs as we might desire, because we do not
14495 # link with -lc, and that would cause any symbols used from libc to
14496 # always be unresolved, which means just about no library would
14497 # ever link correctly. If we're not using GNU ld we use -z text
14498 # though, which does catch some bad symbols but isn't as heavy-handed
14499 # as -z defs.
14500 no_undefined_flag_F77='${wl}-z,text'
14501 allow_undefined_flag_F77='${wl}-z,nodefs'
14502 archive_cmds_need_lc_F77=no
14503 hardcode_shlibpath_var_F77=no
14504 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14505 hardcode_libdir_separator_F77=':'
14506 link_all_deplibs_F77=yes
14507 export_dynamic_flag_spec_F77='${wl}-Bexport'
14508 runpath_var='LD_RUN_PATH'
14509
14510 if test "$GCC" = yes; then
14511 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14512 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14513 else
14514 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14515 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14516 fi
14517 ;;
14518
14519 uts4*)
14520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14521 hardcode_libdir_flag_spec_F77='-L$libdir'
14522 hardcode_shlibpath_var_F77=no
14523 ;;
14524
14525 *)
14526 ld_shlibs_F77=no
14527 ;;
14528 esac
14529 fi
14530
14531echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14532echo "${ECHO_T}$ld_shlibs_F77" >&6
14533test "$ld_shlibs_F77" = no && can_build_shared=no
14534
14535#
14536# Do we need to explicitly link libc?
14537#
14538case "x$archive_cmds_need_lc_F77" in
14539x|xyes)
14540 # Assume -lc should be added
14541 archive_cmds_need_lc_F77=yes
14542
14543 if test "$enable_shared" = yes && test "$GCC" = yes; then
14544 case $archive_cmds_F77 in
14545 *'~'*)
14546 # FIXME: we may have to deal with multi-command sequences.
14547 ;;
14548 '$CC '*)
14549 # Test whether the compiler implicitly links with -lc since on some
14550 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14551 # to ld, don't add -lc before -lgcc.
14552 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14553echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14554 $rm conftest*
14555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14556
14557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14558 (eval $ac_compile) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } 2>conftest.err; then
14562 soname=conftest
14563 lib=conftest
14564 libobjs=conftest.$ac_objext
14565 deplibs=
14566 wl=$lt_prog_compiler_wl_F77
14567 pic_flag=$lt_prog_compiler_pic_F77
14568 compiler_flags=-v
14569 linker_flags=-v
14570 verstring=
14571 output_objdir=.
14572 libname=conftest
14573 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14574 allow_undefined_flag_F77=
14575 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14576 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }
14580 then
14581 archive_cmds_need_lc_F77=no
14582 else
14583 archive_cmds_need_lc_F77=yes
14584 fi
14585 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14586 else
14587 cat conftest.err 1>&5
14588 fi
14589 $rm conftest*
14590 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14591echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14592 ;;
14593 esac
14594 fi
14595 ;;
14596esac
14597
14598echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14599echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14600library_names_spec=
14601libname_spec='lib$name'
14602soname_spec=
14603shrext_cmds=".so"
14604postinstall_cmds=
14605postuninstall_cmds=
14606finish_cmds=
14607finish_eval=
14608shlibpath_var=
14609shlibpath_overrides_runpath=unknown
14610version_type=none
14611dynamic_linker="$host_os ld.so"
14612sys_lib_dlsearch_path_spec="/lib /usr/lib"
14613if test "$GCC" = yes; then
14614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14615 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14616 # if the path contains ";" then we assume it to be the separator
14617 # otherwise default to the standard path separator (i.e. ":") - it is
14618 # assumed that no part of a normal pathname contains ";" but that should
14619 # okay in the real world where ";" in dirpaths is itself problematic.
14620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14621 else
14622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14623 fi
14624else
14625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14626fi
14627need_lib_prefix=unknown
14628hardcode_into_libs=no
14629
14630# when you set need_version to no, make sure it does not cause -set_version
14631# flags to be left without arguments
14632need_version=unknown
14633
14634case $host_os in
14635aix3*)
14636 version_type=linux
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14638 shlibpath_var=LIBPATH
14639
14640 # AIX 3 has no versioning support, so we append a major version to the name.
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 ;;
14643
14644aix4* | aix5*)
14645 version_type=linux
14646 need_lib_prefix=no
14647 need_version=no
14648 hardcode_into_libs=yes
14649 if test "$host_cpu" = ia64; then
14650 # AIX 5 supports IA64
14651 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 else
14654 # With GCC up to 2.95.x, collect2 would create an import file
14655 # for dependence libraries. The import file would start with
14656 # the line `#! .'. This would cause the generated library to
14657 # depend on `.', always an invalid library. This was fixed in
14658 # development snapshots of GCC prior to 3.0.
14659 case $host_os in
14660 aix4 | aix4.[01] | aix4.[01].*)
14661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14662 echo ' yes '
14663 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14664 :
14665 else
14666 can_build_shared=no
14667 fi
14668 ;;
14669 esac
14670 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14671 # soname into executable. Probably we can add versioning support to
14672 # collect2, so additional links can be useful in future.
14673 if test "$aix_use_runtimelinking" = yes; then
14674 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14675 # instead of lib<name>.a to let people know that these are not
14676 # typical AIX shared libraries.
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678 else
14679 # We preserve .a as extension for shared libraries through AIX4.2
14680 # and later when we are not doing run time linking.
14681 library_names_spec='${libname}${release}.a $libname.a'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 fi
14684 shlibpath_var=LIBPATH
14685 fi
14686 ;;
14687
14688amigaos*)
14689 library_names_spec='$libname.ixlibrary $libname.a'
14690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14691 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'
14692 ;;
14693
14694beos*)
14695 library_names_spec='${libname}${shared_ext}'
14696 dynamic_linker="$host_os ld.so"
14697 shlibpath_var=LIBRARY_PATH
14698 ;;
14699
14700bsdi[45]*)
14701 version_type=linux
14702 need_version=no
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14709 # the default ld.so.conf also contains /usr/contrib/lib and
14710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14711 # libtool to hard-code these into programs
14712 ;;
14713
14714cygwin* | mingw* | pw32*)
14715 version_type=windows
14716 shrext_cmds=".dll"
14717 need_version=no
14718 need_lib_prefix=no
14719
14720 case $GCC,$host_os in
14721 yes,cygwin* | yes,mingw* | yes,pw32*)
14722 library_names_spec='$libname.dll.a'
14723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14724 postinstall_cmds='base_file=`basename \${file}`~
14725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14726 dldir=$destdir/`dirname \$dlpath`~
14727 test -d \$dldir || mkdir -p \$dldir~
14728 $install_prog $dir/$dlname \$dldir/$dlname~
14729 chmod a+x \$dldir/$dlname'
14730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14731 dlpath=$dir/\$dldll~
14732 $rm \$dlpath'
14733 shlibpath_overrides_runpath=yes
14734
14735 case $host_os in
14736 cygwin*)
14737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14739 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14740 ;;
14741 mingw*)
14742 # MinGW DLLs use traditional 'lib' prefix
14743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14744 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14745 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14746 # It is most probably a Windows format PATH printed by
14747 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14748 # path with ; separators, and with drive letters. We can handle the
14749 # drive letters (cygwin fileutils understands them), so leave them,
14750 # especially as we might pass files found there to a mingw objdump,
14751 # which wouldn't understand a cygwinified path. Ahh.
14752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14753 else
14754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14755 fi
14756 ;;
14757 pw32*)
14758 # pw32 DLLs use 'pw' prefix rather than 'lib'
14759 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14760 ;;
14761 esac
14762 ;;
14763
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014764 *)
14765 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14766 ;;
14767 esac
14768 dynamic_linker='Win32 ld.exe'
14769 # FIXME: first we should search . and the directory the executable is in
14770 shlibpath_var=PATH
14771 ;;
14772
14773darwin* | rhapsody*)
14774 dynamic_linker="$host_os dyld"
14775 version_type=darwin
14776 need_lib_prefix=no
14777 need_version=no
14778 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14779 soname_spec='${libname}${release}${major}$shared_ext'
14780 shlibpath_overrides_runpath=yes
14781 shlibpath_var=DYLD_LIBRARY_PATH
14782 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14783 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14784 if test "$GCC" = yes; then
14785 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"`
14786 else
14787 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14788 fi
14789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14790 ;;
14791
14792dgux*)
14793 version_type=linux
14794 need_lib_prefix=no
14795 need_version=no
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14797 soname_spec='${libname}${release}${shared_ext}$major'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 ;;
14800
14801freebsd1*)
14802 dynamic_linker=no
14803 ;;
14804
14805kfreebsd*-gnu)
14806 version_type=linux
14807 need_lib_prefix=no
14808 need_version=no
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14810 soname_spec='${libname}${release}${shared_ext}$major'
14811 shlibpath_var=LD_LIBRARY_PATH
14812 shlibpath_overrides_runpath=no
14813 hardcode_into_libs=yes
14814 dynamic_linker='GNU ld.so'
14815 ;;
14816
14817freebsd* | dragonfly*)
14818 # DragonFly does not have aout. When/if they implement a new
14819 # versioning mechanism, adjust this.
14820 if test -x /usr/bin/objformat; then
14821 objformat=`/usr/bin/objformat`
14822 else
14823 case $host_os in
14824 freebsd[123]*) objformat=aout ;;
14825 *) objformat=elf ;;
14826 esac
14827 fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060014828 version_type=freebsd-$objformat
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014829 case $version_type in
14830 freebsd-elf*)
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14832 need_version=no
14833 need_lib_prefix=no
14834 ;;
14835 freebsd-*)
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14837 need_version=yes
14838 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014839 esac
14840 shlibpath_var=LD_LIBRARY_PATH
14841 case $host_os in
14842 freebsd2*)
14843 shlibpath_overrides_runpath=yes
14844 ;;
14845 freebsd3.[01]* | freebsdelf3.[01]*)
14846 shlibpath_overrides_runpath=yes
14847 hardcode_into_libs=yes
14848 ;;
14849 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14850 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14851 shlibpath_overrides_runpath=no
14852 hardcode_into_libs=yes
14853 ;;
14854 freebsd*) # from 4.6 on
14855 shlibpath_overrides_runpath=yes
14856 hardcode_into_libs=yes
14857 ;;
14858 esac
14859 ;;
14860
14861gnu*)
14862 version_type=linux
14863 need_lib_prefix=no
14864 need_version=no
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 shlibpath_var=LD_LIBRARY_PATH
14868 hardcode_into_libs=yes
14869 ;;
14870
14871hpux9* | hpux10* | hpux11*)
14872 # Give a soname corresponding to the major version so that dld.sl refuses to
14873 # link against other versions.
14874 version_type=sunos
14875 need_lib_prefix=no
14876 need_version=no
14877 case $host_cpu in
14878 ia64*)
14879 shrext_cmds='.so'
14880 hardcode_into_libs=yes
14881 dynamic_linker="$host_os dld.so"
14882 shlibpath_var=LD_LIBRARY_PATH
14883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 if test "X$HPUX_IA64_MODE" = X32; then
14887 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14888 else
14889 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14890 fi
14891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14892 ;;
14893 hppa*64*)
14894 shrext_cmds='.sl'
14895 hardcode_into_libs=yes
14896 dynamic_linker="$host_os dld.sl"
14897 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900 soname_spec='${libname}${release}${shared_ext}$major'
14901 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14903 ;;
14904 *)
14905 shrext_cmds='.sl'
14906 dynamic_linker="$host_os dld.sl"
14907 shlibpath_var=SHLIB_PATH
14908 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 ;;
14912 esac
14913 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14914 postinstall_cmds='chmod 555 $lib'
14915 ;;
14916
14917interix3*)
14918 version_type=linux
14919 need_lib_prefix=no
14920 need_version=no
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14924 shlibpath_var=LD_LIBRARY_PATH
14925 shlibpath_overrides_runpath=no
14926 hardcode_into_libs=yes
14927 ;;
14928
14929irix5* | irix6* | nonstopux*)
14930 case $host_os in
14931 nonstopux*) version_type=nonstopux ;;
14932 *)
14933 if test "$lt_cv_prog_gnu_ld" = yes; then
14934 version_type=linux
14935 else
14936 version_type=irix
14937 fi ;;
14938 esac
14939 need_lib_prefix=no
14940 need_version=no
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14943 case $host_os in
14944 irix5* | nonstopux*)
14945 libsuff= shlibsuff=
14946 ;;
14947 *)
14948 case $LD in # libtool.m4 will add one of these switches to LD
14949 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14950 libsuff= shlibsuff= libmagic=32-bit;;
14951 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14952 libsuff=32 shlibsuff=N32 libmagic=N32;;
14953 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14954 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14955 *) libsuff= shlibsuff= libmagic=never-match;;
14956 esac
14957 ;;
14958 esac
14959 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14960 shlibpath_overrides_runpath=no
14961 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14962 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14963 hardcode_into_libs=yes
14964 ;;
14965
14966# No shared lib support for Linux oldld, aout, or coff.
14967linux*oldld* | linux*aout* | linux*coff*)
14968 dynamic_linker=no
14969 ;;
14970
14971# This must be Linux ELF.
14972linux*)
14973 version_type=linux
14974 need_lib_prefix=no
14975 need_version=no
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 shlibpath_overrides_runpath=no
14981 # This implies no fast_install, which is unacceptable.
14982 # Some rework will be needed to allow for fast_install
14983 # before this can be enabled.
14984 hardcode_into_libs=yes
14985
14986 # Append ld.so.conf contents to the search path
14987 if test -f /etc/ld.so.conf; then
14988 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' ' '`
14989 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14990 fi
14991
14992 # We used to test for /lib/ld.so.1 and disable shared libraries on
14993 # powerpc, because MkLinux only supported shared libraries with the
14994 # GNU dynamic linker. Since this was broken with cross compilers,
14995 # most powerpc-linux boxes support dynamic linking these days and
14996 # people can always --disable-shared, the test was removed, and we
14997 # assume the GNU/Linux dynamic linker is in use.
14998 dynamic_linker='GNU/Linux ld.so'
14999 ;;
15000
15001knetbsd*-gnu)
15002 version_type=linux
15003 need_lib_prefix=no
15004 need_version=no
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 shlibpath_var=LD_LIBRARY_PATH
15008 shlibpath_overrides_runpath=no
15009 hardcode_into_libs=yes
15010 dynamic_linker='GNU ld.so'
15011 ;;
15012
15013netbsd*)
15014 version_type=sunos
15015 need_lib_prefix=no
15016 need_version=no
15017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15020 dynamic_linker='NetBSD (a.out) ld.so'
15021 else
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 dynamic_linker='NetBSD ld.elf_so'
15025 fi
15026 shlibpath_var=LD_LIBRARY_PATH
15027 shlibpath_overrides_runpath=yes
15028 hardcode_into_libs=yes
15029 ;;
15030
15031newsos6)
15032 version_type=linux
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15034 shlibpath_var=LD_LIBRARY_PATH
15035 shlibpath_overrides_runpath=yes
15036 ;;
15037
15038nto-qnx*)
15039 version_type=linux
15040 need_lib_prefix=no
15041 need_version=no
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 shlibpath_overrides_runpath=yes
15046 ;;
15047
15048openbsd*)
15049 version_type=sunos
15050 sys_lib_dlsearch_path_spec="/usr/lib"
15051 need_lib_prefix=no
15052 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15053 case $host_os in
15054 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15055 *) need_version=no ;;
15056 esac
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15059 shlibpath_var=LD_LIBRARY_PATH
15060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15061 case $host_os in
15062 openbsd2.[89] | openbsd2.[89].*)
15063 shlibpath_overrides_runpath=no
15064 ;;
15065 *)
15066 shlibpath_overrides_runpath=yes
15067 ;;
15068 esac
15069 else
15070 shlibpath_overrides_runpath=yes
15071 fi
15072 ;;
15073
15074os2*)
15075 libname_spec='$name'
15076 shrext_cmds=".dll"
15077 need_lib_prefix=no
15078 library_names_spec='$libname${shared_ext} $libname.a'
15079 dynamic_linker='OS/2 ld.exe'
15080 shlibpath_var=LIBPATH
15081 ;;
15082
15083osf3* | osf4* | osf5*)
15084 version_type=osf
15085 need_lib_prefix=no
15086 need_version=no
15087 soname_spec='${libname}${release}${shared_ext}$major'
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15092 ;;
15093
15094solaris*)
15095 version_type=linux
15096 need_lib_prefix=no
15097 need_version=no
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099 soname_spec='${libname}${release}${shared_ext}$major'
15100 shlibpath_var=LD_LIBRARY_PATH
15101 shlibpath_overrides_runpath=yes
15102 hardcode_into_libs=yes
15103 # ldd complains unless libraries are executable
15104 postinstall_cmds='chmod +x $lib'
15105 ;;
15106
15107sunos4*)
15108 version_type=sunos
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15110 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15111 shlibpath_var=LD_LIBRARY_PATH
15112 shlibpath_overrides_runpath=yes
15113 if test "$with_gnu_ld" = yes; then
15114 need_lib_prefix=no
15115 fi
15116 need_version=yes
15117 ;;
15118
15119sysv4 | sysv4.3*)
15120 version_type=linux
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 case $host_vendor in
15125 sni)
15126 shlibpath_overrides_runpath=no
15127 need_lib_prefix=no
15128 export_dynamic_flag_spec='${wl}-Blargedynsym'
15129 runpath_var=LD_RUN_PATH
15130 ;;
15131 siemens)
15132 need_lib_prefix=no
15133 ;;
15134 motorola)
15135 need_lib_prefix=no
15136 need_version=no
15137 shlibpath_overrides_runpath=no
15138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15139 ;;
15140 esac
15141 ;;
15142
15143sysv4*MP*)
15144 if test -d /usr/nec ;then
15145 version_type=linux
15146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15147 soname_spec='$libname${shared_ext}.$major'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 fi
15150 ;;
15151
15152sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15153 version_type=freebsd-elf
15154 need_lib_prefix=no
15155 need_version=no
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 hardcode_into_libs=yes
15160 if test "$with_gnu_ld" = yes; then
15161 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15162 shlibpath_overrides_runpath=no
15163 else
15164 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15165 shlibpath_overrides_runpath=yes
15166 case $host_os in
15167 sco3.2v5*)
15168 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15169 ;;
15170 esac
15171 fi
15172 sys_lib_dlsearch_path_spec='/usr/lib'
15173 ;;
15174
15175uts4*)
15176 version_type=linux
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 shlibpath_var=LD_LIBRARY_PATH
15180 ;;
15181
15182*)
15183 dynamic_linker=no
15184 ;;
15185esac
15186echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15187echo "${ECHO_T}$dynamic_linker" >&6
15188test "$dynamic_linker" = no && can_build_shared=no
15189
15190variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15191if test "$GCC" = yes; then
15192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15193fi
15194
15195echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15196echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15197hardcode_action_F77=
15198if test -n "$hardcode_libdir_flag_spec_F77" || \
15199 test -n "$runpath_var_F77" || \
15200 test "X$hardcode_automatic_F77" = "Xyes" ; then
15201
15202 # We can hardcode non-existant directories.
15203 if test "$hardcode_direct_F77" != no &&
15204 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15205 # have to relink, otherwise we might link with an installed library
15206 # when we should be linking with a yet-to-be-installed one
15207 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15208 test "$hardcode_minus_L_F77" != no; then
15209 # Linking always hardcodes the temporary library directory.
15210 hardcode_action_F77=relink
15211 else
15212 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15213 hardcode_action_F77=immediate
15214 fi
15215else
15216 # We cannot hardcode anything, or else we can only hardcode existing
15217 # directories.
15218 hardcode_action_F77=unsupported
15219fi
15220echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15221echo "${ECHO_T}$hardcode_action_F77" >&6
15222
15223if test "$hardcode_action_F77" = relink; then
15224 # Fast installation is not supported
15225 enable_fast_install=no
15226elif test "$shlibpath_overrides_runpath" = yes ||
15227 test "$enable_shared" = no; then
15228 # Fast installation is not necessary
15229 enable_fast_install=needless
15230fi
15231
15232
15233# The else clause should only fire when bootstrapping the
15234# libtool distribution, otherwise you forgot to ship ltmain.sh
15235# with your package, and you will get complaints that there are
15236# no rules to generate ltmain.sh.
15237if test -f "$ltmain"; then
15238 # See if we are running on zsh, and set the options which allow our commands through
15239 # without removal of \ escapes.
15240 if test -n "${ZSH_VERSION+set}" ; then
15241 setopt NO_GLOB_SUBST
15242 fi
15243 # Now quote all the things that may contain metacharacters while being
15244 # careful not to overquote the AC_SUBSTed values. We take copies of the
15245 # variables and quote the copies for generation of the libtool script.
15246 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15247 SED SHELL STRIP \
15248 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15249 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15250 deplibs_check_method reload_flag reload_cmds need_locks \
15251 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15252 lt_cv_sys_global_symbol_to_c_name_address \
15253 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15254 old_postinstall_cmds old_postuninstall_cmds \
15255 compiler_F77 \
15256 CC_F77 \
15257 LD_F77 \
15258 lt_prog_compiler_wl_F77 \
15259 lt_prog_compiler_pic_F77 \
15260 lt_prog_compiler_static_F77 \
15261 lt_prog_compiler_no_builtin_flag_F77 \
15262 export_dynamic_flag_spec_F77 \
15263 thread_safe_flag_spec_F77 \
15264 whole_archive_flag_spec_F77 \
15265 enable_shared_with_static_runtimes_F77 \
15266 old_archive_cmds_F77 \
15267 old_archive_from_new_cmds_F77 \
15268 predep_objects_F77 \
15269 postdep_objects_F77 \
15270 predeps_F77 \
15271 postdeps_F77 \
15272 compiler_lib_search_path_F77 \
15273 archive_cmds_F77 \
15274 archive_expsym_cmds_F77 \
15275 postinstall_cmds_F77 \
15276 postuninstall_cmds_F77 \
15277 old_archive_from_expsyms_cmds_F77 \
15278 allow_undefined_flag_F77 \
15279 no_undefined_flag_F77 \
15280 export_symbols_cmds_F77 \
15281 hardcode_libdir_flag_spec_F77 \
15282 hardcode_libdir_flag_spec_ld_F77 \
15283 hardcode_libdir_separator_F77 \
15284 hardcode_automatic_F77 \
15285 module_cmds_F77 \
15286 module_expsym_cmds_F77 \
15287 lt_cv_prog_compiler_c_o_F77 \
15288 exclude_expsyms_F77 \
15289 include_expsyms_F77; do
15290
15291 case $var in
15292 old_archive_cmds_F77 | \
15293 old_archive_from_new_cmds_F77 | \
15294 archive_cmds_F77 | \
15295 archive_expsym_cmds_F77 | \
15296 module_cmds_F77 | \
15297 module_expsym_cmds_F77 | \
15298 old_archive_from_expsyms_cmds_F77 | \
15299 export_symbols_cmds_F77 | \
15300 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15301 postinstall_cmds | postuninstall_cmds | \
15302 old_postinstall_cmds | old_postuninstall_cmds | \
15303 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15304 # Double-quote double-evaled strings.
15305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15306 ;;
15307 *)
15308 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15309 ;;
15310 esac
15311 done
15312
15313 case $lt_echo in
15314 *'\$0 --fallback-echo"')
15315 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15316 ;;
15317 esac
15318
15319cfgfile="$ofile"
15320
15321 cat <<__EOF__ >> "$cfgfile"
15322# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15323
15324# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15325
15326# Shell to use when invoking shell scripts.
15327SHELL=$lt_SHELL
15328
15329# Whether or not to build shared libraries.
15330build_libtool_libs=$enable_shared
15331
15332# Whether or not to build static libraries.
15333build_old_libs=$enable_static
15334
15335# Whether or not to add -lc for building shared libraries.
15336build_libtool_need_lc=$archive_cmds_need_lc_F77
15337
15338# Whether or not to disallow shared libs when runtime libs are static
15339allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15340
15341# Whether or not to optimize for fast installation.
15342fast_install=$enable_fast_install
15343
15344# The host system.
15345host_alias=$host_alias
15346host=$host
15347host_os=$host_os
15348
15349# The build system.
15350build_alias=$build_alias
15351build=$build
15352build_os=$build_os
15353
15354# An echo program that does not interpret backslashes.
15355echo=$lt_echo
15356
15357# The archiver.
15358AR=$lt_AR
15359AR_FLAGS=$lt_AR_FLAGS
15360
15361# A C compiler.
15362LTCC=$lt_LTCC
15363
15364# LTCC compiler flags.
15365LTCFLAGS=$lt_LTCFLAGS
15366
15367# A language-specific compiler.
15368CC=$lt_compiler_F77
15369
15370# Is the compiler the GNU C compiler?
15371with_gcc=$GCC_F77
15372
15373# An ERE matcher.
15374EGREP=$lt_EGREP
15375
15376# The linker used to build libraries.
15377LD=$lt_LD_F77
15378
15379# Whether we need hard or soft links.
15380LN_S=$lt_LN_S
15381
15382# A BSD-compatible nm program.
15383NM=$lt_NM
15384
15385# A symbol stripping program
15386STRIP=$lt_STRIP
15387
15388# Used to examine libraries when file_magic_cmd begins "file"
15389MAGIC_CMD=$MAGIC_CMD
15390
15391# Used on cygwin: DLL creation program.
15392DLLTOOL="$DLLTOOL"
15393
15394# Used on cygwin: object dumper.
15395OBJDUMP="$OBJDUMP"
15396
15397# Used on cygwin: assembler.
15398AS="$AS"
15399
15400# The name of the directory that contains temporary libtool files.
15401objdir=$objdir
15402
15403# How to create reloadable object files.
15404reload_flag=$lt_reload_flag
15405reload_cmds=$lt_reload_cmds
15406
15407# How to pass a linker flag through the compiler.
15408wl=$lt_lt_prog_compiler_wl_F77
15409
15410# Object file suffix (normally "o").
15411objext="$ac_objext"
15412
15413# Old archive suffix (normally "a").
15414libext="$libext"
15415
15416# Shared library suffix (normally ".so").
15417shrext_cmds='$shrext_cmds'
15418
15419# Executable file suffix (normally "").
15420exeext="$exeext"
15421
15422# Additional compiler flags for building library objects.
15423pic_flag=$lt_lt_prog_compiler_pic_F77
15424pic_mode=$pic_mode
15425
15426# What is the maximum length of a command?
15427max_cmd_len=$lt_cv_sys_max_cmd_len
15428
15429# Does compiler simultaneously support -c and -o options?
15430compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15431
15432# Must we lock files when doing compilation?
15433need_locks=$lt_need_locks
15434
15435# Do we need the lib prefix for modules?
15436need_lib_prefix=$need_lib_prefix
15437
15438# Do we need a version for libraries?
15439need_version=$need_version
15440
15441# Whether dlopen is supported.
15442dlopen_support=$enable_dlopen
15443
15444# Whether dlopen of programs is supported.
15445dlopen_self=$enable_dlopen_self
15446
15447# Whether dlopen of statically linked programs is supported.
15448dlopen_self_static=$enable_dlopen_self_static
15449
15450# Compiler flag to prevent dynamic linking.
15451link_static_flag=$lt_lt_prog_compiler_static_F77
15452
15453# Compiler flag to turn off builtin functions.
15454no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15455
15456# Compiler flag to allow reflexive dlopens.
15457export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15458
15459# Compiler flag to generate shared objects directly from archives.
15460whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15461
15462# Compiler flag to generate thread-safe objects.
15463thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15464
15465# Library versioning type.
15466version_type=$version_type
15467
15468# Format of library name prefix.
15469libname_spec=$lt_libname_spec
15470
15471# List of archive names. First name is the real one, the rest are links.
15472# The last name is the one that the linker finds with -lNAME.
15473library_names_spec=$lt_library_names_spec
15474
15475# The coded name of the library, if different from the real name.
15476soname_spec=$lt_soname_spec
15477
15478# Commands used to build and install an old-style archive.
15479RANLIB=$lt_RANLIB
15480old_archive_cmds=$lt_old_archive_cmds_F77
15481old_postinstall_cmds=$lt_old_postinstall_cmds
15482old_postuninstall_cmds=$lt_old_postuninstall_cmds
15483
15484# Create an old-style archive from a shared archive.
15485old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15486
15487# Create a temporary old-style archive to link instead of a shared archive.
15488old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15489
15490# Commands used to build and install a shared archive.
15491archive_cmds=$lt_archive_cmds_F77
15492archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15493postinstall_cmds=$lt_postinstall_cmds
15494postuninstall_cmds=$lt_postuninstall_cmds
15495
15496# Commands used to build a loadable module (assumed same as above if empty)
15497module_cmds=$lt_module_cmds_F77
15498module_expsym_cmds=$lt_module_expsym_cmds_F77
15499
15500# Commands to strip libraries.
15501old_striplib=$lt_old_striplib
15502striplib=$lt_striplib
15503
15504# Dependencies to place before the objects being linked to create a
15505# shared library.
15506predep_objects=$lt_predep_objects_F77
15507
15508# Dependencies to place after the objects being linked to create a
15509# shared library.
15510postdep_objects=$lt_postdep_objects_F77
15511
15512# Dependencies to place before the objects being linked to create a
15513# shared library.
15514predeps=$lt_predeps_F77
15515
15516# Dependencies to place after the objects being linked to create a
15517# shared library.
15518postdeps=$lt_postdeps_F77
15519
15520# The library search path used internally by the compiler when linking
15521# a shared library.
15522compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15523
15524# Method to check whether dependent libraries are shared objects.
15525deplibs_check_method=$lt_deplibs_check_method
15526
15527# Command to use when deplibs_check_method == file_magic.
15528file_magic_cmd=$lt_file_magic_cmd
15529
15530# Flag that allows shared libraries with undefined symbols to be built.
15531allow_undefined_flag=$lt_allow_undefined_flag_F77
15532
15533# Flag that forces no undefined symbols.
15534no_undefined_flag=$lt_no_undefined_flag_F77
15535
15536# Commands used to finish a libtool library installation in a directory.
15537finish_cmds=$lt_finish_cmds
15538
15539# Same as above, but a single script fragment to be evaled but not shown.
15540finish_eval=$lt_finish_eval
15541
15542# Take the output of nm and produce a listing of raw symbols and C names.
15543global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15544
15545# Transform the output of nm in a proper C declaration
15546global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15547
15548# Transform the output of nm in a C name address pair
15549global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15550
15551# This is the shared library runtime path variable.
15552runpath_var=$runpath_var
15553
15554# This is the shared library path variable.
15555shlibpath_var=$shlibpath_var
15556
15557# Is shlibpath searched before the hard-coded library search path?
15558shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15559
15560# How to hardcode a shared library path into an executable.
15561hardcode_action=$hardcode_action_F77
15562
15563# Whether we should hardcode library paths into libraries.
15564hardcode_into_libs=$hardcode_into_libs
15565
15566# Flag to hardcode \$libdir into a binary during linking.
15567# This must work even if \$libdir does not exist.
15568hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15569
15570# If ld is used when linking, flag to hardcode \$libdir into
15571# a binary during linking. This must work even if \$libdir does
15572# not exist.
15573hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15574
15575# Whether we need a single -rpath flag with a separated argument.
15576hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15577
15578# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15579# resulting binary.
15580hardcode_direct=$hardcode_direct_F77
15581
15582# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15583# resulting binary.
15584hardcode_minus_L=$hardcode_minus_L_F77
15585
15586# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15587# the resulting binary.
15588hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15589
15590# Set to yes if building a shared library automatically hardcodes DIR into the library
15591# and all subsequent libraries and executables linked against it.
15592hardcode_automatic=$hardcode_automatic_F77
15593
15594# Variables whose values should be saved in libtool wrapper scripts and
15595# restored at relink time.
15596variables_saved_for_relink="$variables_saved_for_relink"
15597
15598# Whether libtool must link a program against all its dependency libraries.
15599link_all_deplibs=$link_all_deplibs_F77
15600
15601# Compile-time system search path for libraries
15602sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15603
15604# Run-time system search path for libraries
15605sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15606
15607# Fix the shell variable \$srcfile for the compiler.
15608fix_srcfile_path="$fix_srcfile_path_F77"
15609
15610# Set to yes if exported symbols are required.
15611always_export_symbols=$always_export_symbols_F77
15612
15613# The commands to list exported symbols.
15614export_symbols_cmds=$lt_export_symbols_cmds_F77
15615
15616# The commands to extract the exported symbol list from a shared archive.
15617extract_expsyms_cmds=$lt_extract_expsyms_cmds
15618
15619# Symbols that should not be listed in the preloaded symbols.
15620exclude_expsyms=$lt_exclude_expsyms_F77
15621
15622# Symbols that must always be exported.
15623include_expsyms=$lt_include_expsyms_F77
15624
15625# ### END LIBTOOL TAG CONFIG: $tagname
15626
15627__EOF__
15628
15629
15630else
15631 # If there is no Makefile yet, we rely on a make rule to execute
15632 # `config.status --recheck' to rerun these tests and create the
15633 # libtool script then.
15634 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15635 if test -f "$ltmain_in"; then
15636 test -f Makefile && make "$ltmain"
15637 fi
15638fi
15639
15640
15641ac_ext=c
15642ac_cpp='$CPP $CPPFLAGS'
15643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15645ac_compiler_gnu=$ac_cv_c_compiler_gnu
15646
15647CC="$lt_save_CC"
15648
15649 else
15650 tagname=""
15651 fi
15652 ;;
15653
15654 GCJ)
15655 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15656
15657
15658
15659# Source file extension for Java test sources.
15660ac_ext=java
15661
15662# Object file extension for compiled Java test sources.
15663objext=o
15664objext_GCJ=$objext
15665
15666# Code to be used in simple compile tests
15667lt_simple_compile_test_code="class foo {}\n"
15668
15669# Code to be used in simple link tests
15670lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15671
15672# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15673
15674# If no C compiler was specified, use CC.
15675LTCC=${LTCC-"$CC"}
15676
15677# If no C compiler flags were specified, use CFLAGS.
15678LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15679
15680# Allow CC to be a program name with arguments.
15681compiler=$CC
15682
15683
15684# save warnings/boilerplate of simple test code
15685ac_outfile=conftest.$ac_objext
15686printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15687eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15688_lt_compiler_boilerplate=`cat conftest.err`
15689$rm conftest*
15690
15691ac_outfile=conftest.$ac_objext
15692printf "$lt_simple_link_test_code" >conftest.$ac_ext
15693eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15694_lt_linker_boilerplate=`cat conftest.err`
15695$rm conftest*
15696
15697
15698# Allow CC to be a program name with arguments.
15699lt_save_CC="$CC"
15700CC=${GCJ-"gcj"}
15701compiler=$CC
15702compiler_GCJ=$CC
15703for cc_temp in $compiler""; do
15704 case $cc_temp in
15705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15707 \-*) ;;
15708 *) break;;
15709 esac
15710done
15711cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15712
15713
15714# GCJ did not exist at the time GCC didn't implicitly link libc in.
15715archive_cmds_need_lc_GCJ=no
15716
15717old_archive_cmds_GCJ=$old_archive_cmds
15718
15719
15720lt_prog_compiler_no_builtin_flag_GCJ=
15721
15722if test "$GCC" = yes; then
15723 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15724
15725
15726echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15727echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15728if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15730else
15731 lt_cv_prog_compiler_rtti_exceptions=no
15732 ac_outfile=conftest.$ac_objext
15733 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15734 lt_compiler_flag="-fno-rtti -fno-exceptions"
15735 # Insert the option either (1) after the last *FLAGS variable, or
15736 # (2) before a word containing "conftest.", or (3) at the end.
15737 # Note that $ac_compile itself does not contain backslashes and begins
15738 # with a dollar sign (not a hyphen), so the echo should work correctly.
15739 # The option is referenced via a variable to avoid confusing sed.
15740 lt_compile=`echo "$ac_compile" | $SED \
15741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15743 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060015744 (eval echo "\"\$as_me:15744: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015745 (eval "$lt_compile" 2>conftest.err)
15746 ac_status=$?
15747 cat conftest.err >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060015748 echo "$as_me:15748: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060015749 if (exit $ac_status) && test -s "$ac_outfile"; then
15750 # The compiler can only warn and ignore the option if not recognized
15751 # So say no if there are warnings other than the usual output.
15752 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15755 lt_cv_prog_compiler_rtti_exceptions=yes
15756 fi
15757 fi
15758 $rm conftest*
15759
15760fi
15761echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15762echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15763
15764if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15765 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15766else
15767 :
15768fi
15769
15770fi
15771
15772lt_prog_compiler_wl_GCJ=
15773lt_prog_compiler_pic_GCJ=
15774lt_prog_compiler_static_GCJ=
15775
15776echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15777echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15778
15779 if test "$GCC" = yes; then
15780 lt_prog_compiler_wl_GCJ='-Wl,'
15781 lt_prog_compiler_static_GCJ='-static'
15782
15783 case $host_os in
15784 aix*)
15785 # All AIX code is PIC.
15786 if test "$host_cpu" = ia64; then
15787 # AIX 5 now supports IA64 processor
15788 lt_prog_compiler_static_GCJ='-Bstatic'
15789 fi
15790 ;;
15791
15792 amigaos*)
15793 # FIXME: we need at least 68020 code to build shared libraries, but
15794 # adding the `-m68020' flag to GCC prevents building anything better,
15795 # like `-m68040'.
15796 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15797 ;;
15798
15799 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15800 # PIC is the default for these OSes.
15801 ;;
15802
15803 mingw* | pw32* | os2*)
15804 # This hack is so that the source file can tell whether it is being
15805 # built for inclusion in a dll (and should export symbols for example).
15806 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15807 ;;
15808
15809 darwin* | rhapsody*)
15810 # PIC is the default on this platform
15811 # Common symbols not allowed in MH_DYLIB files
15812 lt_prog_compiler_pic_GCJ='-fno-common'
15813 ;;
15814
15815 interix3*)
15816 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15817 # Instead, we relocate shared libraries at runtime.
15818 ;;
15819
15820 msdosdjgpp*)
15821 # Just because we use GCC doesn't mean we suddenly get shared libraries
15822 # on systems that don't support them.
15823 lt_prog_compiler_can_build_shared_GCJ=no
15824 enable_shared=no
15825 ;;
15826
15827 sysv4*MP*)
15828 if test -d /usr/nec; then
15829 lt_prog_compiler_pic_GCJ=-Kconform_pic
15830 fi
15831 ;;
15832
15833 hpux*)
15834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15835 # not for PA HP-UX.
15836 case $host_cpu in
15837 hppa*64*|ia64*)
15838 # +Z the default
15839 ;;
15840 *)
15841 lt_prog_compiler_pic_GCJ='-fPIC'
15842 ;;
15843 esac
15844 ;;
15845
15846 *)
15847 lt_prog_compiler_pic_GCJ='-fPIC'
15848 ;;
15849 esac
15850 else
15851 # PORTME Check for flag to pass linker flags through the system compiler.
15852 case $host_os in
15853 aix*)
15854 lt_prog_compiler_wl_GCJ='-Wl,'
15855 if test "$host_cpu" = ia64; then
15856 # AIX 5 now supports IA64 processor
15857 lt_prog_compiler_static_GCJ='-Bstatic'
15858 else
15859 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15860 fi
15861 ;;
15862 darwin*)
15863 # PIC is the default on this platform
15864 # Common symbols not allowed in MH_DYLIB files
15865 case $cc_basename in
15866 xlc*)
15867 lt_prog_compiler_pic_GCJ='-qnocommon'
15868 lt_prog_compiler_wl_GCJ='-Wl,'
15869 ;;
15870 esac
15871 ;;
15872
15873 mingw* | pw32* | os2*)
15874 # This hack is so that the source file can tell whether it is being
15875 # built for inclusion in a dll (and should export symbols for example).
15876 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15877 ;;
15878
15879 hpux9* | hpux10* | hpux11*)
15880 lt_prog_compiler_wl_GCJ='-Wl,'
15881 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15882 # not for PA HP-UX.
15883 case $host_cpu in
15884 hppa*64*|ia64*)
15885 # +Z the default
15886 ;;
15887 *)
15888 lt_prog_compiler_pic_GCJ='+Z'
15889 ;;
15890 esac
15891 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15892 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15893 ;;
15894
15895 irix5* | irix6* | nonstopux*)
15896 lt_prog_compiler_wl_GCJ='-Wl,'
15897 # PIC (with -KPIC) is the default.
15898 lt_prog_compiler_static_GCJ='-non_shared'
15899 ;;
15900
15901 newsos6)
15902 lt_prog_compiler_pic_GCJ='-KPIC'
15903 lt_prog_compiler_static_GCJ='-Bstatic'
15904 ;;
15905
15906 linux*)
15907 case $cc_basename in
15908 icc* | ecc*)
15909 lt_prog_compiler_wl_GCJ='-Wl,'
15910 lt_prog_compiler_pic_GCJ='-KPIC'
15911 lt_prog_compiler_static_GCJ='-static'
15912 ;;
15913 pgcc* | pgf77* | pgf90* | pgf95*)
15914 # Portland Group compilers (*not* the Pentium gcc compiler,
15915 # which looks to be a dead project)
15916 lt_prog_compiler_wl_GCJ='-Wl,'
15917 lt_prog_compiler_pic_GCJ='-fpic'
15918 lt_prog_compiler_static_GCJ='-Bstatic'
15919 ;;
15920 ccc*)
15921 lt_prog_compiler_wl_GCJ='-Wl,'
15922 # All Alpha code is PIC.
15923 lt_prog_compiler_static_GCJ='-non_shared'
15924 ;;
15925 esac
15926 ;;
15927
15928 osf3* | osf4* | osf5*)
15929 lt_prog_compiler_wl_GCJ='-Wl,'
15930 # All OSF/1 code is PIC.
15931 lt_prog_compiler_static_GCJ='-non_shared'
15932 ;;
15933
15934 solaris*)
15935 lt_prog_compiler_pic_GCJ='-KPIC'
15936 lt_prog_compiler_static_GCJ='-Bstatic'
15937 case $cc_basename in
15938 f77* | f90* | f95*)
15939 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15940 *)
15941 lt_prog_compiler_wl_GCJ='-Wl,';;
15942 esac
15943 ;;
15944
15945 sunos4*)
15946 lt_prog_compiler_wl_GCJ='-Qoption ld '
15947 lt_prog_compiler_pic_GCJ='-PIC'
15948 lt_prog_compiler_static_GCJ='-Bstatic'
15949 ;;
15950
15951 sysv4 | sysv4.2uw2* | sysv4.3*)
15952 lt_prog_compiler_wl_GCJ='-Wl,'
15953 lt_prog_compiler_pic_GCJ='-KPIC'
15954 lt_prog_compiler_static_GCJ='-Bstatic'
15955 ;;
15956
15957 sysv4*MP*)
15958 if test -d /usr/nec ;then
15959 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15960 lt_prog_compiler_static_GCJ='-Bstatic'
15961 fi
15962 ;;
15963
15964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15965 lt_prog_compiler_wl_GCJ='-Wl,'
15966 lt_prog_compiler_pic_GCJ='-KPIC'
15967 lt_prog_compiler_static_GCJ='-Bstatic'
15968 ;;
15969
15970 unicos*)
15971 lt_prog_compiler_wl_GCJ='-Wl,'
15972 lt_prog_compiler_can_build_shared_GCJ=no
15973 ;;
15974
15975 uts4*)
15976 lt_prog_compiler_pic_GCJ='-pic'
15977 lt_prog_compiler_static_GCJ='-Bstatic'
15978 ;;
15979
15980 *)
15981 lt_prog_compiler_can_build_shared_GCJ=no
15982 ;;
15983 esac
15984 fi
15985
15986echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15987echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15988
15989#
15990# Check to make sure the PIC flag actually works.
15991#
15992if test -n "$lt_prog_compiler_pic_GCJ"; then
15993
15994echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15995echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15996if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15997 echo $ECHO_N "(cached) $ECHO_C" >&6
15998else
15999 lt_prog_compiler_pic_works_GCJ=no
16000 ac_outfile=conftest.$ac_objext
16001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16002 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16003 # Insert the option either (1) after the last *FLAGS variable, or
16004 # (2) before a word containing "conftest.", or (3) at the end.
16005 # Note that $ac_compile itself does not contain backslashes and begins
16006 # with a dollar sign (not a hyphen), so the echo should work correctly.
16007 # The option is referenced via a variable to avoid confusing sed.
16008 lt_compile=`echo "$ac_compile" | $SED \
16009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16011 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060016012 (eval echo "\"\$as_me:16012: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016013 (eval "$lt_compile" 2>conftest.err)
16014 ac_status=$?
16015 cat conftest.err >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060016016 echo "$as_me:16016: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016017 if (exit $ac_status) && test -s "$ac_outfile"; then
16018 # The compiler can only warn and ignore the option if not recognized
16019 # So say no if there are warnings other than the usual output.
16020 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16022 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16023 lt_prog_compiler_pic_works_GCJ=yes
16024 fi
16025 fi
16026 $rm conftest*
16027
16028fi
16029echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16030echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16031
16032if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16033 case $lt_prog_compiler_pic_GCJ in
16034 "" | " "*) ;;
16035 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16036 esac
16037else
16038 lt_prog_compiler_pic_GCJ=
16039 lt_prog_compiler_can_build_shared_GCJ=no
16040fi
16041
16042fi
16043case $host_os in
16044 # For platforms which do not support PIC, -DPIC is meaningless:
16045 *djgpp*)
16046 lt_prog_compiler_pic_GCJ=
16047 ;;
16048 *)
16049 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16050 ;;
16051esac
16052
16053#
16054# Check to make sure the static flag actually works.
16055#
16056wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16057echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16058echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16059if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16061else
16062 lt_prog_compiler_static_works_GCJ=no
16063 save_LDFLAGS="$LDFLAGS"
16064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16065 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16067 # The linker can only warn and ignore the option if not recognized
16068 # So say no if there are warnings
16069 if test -s conftest.err; then
16070 # Append any errors to the config.log.
16071 cat conftest.err 1>&5
16072 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16074 if diff conftest.exp conftest.er2 >/dev/null; then
16075 lt_prog_compiler_static_works_GCJ=yes
16076 fi
16077 else
16078 lt_prog_compiler_static_works_GCJ=yes
16079 fi
16080 fi
16081 $rm conftest*
16082 LDFLAGS="$save_LDFLAGS"
16083
16084fi
16085echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16086echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16087
16088if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16089 :
16090else
16091 lt_prog_compiler_static_GCJ=
16092fi
16093
16094
16095echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16096echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16097if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16099else
16100 lt_cv_prog_compiler_c_o_GCJ=no
16101 $rm -r conftest 2>/dev/null
16102 mkdir conftest
16103 cd conftest
16104 mkdir out
16105 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16106
16107 lt_compiler_flag="-o out/conftest2.$ac_objext"
16108 # Insert the option either (1) after the last *FLAGS variable, or
16109 # (2) before a word containing "conftest.", or (3) at the end.
16110 # Note that $ac_compile itself does not contain backslashes and begins
16111 # with a dollar sign (not a hyphen), so the echo should work correctly.
16112 lt_compile=`echo "$ac_compile" | $SED \
16113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16115 -e 's:$: $lt_compiler_flag:'`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060016116 (eval echo "\"\$as_me:16116: $lt_compile\"" >&5)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016117 (eval "$lt_compile" 2>out/conftest.err)
16118 ac_status=$?
16119 cat out/conftest.err >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060016120 echo "$as_me:16120: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16122 then
16123 # The compiler can only warn and ignore the option if not recognized
16124 # So say no if there are warnings
16125 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16128 lt_cv_prog_compiler_c_o_GCJ=yes
16129 fi
16130 fi
16131 chmod u+w . 2>&5
16132 $rm conftest*
16133 # SGI C++ compiler will create directory out/ii_files/ for
16134 # template instantiation
16135 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16136 $rm out/* && rmdir out
16137 cd ..
16138 rmdir conftest
16139 $rm conftest*
16140
16141fi
16142echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16143echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16144
16145
16146hard_links="nottested"
16147if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16148 # do not overwrite the value of need_locks provided by the user
16149 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16150echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16151 hard_links=yes
16152 $rm conftest*
16153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16154 touch conftest.a
16155 ln conftest.a conftest.b 2>&5 || hard_links=no
16156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16157 echo "$as_me:$LINENO: result: $hard_links" >&5
16158echo "${ECHO_T}$hard_links" >&6
16159 if test "$hard_links" = no; then
16160 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16161echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16162 need_locks=warn
16163 fi
16164else
16165 need_locks=no
16166fi
16167
16168echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16169echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16170
16171 runpath_var=
16172 allow_undefined_flag_GCJ=
16173 enable_shared_with_static_runtimes_GCJ=no
16174 archive_cmds_GCJ=
16175 archive_expsym_cmds_GCJ=
16176 old_archive_From_new_cmds_GCJ=
16177 old_archive_from_expsyms_cmds_GCJ=
16178 export_dynamic_flag_spec_GCJ=
16179 whole_archive_flag_spec_GCJ=
16180 thread_safe_flag_spec_GCJ=
16181 hardcode_libdir_flag_spec_GCJ=
16182 hardcode_libdir_flag_spec_ld_GCJ=
16183 hardcode_libdir_separator_GCJ=
16184 hardcode_direct_GCJ=no
16185 hardcode_minus_L_GCJ=no
16186 hardcode_shlibpath_var_GCJ=unsupported
16187 link_all_deplibs_GCJ=unknown
16188 hardcode_automatic_GCJ=no
16189 module_cmds_GCJ=
16190 module_expsym_cmds_GCJ=
16191 always_export_symbols_GCJ=no
16192 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16193 # include_expsyms should be a list of space-separated symbols to be *always*
16194 # included in the symbol list
16195 include_expsyms_GCJ=
16196 # exclude_expsyms can be an extended regexp of symbols to exclude
16197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16199 # as well as any symbol that contains `d'.
16200 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16202 # platforms (ab)use it in PIC code, but their linkers get confused if
16203 # the symbol is explicitly referenced. Since portable code cannot
16204 # rely on this symbol name, it's probably fine to never include it in
16205 # preloaded symbol tables.
16206 extract_expsyms_cmds=
16207 # Just being paranoid about ensuring that cc_basename is set.
16208 for cc_temp in $compiler""; do
16209 case $cc_temp in
16210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16212 \-*) ;;
16213 *) break;;
16214 esac
16215done
16216cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16217
16218 case $host_os in
16219 cygwin* | mingw* | pw32*)
16220 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16221 # When not using gcc, we currently assume that we are using
16222 # Microsoft Visual C++.
16223 if test "$GCC" != yes; then
16224 with_gnu_ld=no
16225 fi
16226 ;;
16227 interix*)
16228 # we just hope/assume this is gcc and not c89 (= MSVC++)
16229 with_gnu_ld=yes
16230 ;;
16231 openbsd*)
16232 with_gnu_ld=no
16233 ;;
16234 esac
16235
16236 ld_shlibs_GCJ=yes
16237 if test "$with_gnu_ld" = yes; then
16238 # If archive_cmds runs LD, not CC, wlarc should be empty
16239 wlarc='${wl}'
16240
16241 # Set some defaults for GNU ld with shared library support. These
16242 # are reset later if shared libraries are not supported. Putting them
16243 # here allows them to be overridden if necessary.
16244 runpath_var=LD_RUN_PATH
16245 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16246 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16247 # ancient GNU ld didn't support --whole-archive et. al.
16248 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16249 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16250 else
16251 whole_archive_flag_spec_GCJ=
16252 fi
16253 supports_anon_versioning=no
16254 case `$LD -v 2>/dev/null` in
16255 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16256 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16257 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16258 *\ 2.11.*) ;; # other 2.11 versions
16259 *) supports_anon_versioning=yes ;;
16260 esac
16261
16262 # See if GNU ld supports shared libraries.
16263 case $host_os in
16264 aix3* | aix4* | aix5*)
16265 # On AIX/PPC, the GNU linker is very broken
16266 if test "$host_cpu" != ia64; then
16267 ld_shlibs_GCJ=no
16268 cat <<EOF 1>&2
16269
16270*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16271*** to be unable to reliably create shared libraries on AIX.
16272*** Therefore, libtool is disabling shared libraries support. If you
16273*** really care for shared libraries, you may want to modify your PATH
16274*** so that a non-GNU linker is found, and then restart.
16275
16276EOF
16277 fi
16278 ;;
16279
16280 amigaos*)
16281 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)'
16282 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16283 hardcode_minus_L_GCJ=yes
16284
16285 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16286 # that the semantics of dynamic libraries on AmigaOS, at least up
16287 # to version 4, is to share data among multiple programs linked
16288 # with the same dynamic library. Since this doesn't match the
16289 # behavior of shared libraries on other platforms, we can't use
16290 # them.
16291 ld_shlibs_GCJ=no
16292 ;;
16293
16294 beos*)
16295 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16296 allow_undefined_flag_GCJ=unsupported
16297 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16298 # support --undefined. This deserves some investigation. FIXME
16299 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16300 else
16301 ld_shlibs_GCJ=no
16302 fi
16303 ;;
16304
16305 cygwin* | mingw* | pw32*)
16306 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16307 # as there is no search path for DLLs.
16308 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16309 allow_undefined_flag_GCJ=unsupported
16310 always_export_symbols_GCJ=no
16311 enable_shared_with_static_runtimes_GCJ=yes
16312 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16313
16314 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16315 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16316 # If the export-symbols file already is a .def file (1st line
16317 # is EXPORTS), use it as is; otherwise, prepend...
16318 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16319 cp $export_symbols $output_objdir/$soname.def;
16320 else
16321 echo EXPORTS > $output_objdir/$soname.def;
16322 cat $export_symbols >> $output_objdir/$soname.def;
16323 fi~
16324 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16325 else
16326 ld_shlibs_GCJ=no
16327 fi
16328 ;;
16329
16330 interix3*)
16331 hardcode_direct_GCJ=no
16332 hardcode_shlibpath_var_GCJ=no
16333 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16334 export_dynamic_flag_spec_GCJ='${wl}-E'
16335 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16336 # Instead, shared libraries are loaded at an image base (0x10000000 by
16337 # default) and relocated if they conflict, which is a slow very memory
16338 # consuming and fragmenting process. To avoid this, we pick a random,
16339 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16340 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16341 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'
16342 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'
16343 ;;
16344
16345 linux*)
16346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16347 tmp_addflag=
16348 case $cc_basename,$host_cpu in
16349 pgcc*) # Portland Group C compiler
16350 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'
16351 tmp_addflag=' $pic_flag'
16352 ;;
16353 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16354 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'
16355 tmp_addflag=' $pic_flag -Mnomain' ;;
16356 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16357 tmp_addflag=' -i_dynamic' ;;
16358 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16359 tmp_addflag=' -i_dynamic -nofor_main' ;;
16360 ifc* | ifort*) # Intel Fortran compiler
16361 tmp_addflag=' -nofor_main' ;;
16362 esac
16363 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16364
16365 if test $supports_anon_versioning = yes; then
16366 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16368 $echo "local: *; };" >> $output_objdir/$libname.ver~
16369 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16370 fi
16371 else
16372 ld_shlibs_GCJ=no
16373 fi
16374 ;;
16375
16376 netbsd*)
16377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16378 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16379 wlarc=
16380 else
16381 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16382 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16383 fi
16384 ;;
16385
16386 solaris*)
16387 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16388 ld_shlibs_GCJ=no
16389 cat <<EOF 1>&2
16390
16391*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16392*** create shared libraries on Solaris systems. Therefore, libtool
16393*** is disabling shared libraries support. We urge you to upgrade GNU
16394*** binutils to release 2.9.1 or newer. Another option is to modify
16395*** your PATH or compiler configuration so that the native linker is
16396*** used, and then restart.
16397
16398EOF
16399 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16401 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16402 else
16403 ld_shlibs_GCJ=no
16404 fi
16405 ;;
16406
16407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16408 case `$LD -v 2>&1` in
16409 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16410 ld_shlibs_GCJ=no
16411 cat <<_LT_EOF 1>&2
16412
16413*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16414*** reliably create shared libraries on SCO systems. Therefore, libtool
16415*** is disabling shared libraries support. We urge you to upgrade GNU
16416*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16417*** your PATH or compiler configuration so that the native linker is
16418*** used, and then restart.
16419
16420_LT_EOF
16421 ;;
16422 *)
16423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16424 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16425 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16426 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16427 else
16428 ld_shlibs_GCJ=no
16429 fi
16430 ;;
16431 esac
16432 ;;
16433
16434 sunos4*)
16435 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16436 wlarc=
16437 hardcode_direct_GCJ=yes
16438 hardcode_shlibpath_var_GCJ=no
16439 ;;
16440
16441 *)
16442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16443 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16444 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16445 else
16446 ld_shlibs_GCJ=no
16447 fi
16448 ;;
16449 esac
16450
16451 if test "$ld_shlibs_GCJ" = no; then
16452 runpath_var=
16453 hardcode_libdir_flag_spec_GCJ=
16454 export_dynamic_flag_spec_GCJ=
16455 whole_archive_flag_spec_GCJ=
16456 fi
16457 else
16458 # PORTME fill in a description of your system's linker (not GNU ld)
16459 case $host_os in
16460 aix3*)
16461 allow_undefined_flag_GCJ=unsupported
16462 always_export_symbols_GCJ=yes
16463 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'
16464 # Note: this linker hardcodes the directories in LIBPATH if there
16465 # are no directories specified by -L.
16466 hardcode_minus_L_GCJ=yes
16467 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16468 # Neither direct hardcoding nor static linking is supported with a
16469 # broken collect2.
16470 hardcode_direct_GCJ=unsupported
16471 fi
16472 ;;
16473
16474 aix4* | aix5*)
16475 if test "$host_cpu" = ia64; then
16476 # On IA64, the linker does run time linking by default, so we don't
16477 # have to do anything special.
16478 aix_use_runtimelinking=no
16479 exp_sym_flag='-Bexport'
16480 no_entry_flag=""
16481 else
16482 # If we're using GNU nm, then we don't want the "-C" option.
16483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16484 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16485 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'
16486 else
16487 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'
16488 fi
16489 aix_use_runtimelinking=no
16490
16491 # Test if we are trying to use run time linking or normal
16492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16493 # need to do runtime linking.
16494 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16495 for ld_flag in $LDFLAGS; do
16496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16497 aix_use_runtimelinking=yes
16498 break
16499 fi
16500 done
16501 ;;
16502 esac
16503
16504 exp_sym_flag='-bexport'
16505 no_entry_flag='-bnoentry'
16506 fi
16507
16508 # When large executables or shared objects are built, AIX ld can
16509 # have problems creating the table of contents. If linking a library
16510 # or program results in "error TOC overflow" add -mminimal-toc to
16511 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16512 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16513
16514 archive_cmds_GCJ=''
16515 hardcode_direct_GCJ=yes
16516 hardcode_libdir_separator_GCJ=':'
16517 link_all_deplibs_GCJ=yes
16518
16519 if test "$GCC" = yes; then
16520 case $host_os in aix4.[012]|aix4.[012].*)
16521 # We only want to do this on AIX 4.2 and lower, the check
16522 # below for broken collect2 doesn't work under 4.3+
16523 collect2name=`${CC} -print-prog-name=collect2`
16524 if test -f "$collect2name" && \
16525 strings "$collect2name" | grep resolve_lib_name >/dev/null
16526 then
16527 # We have reworked collect2
16528 hardcode_direct_GCJ=yes
16529 else
16530 # We have old collect2
16531 hardcode_direct_GCJ=unsupported
16532 # It fails to find uninstalled libraries when the uninstalled
16533 # path is not listed in the libpath. Setting hardcode_minus_L
16534 # to unsupported forces relinking
16535 hardcode_minus_L_GCJ=yes
16536 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16537 hardcode_libdir_separator_GCJ=
16538 fi
16539 ;;
16540 esac
16541 shared_flag='-shared'
16542 if test "$aix_use_runtimelinking" = yes; then
16543 shared_flag="$shared_flag "'${wl}-G'
16544 fi
16545 else
16546 # not using gcc
16547 if test "$host_cpu" = ia64; then
16548 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16549 # chokes on -Wl,-G. The following line is correct:
16550 shared_flag='-G'
16551 else
16552 if test "$aix_use_runtimelinking" = yes; then
16553 shared_flag='${wl}-G'
16554 else
16555 shared_flag='${wl}-bM:SRE'
16556 fi
16557 fi
16558 fi
16559
16560 # It seems that -bexpall does not export symbols beginning with
16561 # underscore (_), so it is better to generate a list of symbols to export.
16562 always_export_symbols_GCJ=yes
16563 if test "$aix_use_runtimelinking" = yes; then
16564 # Warning - without using the other runtime loading flags (-brtl),
16565 # -berok will link without error, but may produce a broken library.
16566 allow_undefined_flag_GCJ='-berok'
16567 # Determine the default libpath from the value encoded in an empty executable.
16568 cat >conftest.$ac_ext <<_ACEOF
16569/* confdefs.h. */
16570_ACEOF
16571cat confdefs.h >>conftest.$ac_ext
16572cat >>conftest.$ac_ext <<_ACEOF
16573/* end confdefs.h. */
16574
16575int
16576main ()
16577{
16578
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext conftest$ac_exeext
16584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>conftest.er1
16586 ac_status=$?
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag"
16593 || test ! -s conftest.err'
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; } &&
16599 { ac_try='test -s conftest$ac_exeext'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605
16606aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16607}'`
16608# Check for a 64-bit object if we didn't find anything.
16609if 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; }
16610}'`; fi
16611else
16612 echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615fi
16616rm -f conftest.err conftest.$ac_objext \
16617 conftest$ac_exeext conftest.$ac_ext
16618if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16619
16620 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16621 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"
16622 else
16623 if test "$host_cpu" = ia64; then
16624 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16625 allow_undefined_flag_GCJ="-z nodefs"
16626 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"
16627 else
16628 # Determine the default libpath from the value encoded in an empty executable.
16629 cat >conftest.$ac_ext <<_ACEOF
16630/* confdefs.h. */
16631_ACEOF
16632cat confdefs.h >>conftest.$ac_ext
16633cat >>conftest.$ac_ext <<_ACEOF
16634/* end confdefs.h. */
16635
16636int
16637main ()
16638{
16639
16640 ;
16641 return 0;
16642}
16643_ACEOF
16644rm -f conftest.$ac_objext conftest$ac_exeext
16645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16646 (eval $ac_link) 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } &&
16653 { ac_try='test -z "$ac_c_werror_flag"
16654 || test ! -s conftest.err'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; } &&
16660 { ac_try='test -s conftest$ac_exeext'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666
16667aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16668}'`
16669# Check for a 64-bit object if we didn't find anything.
16670if 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; }
16671}'`; fi
16672else
16673 echo "$as_me: failed program was:" >&5
16674sed 's/^/| /' conftest.$ac_ext >&5
16675
16676fi
16677rm -f conftest.err conftest.$ac_objext \
16678 conftest$ac_exeext conftest.$ac_ext
16679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16680
16681 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16682 # Warning - without using the other run time loading flags,
16683 # -berok will link without error, but may produce a broken library.
16684 no_undefined_flag_GCJ=' ${wl}-bernotok'
16685 allow_undefined_flag_GCJ=' ${wl}-berok'
16686 # Exported symbols can be pulled into shared objects from archives
16687 whole_archive_flag_spec_GCJ='$convenience'
16688 archive_cmds_need_lc_GCJ=yes
16689 # This is similar to how AIX traditionally builds its shared libraries.
16690 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'
16691 fi
16692 fi
16693 ;;
16694
16695 amigaos*)
16696 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)'
16697 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16698 hardcode_minus_L_GCJ=yes
16699 # see comment about different semantics on the GNU ld section
16700 ld_shlibs_GCJ=no
16701 ;;
16702
16703 bsdi[45]*)
16704 export_dynamic_flag_spec_GCJ=-rdynamic
16705 ;;
16706
16707 cygwin* | mingw* | pw32*)
16708 # When not using gcc, we currently assume that we are using
16709 # Microsoft Visual C++.
16710 # hardcode_libdir_flag_spec is actually meaningless, as there is
16711 # no search path for DLLs.
16712 hardcode_libdir_flag_spec_GCJ=' '
16713 allow_undefined_flag_GCJ=unsupported
16714 # Tell ltmain to make .lib files, not .a files.
16715 libext=lib
16716 # Tell ltmain to make .dll files, not .so files.
16717 shrext_cmds=".dll"
16718 # FIXME: Setting linknames here is a bad hack.
16719 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16720 # The linker will automatically build a .lib file if we build a DLL.
16721 old_archive_From_new_cmds_GCJ='true'
16722 # FIXME: Should let the user specify the lib program.
16723 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16724 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16725 enable_shared_with_static_runtimes_GCJ=yes
16726 ;;
16727
16728 darwin* | rhapsody*)
16729 case $host_os in
16730 rhapsody* | darwin1.[012])
16731 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16732 ;;
16733 *) # Darwin 1.3 on
16734 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16735 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16736 else
16737 case ${MACOSX_DEPLOYMENT_TARGET} in
16738 10.[012])
16739 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16740 ;;
16741 10.*)
16742 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16743 ;;
16744 esac
16745 fi
16746 ;;
16747 esac
16748 archive_cmds_need_lc_GCJ=no
16749 hardcode_direct_GCJ=no
16750 hardcode_automatic_GCJ=yes
16751 hardcode_shlibpath_var_GCJ=unsupported
16752 whole_archive_flag_spec_GCJ=''
16753 link_all_deplibs_GCJ=yes
16754 if test "$GCC" = yes ; then
16755 output_verbose_link_cmd='echo'
16756 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16757 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16758 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16759 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}'
16760 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}'
16761 else
16762 case $cc_basename in
16763 xlc*)
16764 output_verbose_link_cmd='echo'
16765 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16766 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16767 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16768 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}'
16769 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}'
16770 ;;
16771 *)
16772 ld_shlibs_GCJ=no
16773 ;;
16774 esac
16775 fi
16776 ;;
16777
16778 dgux*)
16779 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16781 hardcode_shlibpath_var_GCJ=no
16782 ;;
16783
16784 freebsd1*)
16785 ld_shlibs_GCJ=no
16786 ;;
16787
16788 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16789 # support. Future versions do this automatically, but an explicit c++rt0.o
16790 # does not break anything, and helps significantly (at the cost of a little
16791 # extra space).
16792 freebsd2.2*)
16793 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16795 hardcode_direct_GCJ=yes
16796 hardcode_shlibpath_var_GCJ=no
16797 ;;
16798
16799 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16800 freebsd2*)
16801 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16802 hardcode_direct_GCJ=yes
16803 hardcode_minus_L_GCJ=yes
16804 hardcode_shlibpath_var_GCJ=no
16805 ;;
16806
16807 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16808 freebsd* | kfreebsd*-gnu | dragonfly*)
16809 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16810 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16811 hardcode_direct_GCJ=yes
16812 hardcode_shlibpath_var_GCJ=no
16813 ;;
16814
16815 hpux9*)
16816 if test "$GCC" = yes; then
16817 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'
16818 else
16819 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'
16820 fi
16821 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16822 hardcode_libdir_separator_GCJ=:
16823 hardcode_direct_GCJ=yes
16824
16825 # hardcode_minus_L: Not really in the search PATH,
16826 # but as the default location of the library.
16827 hardcode_minus_L_GCJ=yes
16828 export_dynamic_flag_spec_GCJ='${wl}-E'
16829 ;;
16830
16831 hpux10*)
16832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16833 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16834 else
16835 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16836 fi
16837 if test "$with_gnu_ld" = no; then
16838 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16839 hardcode_libdir_separator_GCJ=:
16840
16841 hardcode_direct_GCJ=yes
16842 export_dynamic_flag_spec_GCJ='${wl}-E'
16843
16844 # hardcode_minus_L: Not really in the search PATH,
16845 # but as the default location of the library.
16846 hardcode_minus_L_GCJ=yes
16847 fi
16848 ;;
16849
16850 hpux11*)
16851 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16852 case $host_cpu in
16853 hppa*64*)
16854 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16855 ;;
16856 ia64*)
16857 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16858 ;;
16859 *)
16860 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16861 ;;
16862 esac
16863 else
16864 case $host_cpu in
16865 hppa*64*)
16866 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16867 ;;
16868 ia64*)
16869 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16870 ;;
16871 *)
16872 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16873 ;;
16874 esac
16875 fi
16876 if test "$with_gnu_ld" = no; then
16877 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16878 hardcode_libdir_separator_GCJ=:
16879
16880 case $host_cpu in
16881 hppa*64*|ia64*)
16882 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16883 hardcode_direct_GCJ=no
16884 hardcode_shlibpath_var_GCJ=no
16885 ;;
16886 *)
16887 hardcode_direct_GCJ=yes
16888 export_dynamic_flag_spec_GCJ='${wl}-E'
16889
16890 # hardcode_minus_L: Not really in the search PATH,
16891 # but as the default location of the library.
16892 hardcode_minus_L_GCJ=yes
16893 ;;
16894 esac
16895 fi
16896 ;;
16897
16898 irix5* | irix6* | nonstopux*)
16899 if test "$GCC" = yes; then
16900 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'
16901 else
16902 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'
16903 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16904 fi
16905 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16906 hardcode_libdir_separator_GCJ=:
16907 link_all_deplibs_GCJ=yes
16908 ;;
16909
16910 netbsd*)
16911 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16913 else
16914 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16915 fi
16916 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16917 hardcode_direct_GCJ=yes
16918 hardcode_shlibpath_var_GCJ=no
16919 ;;
16920
16921 newsos6)
16922 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16923 hardcode_direct_GCJ=yes
16924 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16925 hardcode_libdir_separator_GCJ=:
16926 hardcode_shlibpath_var_GCJ=no
16927 ;;
16928
16929 openbsd*)
16930 hardcode_direct_GCJ=yes
16931 hardcode_shlibpath_var_GCJ=no
16932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16933 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16934 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16935 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16936 export_dynamic_flag_spec_GCJ='${wl}-E'
16937 else
16938 case $host_os in
16939 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16940 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16941 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16942 ;;
16943 *)
16944 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16945 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16946 ;;
16947 esac
16948 fi
16949 ;;
16950
16951 os2*)
16952 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16953 hardcode_minus_L_GCJ=yes
16954 allow_undefined_flag_GCJ=unsupported
16955 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'
16956 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16957 ;;
16958
16959 osf3*)
16960 if test "$GCC" = yes; then
16961 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16962 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'
16963 else
16964 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16965 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'
16966 fi
16967 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16968 hardcode_libdir_separator_GCJ=:
16969 ;;
16970
16971 osf4* | osf5*) # as osf3* with the addition of -msym flag
16972 if test "$GCC" = yes; then
16973 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16974 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'
16975 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16976 else
16977 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16978 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'
16979 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~
16980 $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'
16981
16982 # Both c and cxx compiler support -rpath directly
16983 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16984 fi
16985 hardcode_libdir_separator_GCJ=:
16986 ;;
16987
16988 solaris*)
16989 no_undefined_flag_GCJ=' -z text'
16990 if test "$GCC" = yes; then
16991 wlarc='${wl}'
16992 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16993 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16994 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16995 else
16996 wlarc=''
16997 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16998 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16999 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17000 fi
17001 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17002 hardcode_shlibpath_var_GCJ=no
17003 case $host_os in
17004 solaris2.[0-5] | solaris2.[0-5].*) ;;
17005 *)
17006 # The compiler driver will combine linker options so we
17007 # cannot just pass the convience library names through
17008 # without $wl, iff we do not link with $LD.
17009 # Luckily, gcc supports the same syntax we need for Sun Studio.
17010 # Supported since Solaris 2.6 (maybe 2.5.1?)
17011 case $wlarc in
17012 '')
17013 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17014 *)
17015 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' ;;
17016 esac ;;
17017 esac
17018 link_all_deplibs_GCJ=yes
17019 ;;
17020
17021 sunos4*)
17022 if test "x$host_vendor" = xsequent; then
17023 # Use $CC to link under sequent, because it throws in some extra .o
17024 # files that make .init and .fini sections work.
17025 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17026 else
17027 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17028 fi
17029 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17030 hardcode_direct_GCJ=yes
17031 hardcode_minus_L_GCJ=yes
17032 hardcode_shlibpath_var_GCJ=no
17033 ;;
17034
17035 sysv4)
17036 case $host_vendor in
17037 sni)
17038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17039 hardcode_direct_GCJ=yes # is this really true???
17040 ;;
17041 siemens)
17042 ## LD is ld it makes a PLAMLIB
17043 ## CC just makes a GrossModule.
17044 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17045 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17046 hardcode_direct_GCJ=no
17047 ;;
17048 motorola)
17049 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17050 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17051 ;;
17052 esac
17053 runpath_var='LD_RUN_PATH'
17054 hardcode_shlibpath_var_GCJ=no
17055 ;;
17056
17057 sysv4.3*)
17058 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_shlibpath_var_GCJ=no
17060 export_dynamic_flag_spec_GCJ='-Bexport'
17061 ;;
17062
17063 sysv4*MP*)
17064 if test -d /usr/nec; then
17065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17066 hardcode_shlibpath_var_GCJ=no
17067 runpath_var=LD_RUN_PATH
17068 hardcode_runpath_var=yes
17069 ld_shlibs_GCJ=yes
17070 fi
17071 ;;
17072
17073 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17074 no_undefined_flag_GCJ='${wl}-z,text'
17075 archive_cmds_need_lc_GCJ=no
17076 hardcode_shlibpath_var_GCJ=no
17077 runpath_var='LD_RUN_PATH'
17078
17079 if test "$GCC" = yes; then
17080 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 else
17083 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17084 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 fi
17086 ;;
17087
17088 sysv5* | sco3.2v5* | sco5v6*)
17089 # Note: We can NOT use -z defs as we might desire, because we do not
17090 # link with -lc, and that would cause any symbols used from libc to
17091 # always be unresolved, which means just about no library would
17092 # ever link correctly. If we're not using GNU ld we use -z text
17093 # though, which does catch some bad symbols but isn't as heavy-handed
17094 # as -z defs.
17095 no_undefined_flag_GCJ='${wl}-z,text'
17096 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17097 archive_cmds_need_lc_GCJ=no
17098 hardcode_shlibpath_var_GCJ=no
17099 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17100 hardcode_libdir_separator_GCJ=':'
17101 link_all_deplibs_GCJ=yes
17102 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17103 runpath_var='LD_RUN_PATH'
17104
17105 if test "$GCC" = yes; then
17106 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17107 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17108 else
17109 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17110 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17111 fi
17112 ;;
17113
17114 uts4*)
17115 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17116 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17117 hardcode_shlibpath_var_GCJ=no
17118 ;;
17119
17120 *)
17121 ld_shlibs_GCJ=no
17122 ;;
17123 esac
17124 fi
17125
17126echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17127echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17128test "$ld_shlibs_GCJ" = no && can_build_shared=no
17129
17130#
17131# Do we need to explicitly link libc?
17132#
17133case "x$archive_cmds_need_lc_GCJ" in
17134x|xyes)
17135 # Assume -lc should be added
17136 archive_cmds_need_lc_GCJ=yes
17137
17138 if test "$enable_shared" = yes && test "$GCC" = yes; then
17139 case $archive_cmds_GCJ in
17140 *'~'*)
17141 # FIXME: we may have to deal with multi-command sequences.
17142 ;;
17143 '$CC '*)
17144 # Test whether the compiler implicitly links with -lc since on some
17145 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17146 # to ld, don't add -lc before -lgcc.
17147 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17148echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17149 $rm conftest*
17150 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17151
17152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17153 (eval $ac_compile) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } 2>conftest.err; then
17157 soname=conftest
17158 lib=conftest
17159 libobjs=conftest.$ac_objext
17160 deplibs=
17161 wl=$lt_prog_compiler_wl_GCJ
17162 pic_flag=$lt_prog_compiler_pic_GCJ
17163 compiler_flags=-v
17164 linker_flags=-v
17165 verstring=
17166 output_objdir=.
17167 libname=conftest
17168 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17169 allow_undefined_flag_GCJ=
17170 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17171 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }
17175 then
17176 archive_cmds_need_lc_GCJ=no
17177 else
17178 archive_cmds_need_lc_GCJ=yes
17179 fi
17180 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17181 else
17182 cat conftest.err 1>&5
17183 fi
17184 $rm conftest*
17185 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17186echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17187 ;;
17188 esac
17189 fi
17190 ;;
17191esac
17192
17193echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17194echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17195library_names_spec=
17196libname_spec='lib$name'
17197soname_spec=
17198shrext_cmds=".so"
17199postinstall_cmds=
17200postuninstall_cmds=
17201finish_cmds=
17202finish_eval=
17203shlibpath_var=
17204shlibpath_overrides_runpath=unknown
17205version_type=none
17206dynamic_linker="$host_os ld.so"
17207sys_lib_dlsearch_path_spec="/lib /usr/lib"
17208if test "$GCC" = yes; then
17209 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17210 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17211 # if the path contains ";" then we assume it to be the separator
17212 # otherwise default to the standard path separator (i.e. ":") - it is
17213 # assumed that no part of a normal pathname contains ";" but that should
17214 # okay in the real world where ";" in dirpaths is itself problematic.
17215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17216 else
17217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17218 fi
17219else
17220 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17221fi
17222need_lib_prefix=unknown
17223hardcode_into_libs=no
17224
17225# when you set need_version to no, make sure it does not cause -set_version
17226# flags to be left without arguments
17227need_version=unknown
17228
17229case $host_os in
17230aix3*)
17231 version_type=linux
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17233 shlibpath_var=LIBPATH
17234
17235 # AIX 3 has no versioning support, so we append a major version to the name.
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 ;;
17238
17239aix4* | aix5*)
17240 version_type=linux
17241 need_lib_prefix=no
17242 need_version=no
17243 hardcode_into_libs=yes
17244 if test "$host_cpu" = ia64; then
17245 # AIX 5 supports IA64
17246 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17247 shlibpath_var=LD_LIBRARY_PATH
17248 else
17249 # With GCC up to 2.95.x, collect2 would create an import file
17250 # for dependence libraries. The import file would start with
17251 # the line `#! .'. This would cause the generated library to
17252 # depend on `.', always an invalid library. This was fixed in
17253 # development snapshots of GCC prior to 3.0.
17254 case $host_os in
17255 aix4 | aix4.[01] | aix4.[01].*)
17256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17257 echo ' yes '
17258 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17259 :
17260 else
17261 can_build_shared=no
17262 fi
17263 ;;
17264 esac
17265 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17266 # soname into executable. Probably we can add versioning support to
17267 # collect2, so additional links can be useful in future.
17268 if test "$aix_use_runtimelinking" = yes; then
17269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17270 # instead of lib<name>.a to let people know that these are not
17271 # typical AIX shared libraries.
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 else
17274 # We preserve .a as extension for shared libraries through AIX4.2
17275 # and later when we are not doing run time linking.
17276 library_names_spec='${libname}${release}.a $libname.a'
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 fi
17279 shlibpath_var=LIBPATH
17280 fi
17281 ;;
17282
17283amigaos*)
17284 library_names_spec='$libname.ixlibrary $libname.a'
17285 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17286 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'
17287 ;;
17288
17289beos*)
17290 library_names_spec='${libname}${shared_ext}'
17291 dynamic_linker="$host_os ld.so"
17292 shlibpath_var=LIBRARY_PATH
17293 ;;
17294
17295bsdi[45]*)
17296 version_type=linux
17297 need_version=no
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17299 soname_spec='${libname}${release}${shared_ext}$major'
17300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17304 # the default ld.so.conf also contains /usr/contrib/lib and
17305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17306 # libtool to hard-code these into programs
17307 ;;
17308
17309cygwin* | mingw* | pw32*)
17310 version_type=windows
17311 shrext_cmds=".dll"
17312 need_version=no
17313 need_lib_prefix=no
17314
17315 case $GCC,$host_os in
17316 yes,cygwin* | yes,mingw* | yes,pw32*)
17317 library_names_spec='$libname.dll.a'
17318 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17319 postinstall_cmds='base_file=`basename \${file}`~
17320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17321 dldir=$destdir/`dirname \$dlpath`~
17322 test -d \$dldir || mkdir -p \$dldir~
17323 $install_prog $dir/$dlname \$dldir/$dlname~
17324 chmod a+x \$dldir/$dlname'
17325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17326 dlpath=$dir/\$dldll~
17327 $rm \$dlpath'
17328 shlibpath_overrides_runpath=yes
17329
17330 case $host_os in
17331 cygwin*)
17332 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17334 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17335 ;;
17336 mingw*)
17337 # MinGW DLLs use traditional 'lib' prefix
17338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17339 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17340 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17341 # It is most probably a Windows format PATH printed by
17342 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17343 # path with ; separators, and with drive letters. We can handle the
17344 # drive letters (cygwin fileutils understands them), so leave them,
17345 # especially as we might pass files found there to a mingw objdump,
17346 # which wouldn't understand a cygwinified path. Ahh.
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
17351 ;;
17352 pw32*)
17353 # pw32 DLLs use 'pw' prefix rather than 'lib'
17354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17355 ;;
17356 esac
17357 ;;
17358
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017359 *)
17360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17361 ;;
17362 esac
17363 dynamic_linker='Win32 ld.exe'
17364 # FIXME: first we should search . and the directory the executable is in
17365 shlibpath_var=PATH
17366 ;;
17367
17368darwin* | rhapsody*)
17369 dynamic_linker="$host_os dyld"
17370 version_type=darwin
17371 need_lib_prefix=no
17372 need_version=no
17373 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17374 soname_spec='${libname}${release}${major}$shared_ext'
17375 shlibpath_overrides_runpath=yes
17376 shlibpath_var=DYLD_LIBRARY_PATH
17377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17378 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17379 if test "$GCC" = yes; then
17380 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"`
17381 else
17382 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17383 fi
17384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17385 ;;
17386
17387dgux*)
17388 version_type=linux
17389 need_lib_prefix=no
17390 need_version=no
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17392 soname_spec='${libname}${release}${shared_ext}$major'
17393 shlibpath_var=LD_LIBRARY_PATH
17394 ;;
17395
17396freebsd1*)
17397 dynamic_linker=no
17398 ;;
17399
17400kfreebsd*-gnu)
17401 version_type=linux
17402 need_lib_prefix=no
17403 need_version=no
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17405 soname_spec='${libname}${release}${shared_ext}$major'
17406 shlibpath_var=LD_LIBRARY_PATH
17407 shlibpath_overrides_runpath=no
17408 hardcode_into_libs=yes
17409 dynamic_linker='GNU ld.so'
17410 ;;
17411
17412freebsd* | dragonfly*)
17413 # DragonFly does not have aout. When/if they implement a new
17414 # versioning mechanism, adjust this.
17415 if test -x /usr/bin/objformat; then
17416 objformat=`/usr/bin/objformat`
17417 else
17418 case $host_os in
17419 freebsd[123]*) objformat=aout ;;
17420 *) objformat=elf ;;
17421 esac
17422 fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060017423 version_type=freebsd-$objformat
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017424 case $version_type in
17425 freebsd-elf*)
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17427 need_version=no
17428 need_lib_prefix=no
17429 ;;
17430 freebsd-*)
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17432 need_version=yes
17433 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060017434 esac
17435 shlibpath_var=LD_LIBRARY_PATH
17436 case $host_os in
17437 freebsd2*)
17438 shlibpath_overrides_runpath=yes
17439 ;;
17440 freebsd3.[01]* | freebsdelf3.[01]*)
17441 shlibpath_overrides_runpath=yes
17442 hardcode_into_libs=yes
17443 ;;
17444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17446 shlibpath_overrides_runpath=no
17447 hardcode_into_libs=yes
17448 ;;
17449 freebsd*) # from 4.6 on
17450 shlibpath_overrides_runpath=yes
17451 hardcode_into_libs=yes
17452 ;;
17453 esac
17454 ;;
17455
17456gnu*)
17457 version_type=linux
17458 need_lib_prefix=no
17459 need_version=no
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 hardcode_into_libs=yes
17464 ;;
17465
17466hpux9* | hpux10* | hpux11*)
17467 # Give a soname corresponding to the major version so that dld.sl refuses to
17468 # link against other versions.
17469 version_type=sunos
17470 need_lib_prefix=no
17471 need_version=no
17472 case $host_cpu in
17473 ia64*)
17474 shrext_cmds='.so'
17475 hardcode_into_libs=yes
17476 dynamic_linker="$host_os dld.so"
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17480 soname_spec='${libname}${release}${shared_ext}$major'
17481 if test "X$HPUX_IA64_MODE" = X32; then
17482 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17483 else
17484 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17485 fi
17486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17487 ;;
17488 hppa*64*)
17489 shrext_cmds='.sl'
17490 hardcode_into_libs=yes
17491 dynamic_linker="$host_os dld.sl"
17492 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495 soname_spec='${libname}${release}${shared_ext}$major'
17496 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17498 ;;
17499 *)
17500 shrext_cmds='.sl'
17501 dynamic_linker="$host_os dld.sl"
17502 shlibpath_var=SHLIB_PATH
17503 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505 soname_spec='${libname}${release}${shared_ext}$major'
17506 ;;
17507 esac
17508 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17509 postinstall_cmds='chmod 555 $lib'
17510 ;;
17511
17512interix3*)
17513 version_type=linux
17514 need_lib_prefix=no
17515 need_version=no
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17517 soname_spec='${libname}${release}${shared_ext}$major'
17518 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 shlibpath_overrides_runpath=no
17521 hardcode_into_libs=yes
17522 ;;
17523
17524irix5* | irix6* | nonstopux*)
17525 case $host_os in
17526 nonstopux*) version_type=nonstopux ;;
17527 *)
17528 if test "$lt_cv_prog_gnu_ld" = yes; then
17529 version_type=linux
17530 else
17531 version_type=irix
17532 fi ;;
17533 esac
17534 need_lib_prefix=no
17535 need_version=no
17536 soname_spec='${libname}${release}${shared_ext}$major'
17537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17538 case $host_os in
17539 irix5* | nonstopux*)
17540 libsuff= shlibsuff=
17541 ;;
17542 *)
17543 case $LD in # libtool.m4 will add one of these switches to LD
17544 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17545 libsuff= shlibsuff= libmagic=32-bit;;
17546 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17547 libsuff=32 shlibsuff=N32 libmagic=N32;;
17548 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17549 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17550 *) libsuff= shlibsuff= libmagic=never-match;;
17551 esac
17552 ;;
17553 esac
17554 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17555 shlibpath_overrides_runpath=no
17556 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17557 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17558 hardcode_into_libs=yes
17559 ;;
17560
17561# No shared lib support for Linux oldld, aout, or coff.
17562linux*oldld* | linux*aout* | linux*coff*)
17563 dynamic_linker=no
17564 ;;
17565
17566# This must be Linux ELF.
17567linux*)
17568 version_type=linux
17569 need_lib_prefix=no
17570 need_version=no
17571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17572 soname_spec='${libname}${release}${shared_ext}$major'
17573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17574 shlibpath_var=LD_LIBRARY_PATH
17575 shlibpath_overrides_runpath=no
17576 # This implies no fast_install, which is unacceptable.
17577 # Some rework will be needed to allow for fast_install
17578 # before this can be enabled.
17579 hardcode_into_libs=yes
17580
17581 # Append ld.so.conf contents to the search path
17582 if test -f /etc/ld.so.conf; then
17583 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' ' '`
17584 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17585 fi
17586
17587 # We used to test for /lib/ld.so.1 and disable shared libraries on
17588 # powerpc, because MkLinux only supported shared libraries with the
17589 # GNU dynamic linker. Since this was broken with cross compilers,
17590 # most powerpc-linux boxes support dynamic linking these days and
17591 # people can always --disable-shared, the test was removed, and we
17592 # assume the GNU/Linux dynamic linker is in use.
17593 dynamic_linker='GNU/Linux ld.so'
17594 ;;
17595
17596knetbsd*-gnu)
17597 version_type=linux
17598 need_lib_prefix=no
17599 need_version=no
17600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17601 soname_spec='${libname}${release}${shared_ext}$major'
17602 shlibpath_var=LD_LIBRARY_PATH
17603 shlibpath_overrides_runpath=no
17604 hardcode_into_libs=yes
17605 dynamic_linker='GNU ld.so'
17606 ;;
17607
17608netbsd*)
17609 version_type=sunos
17610 need_lib_prefix=no
17611 need_version=no
17612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17615 dynamic_linker='NetBSD (a.out) ld.so'
17616 else
17617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17618 soname_spec='${libname}${release}${shared_ext}$major'
17619 dynamic_linker='NetBSD ld.elf_so'
17620 fi
17621 shlibpath_var=LD_LIBRARY_PATH
17622 shlibpath_overrides_runpath=yes
17623 hardcode_into_libs=yes
17624 ;;
17625
17626newsos6)
17627 version_type=linux
17628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629 shlibpath_var=LD_LIBRARY_PATH
17630 shlibpath_overrides_runpath=yes
17631 ;;
17632
17633nto-qnx*)
17634 version_type=linux
17635 need_lib_prefix=no
17636 need_version=no
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638 soname_spec='${libname}${release}${shared_ext}$major'
17639 shlibpath_var=LD_LIBRARY_PATH
17640 shlibpath_overrides_runpath=yes
17641 ;;
17642
17643openbsd*)
17644 version_type=sunos
17645 sys_lib_dlsearch_path_spec="/usr/lib"
17646 need_lib_prefix=no
17647 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17648 case $host_os in
17649 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17650 *) need_version=no ;;
17651 esac
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17656 case $host_os in
17657 openbsd2.[89] | openbsd2.[89].*)
17658 shlibpath_overrides_runpath=no
17659 ;;
17660 *)
17661 shlibpath_overrides_runpath=yes
17662 ;;
17663 esac
17664 else
17665 shlibpath_overrides_runpath=yes
17666 fi
17667 ;;
17668
17669os2*)
17670 libname_spec='$name'
17671 shrext_cmds=".dll"
17672 need_lib_prefix=no
17673 library_names_spec='$libname${shared_ext} $libname.a'
17674 dynamic_linker='OS/2 ld.exe'
17675 shlibpath_var=LIBPATH
17676 ;;
17677
17678osf3* | osf4* | osf5*)
17679 version_type=osf
17680 need_lib_prefix=no
17681 need_version=no
17682 soname_spec='${libname}${release}${shared_ext}$major'
17683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684 shlibpath_var=LD_LIBRARY_PATH
17685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17686 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17687 ;;
17688
17689solaris*)
17690 version_type=linux
17691 need_lib_prefix=no
17692 need_version=no
17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17694 soname_spec='${libname}${release}${shared_ext}$major'
17695 shlibpath_var=LD_LIBRARY_PATH
17696 shlibpath_overrides_runpath=yes
17697 hardcode_into_libs=yes
17698 # ldd complains unless libraries are executable
17699 postinstall_cmds='chmod +x $lib'
17700 ;;
17701
17702sunos4*)
17703 version_type=sunos
17704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17705 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17706 shlibpath_var=LD_LIBRARY_PATH
17707 shlibpath_overrides_runpath=yes
17708 if test "$with_gnu_ld" = yes; then
17709 need_lib_prefix=no
17710 fi
17711 need_version=yes
17712 ;;
17713
17714sysv4 | sysv4.3*)
17715 version_type=linux
17716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17717 soname_spec='${libname}${release}${shared_ext}$major'
17718 shlibpath_var=LD_LIBRARY_PATH
17719 case $host_vendor in
17720 sni)
17721 shlibpath_overrides_runpath=no
17722 need_lib_prefix=no
17723 export_dynamic_flag_spec='${wl}-Blargedynsym'
17724 runpath_var=LD_RUN_PATH
17725 ;;
17726 siemens)
17727 need_lib_prefix=no
17728 ;;
17729 motorola)
17730 need_lib_prefix=no
17731 need_version=no
17732 shlibpath_overrides_runpath=no
17733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17734 ;;
17735 esac
17736 ;;
17737
17738sysv4*MP*)
17739 if test -d /usr/nec ;then
17740 version_type=linux
17741 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17742 soname_spec='$libname${shared_ext}.$major'
17743 shlibpath_var=LD_LIBRARY_PATH
17744 fi
17745 ;;
17746
17747sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17748 version_type=freebsd-elf
17749 need_lib_prefix=no
17750 need_version=no
17751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17752 soname_spec='${libname}${release}${shared_ext}$major'
17753 shlibpath_var=LD_LIBRARY_PATH
17754 hardcode_into_libs=yes
17755 if test "$with_gnu_ld" = yes; then
17756 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17757 shlibpath_overrides_runpath=no
17758 else
17759 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17760 shlibpath_overrides_runpath=yes
17761 case $host_os in
17762 sco3.2v5*)
17763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17764 ;;
17765 esac
17766 fi
17767 sys_lib_dlsearch_path_spec='/usr/lib'
17768 ;;
17769
17770uts4*)
17771 version_type=linux
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17773 soname_spec='${libname}${release}${shared_ext}$major'
17774 shlibpath_var=LD_LIBRARY_PATH
17775 ;;
17776
17777*)
17778 dynamic_linker=no
17779 ;;
17780esac
17781echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17782echo "${ECHO_T}$dynamic_linker" >&6
17783test "$dynamic_linker" = no && can_build_shared=no
17784
17785variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17786if test "$GCC" = yes; then
17787 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17788fi
17789
17790echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17791echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17792hardcode_action_GCJ=
17793if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17794 test -n "$runpath_var_GCJ" || \
17795 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17796
17797 # We can hardcode non-existant directories.
17798 if test "$hardcode_direct_GCJ" != no &&
17799 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17800 # have to relink, otherwise we might link with an installed library
17801 # when we should be linking with a yet-to-be-installed one
17802 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17803 test "$hardcode_minus_L_GCJ" != no; then
17804 # Linking always hardcodes the temporary library directory.
17805 hardcode_action_GCJ=relink
17806 else
17807 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17808 hardcode_action_GCJ=immediate
17809 fi
17810else
17811 # We cannot hardcode anything, or else we can only hardcode existing
17812 # directories.
17813 hardcode_action_GCJ=unsupported
17814fi
17815echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17816echo "${ECHO_T}$hardcode_action_GCJ" >&6
17817
17818if test "$hardcode_action_GCJ" = relink; then
17819 # Fast installation is not supported
17820 enable_fast_install=no
17821elif test "$shlibpath_overrides_runpath" = yes ||
17822 test "$enable_shared" = no; then
17823 # Fast installation is not necessary
17824 enable_fast_install=needless
17825fi
17826
17827
17828# The else clause should only fire when bootstrapping the
17829# libtool distribution, otherwise you forgot to ship ltmain.sh
17830# with your package, and you will get complaints that there are
17831# no rules to generate ltmain.sh.
17832if test -f "$ltmain"; then
17833 # See if we are running on zsh, and set the options which allow our commands through
17834 # without removal of \ escapes.
17835 if test -n "${ZSH_VERSION+set}" ; then
17836 setopt NO_GLOB_SUBST
17837 fi
17838 # Now quote all the things that may contain metacharacters while being
17839 # careful not to overquote the AC_SUBSTed values. We take copies of the
17840 # variables and quote the copies for generation of the libtool script.
17841 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17842 SED SHELL STRIP \
17843 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17844 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17845 deplibs_check_method reload_flag reload_cmds need_locks \
17846 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17847 lt_cv_sys_global_symbol_to_c_name_address \
17848 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17849 old_postinstall_cmds old_postuninstall_cmds \
17850 compiler_GCJ \
17851 CC_GCJ \
17852 LD_GCJ \
17853 lt_prog_compiler_wl_GCJ \
17854 lt_prog_compiler_pic_GCJ \
17855 lt_prog_compiler_static_GCJ \
17856 lt_prog_compiler_no_builtin_flag_GCJ \
17857 export_dynamic_flag_spec_GCJ \
17858 thread_safe_flag_spec_GCJ \
17859 whole_archive_flag_spec_GCJ \
17860 enable_shared_with_static_runtimes_GCJ \
17861 old_archive_cmds_GCJ \
17862 old_archive_from_new_cmds_GCJ \
17863 predep_objects_GCJ \
17864 postdep_objects_GCJ \
17865 predeps_GCJ \
17866 postdeps_GCJ \
17867 compiler_lib_search_path_GCJ \
17868 archive_cmds_GCJ \
17869 archive_expsym_cmds_GCJ \
17870 postinstall_cmds_GCJ \
17871 postuninstall_cmds_GCJ \
17872 old_archive_from_expsyms_cmds_GCJ \
17873 allow_undefined_flag_GCJ \
17874 no_undefined_flag_GCJ \
17875 export_symbols_cmds_GCJ \
17876 hardcode_libdir_flag_spec_GCJ \
17877 hardcode_libdir_flag_spec_ld_GCJ \
17878 hardcode_libdir_separator_GCJ \
17879 hardcode_automatic_GCJ \
17880 module_cmds_GCJ \
17881 module_expsym_cmds_GCJ \
17882 lt_cv_prog_compiler_c_o_GCJ \
17883 exclude_expsyms_GCJ \
17884 include_expsyms_GCJ; do
17885
17886 case $var in
17887 old_archive_cmds_GCJ | \
17888 old_archive_from_new_cmds_GCJ | \
17889 archive_cmds_GCJ | \
17890 archive_expsym_cmds_GCJ | \
17891 module_cmds_GCJ | \
17892 module_expsym_cmds_GCJ | \
17893 old_archive_from_expsyms_cmds_GCJ | \
17894 export_symbols_cmds_GCJ | \
17895 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17896 postinstall_cmds | postuninstall_cmds | \
17897 old_postinstall_cmds | old_postuninstall_cmds | \
17898 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17899 # Double-quote double-evaled strings.
17900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17901 ;;
17902 *)
17903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17904 ;;
17905 esac
17906 done
17907
17908 case $lt_echo in
17909 *'\$0 --fallback-echo"')
17910 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17911 ;;
17912 esac
17913
17914cfgfile="$ofile"
17915
17916 cat <<__EOF__ >> "$cfgfile"
17917# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17918
17919# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17920
17921# Shell to use when invoking shell scripts.
17922SHELL=$lt_SHELL
17923
17924# Whether or not to build shared libraries.
17925build_libtool_libs=$enable_shared
17926
17927# Whether or not to build static libraries.
17928build_old_libs=$enable_static
17929
17930# Whether or not to add -lc for building shared libraries.
17931build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17932
17933# Whether or not to disallow shared libs when runtime libs are static
17934allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17935
17936# Whether or not to optimize for fast installation.
17937fast_install=$enable_fast_install
17938
17939# The host system.
17940host_alias=$host_alias
17941host=$host
17942host_os=$host_os
17943
17944# The build system.
17945build_alias=$build_alias
17946build=$build
17947build_os=$build_os
17948
17949# An echo program that does not interpret backslashes.
17950echo=$lt_echo
17951
17952# The archiver.
17953AR=$lt_AR
17954AR_FLAGS=$lt_AR_FLAGS
17955
17956# A C compiler.
17957LTCC=$lt_LTCC
17958
17959# LTCC compiler flags.
17960LTCFLAGS=$lt_LTCFLAGS
17961
17962# A language-specific compiler.
17963CC=$lt_compiler_GCJ
17964
17965# Is the compiler the GNU C compiler?
17966with_gcc=$GCC_GCJ
17967
17968# An ERE matcher.
17969EGREP=$lt_EGREP
17970
17971# The linker used to build libraries.
17972LD=$lt_LD_GCJ
17973
17974# Whether we need hard or soft links.
17975LN_S=$lt_LN_S
17976
17977# A BSD-compatible nm program.
17978NM=$lt_NM
17979
17980# A symbol stripping program
17981STRIP=$lt_STRIP
17982
17983# Used to examine libraries when file_magic_cmd begins "file"
17984MAGIC_CMD=$MAGIC_CMD
17985
17986# Used on cygwin: DLL creation program.
17987DLLTOOL="$DLLTOOL"
17988
17989# Used on cygwin: object dumper.
17990OBJDUMP="$OBJDUMP"
17991
17992# Used on cygwin: assembler.
17993AS="$AS"
17994
17995# The name of the directory that contains temporary libtool files.
17996objdir=$objdir
17997
17998# How to create reloadable object files.
17999reload_flag=$lt_reload_flag
18000reload_cmds=$lt_reload_cmds
18001
18002# How to pass a linker flag through the compiler.
18003wl=$lt_lt_prog_compiler_wl_GCJ
18004
18005# Object file suffix (normally "o").
18006objext="$ac_objext"
18007
18008# Old archive suffix (normally "a").
18009libext="$libext"
18010
18011# Shared library suffix (normally ".so").
18012shrext_cmds='$shrext_cmds'
18013
18014# Executable file suffix (normally "").
18015exeext="$exeext"
18016
18017# Additional compiler flags for building library objects.
18018pic_flag=$lt_lt_prog_compiler_pic_GCJ
18019pic_mode=$pic_mode
18020
18021# What is the maximum length of a command?
18022max_cmd_len=$lt_cv_sys_max_cmd_len
18023
18024# Does compiler simultaneously support -c and -o options?
18025compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18026
18027# Must we lock files when doing compilation?
18028need_locks=$lt_need_locks
18029
18030# Do we need the lib prefix for modules?
18031need_lib_prefix=$need_lib_prefix
18032
18033# Do we need a version for libraries?
18034need_version=$need_version
18035
18036# Whether dlopen is supported.
18037dlopen_support=$enable_dlopen
18038
18039# Whether dlopen of programs is supported.
18040dlopen_self=$enable_dlopen_self
18041
18042# Whether dlopen of statically linked programs is supported.
18043dlopen_self_static=$enable_dlopen_self_static
18044
18045# Compiler flag to prevent dynamic linking.
18046link_static_flag=$lt_lt_prog_compiler_static_GCJ
18047
18048# Compiler flag to turn off builtin functions.
18049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18050
18051# Compiler flag to allow reflexive dlopens.
18052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18053
18054# Compiler flag to generate shared objects directly from archives.
18055whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18056
18057# Compiler flag to generate thread-safe objects.
18058thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18059
18060# Library versioning type.
18061version_type=$version_type
18062
18063# Format of library name prefix.
18064libname_spec=$lt_libname_spec
18065
18066# List of archive names. First name is the real one, the rest are links.
18067# The last name is the one that the linker finds with -lNAME.
18068library_names_spec=$lt_library_names_spec
18069
18070# The coded name of the library, if different from the real name.
18071soname_spec=$lt_soname_spec
18072
18073# Commands used to build and install an old-style archive.
18074RANLIB=$lt_RANLIB
18075old_archive_cmds=$lt_old_archive_cmds_GCJ
18076old_postinstall_cmds=$lt_old_postinstall_cmds
18077old_postuninstall_cmds=$lt_old_postuninstall_cmds
18078
18079# Create an old-style archive from a shared archive.
18080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18081
18082# Create a temporary old-style archive to link instead of a shared archive.
18083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18084
18085# Commands used to build and install a shared archive.
18086archive_cmds=$lt_archive_cmds_GCJ
18087archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18088postinstall_cmds=$lt_postinstall_cmds
18089postuninstall_cmds=$lt_postuninstall_cmds
18090
18091# Commands used to build a loadable module (assumed same as above if empty)
18092module_cmds=$lt_module_cmds_GCJ
18093module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18094
18095# Commands to strip libraries.
18096old_striplib=$lt_old_striplib
18097striplib=$lt_striplib
18098
18099# Dependencies to place before the objects being linked to create a
18100# shared library.
18101predep_objects=$lt_predep_objects_GCJ
18102
18103# Dependencies to place after the objects being linked to create a
18104# shared library.
18105postdep_objects=$lt_postdep_objects_GCJ
18106
18107# Dependencies to place before the objects being linked to create a
18108# shared library.
18109predeps=$lt_predeps_GCJ
18110
18111# Dependencies to place after the objects being linked to create a
18112# shared library.
18113postdeps=$lt_postdeps_GCJ
18114
18115# The library search path used internally by the compiler when linking
18116# a shared library.
18117compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18118
18119# Method to check whether dependent libraries are shared objects.
18120deplibs_check_method=$lt_deplibs_check_method
18121
18122# Command to use when deplibs_check_method == file_magic.
18123file_magic_cmd=$lt_file_magic_cmd
18124
18125# Flag that allows shared libraries with undefined symbols to be built.
18126allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18127
18128# Flag that forces no undefined symbols.
18129no_undefined_flag=$lt_no_undefined_flag_GCJ
18130
18131# Commands used to finish a libtool library installation in a directory.
18132finish_cmds=$lt_finish_cmds
18133
18134# Same as above, but a single script fragment to be evaled but not shown.
18135finish_eval=$lt_finish_eval
18136
18137# Take the output of nm and produce a listing of raw symbols and C names.
18138global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18139
18140# Transform the output of nm in a proper C declaration
18141global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18142
18143# Transform the output of nm in a C name address pair
18144global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18145
18146# This is the shared library runtime path variable.
18147runpath_var=$runpath_var
18148
18149# This is the shared library path variable.
18150shlibpath_var=$shlibpath_var
18151
18152# Is shlibpath searched before the hard-coded library search path?
18153shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18154
18155# How to hardcode a shared library path into an executable.
18156hardcode_action=$hardcode_action_GCJ
18157
18158# Whether we should hardcode library paths into libraries.
18159hardcode_into_libs=$hardcode_into_libs
18160
18161# Flag to hardcode \$libdir into a binary during linking.
18162# This must work even if \$libdir does not exist.
18163hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18164
18165# If ld is used when linking, flag to hardcode \$libdir into
18166# a binary during linking. This must work even if \$libdir does
18167# not exist.
18168hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18169
18170# Whether we need a single -rpath flag with a separated argument.
18171hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18172
18173# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18174# resulting binary.
18175hardcode_direct=$hardcode_direct_GCJ
18176
18177# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18178# resulting binary.
18179hardcode_minus_L=$hardcode_minus_L_GCJ
18180
18181# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18182# the resulting binary.
18183hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18184
18185# Set to yes if building a shared library automatically hardcodes DIR into the library
18186# and all subsequent libraries and executables linked against it.
18187hardcode_automatic=$hardcode_automatic_GCJ
18188
18189# Variables whose values should be saved in libtool wrapper scripts and
18190# restored at relink time.
18191variables_saved_for_relink="$variables_saved_for_relink"
18192
18193# Whether libtool must link a program against all its dependency libraries.
18194link_all_deplibs=$link_all_deplibs_GCJ
18195
18196# Compile-time system search path for libraries
18197sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18198
18199# Run-time system search path for libraries
18200sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18201
18202# Fix the shell variable \$srcfile for the compiler.
18203fix_srcfile_path="$fix_srcfile_path_GCJ"
18204
18205# Set to yes if exported symbols are required.
18206always_export_symbols=$always_export_symbols_GCJ
18207
18208# The commands to list exported symbols.
18209export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18210
18211# The commands to extract the exported symbol list from a shared archive.
18212extract_expsyms_cmds=$lt_extract_expsyms_cmds
18213
18214# Symbols that should not be listed in the preloaded symbols.
18215exclude_expsyms=$lt_exclude_expsyms_GCJ
18216
18217# Symbols that must always be exported.
18218include_expsyms=$lt_include_expsyms_GCJ
18219
18220# ### END LIBTOOL TAG CONFIG: $tagname
18221
18222__EOF__
18223
18224
18225else
18226 # If there is no Makefile yet, we rely on a make rule to execute
18227 # `config.status --recheck' to rerun these tests and create the
18228 # libtool script then.
18229 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18230 if test -f "$ltmain_in"; then
18231 test -f Makefile && make "$ltmain"
18232 fi
18233fi
18234
18235
18236ac_ext=c
18237ac_cpp='$CPP $CPPFLAGS'
18238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18240ac_compiler_gnu=$ac_cv_c_compiler_gnu
18241
18242CC="$lt_save_CC"
18243
18244 else
18245 tagname=""
18246 fi
18247 ;;
18248
18249 RC)
18250
18251
18252
18253# Source file extension for RC test sources.
18254ac_ext=rc
18255
18256# Object file extension for compiled RC test sources.
18257objext=o
18258objext_RC=$objext
18259
18260# Code to be used in simple compile tests
18261lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18262
18263# Code to be used in simple link tests
18264lt_simple_link_test_code="$lt_simple_compile_test_code"
18265
18266# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18267
18268# If no C compiler was specified, use CC.
18269LTCC=${LTCC-"$CC"}
18270
18271# If no C compiler flags were specified, use CFLAGS.
18272LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18273
18274# Allow CC to be a program name with arguments.
18275compiler=$CC
18276
18277
18278# save warnings/boilerplate of simple test code
18279ac_outfile=conftest.$ac_objext
18280printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18281eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18282_lt_compiler_boilerplate=`cat conftest.err`
18283$rm conftest*
18284
18285ac_outfile=conftest.$ac_objext
18286printf "$lt_simple_link_test_code" >conftest.$ac_ext
18287eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18288_lt_linker_boilerplate=`cat conftest.err`
18289$rm conftest*
18290
18291
18292# Allow CC to be a program name with arguments.
18293lt_save_CC="$CC"
18294CC=${RC-"windres"}
18295compiler=$CC
18296compiler_RC=$CC
18297for cc_temp in $compiler""; do
18298 case $cc_temp in
18299 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18300 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18301 \-*) ;;
18302 *) break;;
18303 esac
18304done
18305cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18306
18307lt_cv_prog_compiler_c_o_RC=yes
18308
18309# The else clause should only fire when bootstrapping the
18310# libtool distribution, otherwise you forgot to ship ltmain.sh
18311# with your package, and you will get complaints that there are
18312# no rules to generate ltmain.sh.
18313if test -f "$ltmain"; then
18314 # See if we are running on zsh, and set the options which allow our commands through
18315 # without removal of \ escapes.
18316 if test -n "${ZSH_VERSION+set}" ; then
18317 setopt NO_GLOB_SUBST
18318 fi
18319 # Now quote all the things that may contain metacharacters while being
18320 # careful not to overquote the AC_SUBSTed values. We take copies of the
18321 # variables and quote the copies for generation of the libtool script.
18322 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18323 SED SHELL STRIP \
18324 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18325 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18326 deplibs_check_method reload_flag reload_cmds need_locks \
18327 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18328 lt_cv_sys_global_symbol_to_c_name_address \
18329 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18330 old_postinstall_cmds old_postuninstall_cmds \
18331 compiler_RC \
18332 CC_RC \
18333 LD_RC \
18334 lt_prog_compiler_wl_RC \
18335 lt_prog_compiler_pic_RC \
18336 lt_prog_compiler_static_RC \
18337 lt_prog_compiler_no_builtin_flag_RC \
18338 export_dynamic_flag_spec_RC \
18339 thread_safe_flag_spec_RC \
18340 whole_archive_flag_spec_RC \
18341 enable_shared_with_static_runtimes_RC \
18342 old_archive_cmds_RC \
18343 old_archive_from_new_cmds_RC \
18344 predep_objects_RC \
18345 postdep_objects_RC \
18346 predeps_RC \
18347 postdeps_RC \
18348 compiler_lib_search_path_RC \
18349 archive_cmds_RC \
18350 archive_expsym_cmds_RC \
18351 postinstall_cmds_RC \
18352 postuninstall_cmds_RC \
18353 old_archive_from_expsyms_cmds_RC \
18354 allow_undefined_flag_RC \
18355 no_undefined_flag_RC \
18356 export_symbols_cmds_RC \
18357 hardcode_libdir_flag_spec_RC \
18358 hardcode_libdir_flag_spec_ld_RC \
18359 hardcode_libdir_separator_RC \
18360 hardcode_automatic_RC \
18361 module_cmds_RC \
18362 module_expsym_cmds_RC \
18363 lt_cv_prog_compiler_c_o_RC \
18364 exclude_expsyms_RC \
18365 include_expsyms_RC; do
18366
18367 case $var in
18368 old_archive_cmds_RC | \
18369 old_archive_from_new_cmds_RC | \
18370 archive_cmds_RC | \
18371 archive_expsym_cmds_RC | \
18372 module_cmds_RC | \
18373 module_expsym_cmds_RC | \
18374 old_archive_from_expsyms_cmds_RC | \
18375 export_symbols_cmds_RC | \
18376 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18377 postinstall_cmds | postuninstall_cmds | \
18378 old_postinstall_cmds | old_postuninstall_cmds | \
18379 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18380 # Double-quote double-evaled strings.
18381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18382 ;;
18383 *)
18384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18385 ;;
18386 esac
18387 done
18388
18389 case $lt_echo in
18390 *'\$0 --fallback-echo"')
18391 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18392 ;;
18393 esac
18394
18395cfgfile="$ofile"
18396
18397 cat <<__EOF__ >> "$cfgfile"
18398# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18399
18400# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18401
18402# Shell to use when invoking shell scripts.
18403SHELL=$lt_SHELL
18404
18405# Whether or not to build shared libraries.
18406build_libtool_libs=$enable_shared
18407
18408# Whether or not to build static libraries.
18409build_old_libs=$enable_static
18410
18411# Whether or not to add -lc for building shared libraries.
18412build_libtool_need_lc=$archive_cmds_need_lc_RC
18413
18414# Whether or not to disallow shared libs when runtime libs are static
18415allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18416
18417# Whether or not to optimize for fast installation.
18418fast_install=$enable_fast_install
18419
18420# The host system.
18421host_alias=$host_alias
18422host=$host
18423host_os=$host_os
18424
18425# The build system.
18426build_alias=$build_alias
18427build=$build
18428build_os=$build_os
18429
18430# An echo program that does not interpret backslashes.
18431echo=$lt_echo
18432
18433# The archiver.
18434AR=$lt_AR
18435AR_FLAGS=$lt_AR_FLAGS
18436
18437# A C compiler.
18438LTCC=$lt_LTCC
18439
18440# LTCC compiler flags.
18441LTCFLAGS=$lt_LTCFLAGS
18442
18443# A language-specific compiler.
18444CC=$lt_compiler_RC
18445
18446# Is the compiler the GNU C compiler?
18447with_gcc=$GCC_RC
18448
18449# An ERE matcher.
18450EGREP=$lt_EGREP
18451
18452# The linker used to build libraries.
18453LD=$lt_LD_RC
18454
18455# Whether we need hard or soft links.
18456LN_S=$lt_LN_S
18457
18458# A BSD-compatible nm program.
18459NM=$lt_NM
18460
18461# A symbol stripping program
18462STRIP=$lt_STRIP
18463
18464# Used to examine libraries when file_magic_cmd begins "file"
18465MAGIC_CMD=$MAGIC_CMD
18466
18467# Used on cygwin: DLL creation program.
18468DLLTOOL="$DLLTOOL"
18469
18470# Used on cygwin: object dumper.
18471OBJDUMP="$OBJDUMP"
18472
18473# Used on cygwin: assembler.
18474AS="$AS"
18475
18476# The name of the directory that contains temporary libtool files.
18477objdir=$objdir
18478
18479# How to create reloadable object files.
18480reload_flag=$lt_reload_flag
18481reload_cmds=$lt_reload_cmds
18482
18483# How to pass a linker flag through the compiler.
18484wl=$lt_lt_prog_compiler_wl_RC
18485
18486# Object file suffix (normally "o").
18487objext="$ac_objext"
18488
18489# Old archive suffix (normally "a").
18490libext="$libext"
18491
18492# Shared library suffix (normally ".so").
18493shrext_cmds='$shrext_cmds'
18494
18495# Executable file suffix (normally "").
18496exeext="$exeext"
18497
18498# Additional compiler flags for building library objects.
18499pic_flag=$lt_lt_prog_compiler_pic_RC
18500pic_mode=$pic_mode
18501
18502# What is the maximum length of a command?
18503max_cmd_len=$lt_cv_sys_max_cmd_len
18504
18505# Does compiler simultaneously support -c and -o options?
18506compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18507
18508# Must we lock files when doing compilation?
18509need_locks=$lt_need_locks
18510
18511# Do we need the lib prefix for modules?
18512need_lib_prefix=$need_lib_prefix
18513
18514# Do we need a version for libraries?
18515need_version=$need_version
18516
18517# Whether dlopen is supported.
18518dlopen_support=$enable_dlopen
18519
18520# Whether dlopen of programs is supported.
18521dlopen_self=$enable_dlopen_self
18522
18523# Whether dlopen of statically linked programs is supported.
18524dlopen_self_static=$enable_dlopen_self_static
18525
18526# Compiler flag to prevent dynamic linking.
18527link_static_flag=$lt_lt_prog_compiler_static_RC
18528
18529# Compiler flag to turn off builtin functions.
18530no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18531
18532# Compiler flag to allow reflexive dlopens.
18533export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18534
18535# Compiler flag to generate shared objects directly from archives.
18536whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18537
18538# Compiler flag to generate thread-safe objects.
18539thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18540
18541# Library versioning type.
18542version_type=$version_type
18543
18544# Format of library name prefix.
18545libname_spec=$lt_libname_spec
18546
18547# List of archive names. First name is the real one, the rest are links.
18548# The last name is the one that the linker finds with -lNAME.
18549library_names_spec=$lt_library_names_spec
18550
18551# The coded name of the library, if different from the real name.
18552soname_spec=$lt_soname_spec
18553
18554# Commands used to build and install an old-style archive.
18555RANLIB=$lt_RANLIB
18556old_archive_cmds=$lt_old_archive_cmds_RC
18557old_postinstall_cmds=$lt_old_postinstall_cmds
18558old_postuninstall_cmds=$lt_old_postuninstall_cmds
18559
18560# Create an old-style archive from a shared archive.
18561old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18562
18563# Create a temporary old-style archive to link instead of a shared archive.
18564old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18565
18566# Commands used to build and install a shared archive.
18567archive_cmds=$lt_archive_cmds_RC
18568archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18569postinstall_cmds=$lt_postinstall_cmds
18570postuninstall_cmds=$lt_postuninstall_cmds
18571
18572# Commands used to build a loadable module (assumed same as above if empty)
18573module_cmds=$lt_module_cmds_RC
18574module_expsym_cmds=$lt_module_expsym_cmds_RC
18575
18576# Commands to strip libraries.
18577old_striplib=$lt_old_striplib
18578striplib=$lt_striplib
18579
18580# Dependencies to place before the objects being linked to create a
18581# shared library.
18582predep_objects=$lt_predep_objects_RC
18583
18584# Dependencies to place after the objects being linked to create a
18585# shared library.
18586postdep_objects=$lt_postdep_objects_RC
18587
18588# Dependencies to place before the objects being linked to create a
18589# shared library.
18590predeps=$lt_predeps_RC
18591
18592# Dependencies to place after the objects being linked to create a
18593# shared library.
18594postdeps=$lt_postdeps_RC
18595
18596# The library search path used internally by the compiler when linking
18597# a shared library.
18598compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18599
18600# Method to check whether dependent libraries are shared objects.
18601deplibs_check_method=$lt_deplibs_check_method
18602
18603# Command to use when deplibs_check_method == file_magic.
18604file_magic_cmd=$lt_file_magic_cmd
18605
18606# Flag that allows shared libraries with undefined symbols to be built.
18607allow_undefined_flag=$lt_allow_undefined_flag_RC
18608
18609# Flag that forces no undefined symbols.
18610no_undefined_flag=$lt_no_undefined_flag_RC
18611
18612# Commands used to finish a libtool library installation in a directory.
18613finish_cmds=$lt_finish_cmds
18614
18615# Same as above, but a single script fragment to be evaled but not shown.
18616finish_eval=$lt_finish_eval
18617
18618# Take the output of nm and produce a listing of raw symbols and C names.
18619global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18620
18621# Transform the output of nm in a proper C declaration
18622global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18623
18624# Transform the output of nm in a C name address pair
18625global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18626
18627# This is the shared library runtime path variable.
18628runpath_var=$runpath_var
18629
18630# This is the shared library path variable.
18631shlibpath_var=$shlibpath_var
18632
18633# Is shlibpath searched before the hard-coded library search path?
18634shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18635
18636# How to hardcode a shared library path into an executable.
18637hardcode_action=$hardcode_action_RC
18638
18639# Whether we should hardcode library paths into libraries.
18640hardcode_into_libs=$hardcode_into_libs
18641
18642# Flag to hardcode \$libdir into a binary during linking.
18643# This must work even if \$libdir does not exist.
18644hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18645
18646# If ld is used when linking, flag to hardcode \$libdir into
18647# a binary during linking. This must work even if \$libdir does
18648# not exist.
18649hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18650
18651# Whether we need a single -rpath flag with a separated argument.
18652hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18653
18654# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18655# resulting binary.
18656hardcode_direct=$hardcode_direct_RC
18657
18658# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18659# resulting binary.
18660hardcode_minus_L=$hardcode_minus_L_RC
18661
18662# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18663# the resulting binary.
18664hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18665
18666# Set to yes if building a shared library automatically hardcodes DIR into the library
18667# and all subsequent libraries and executables linked against it.
18668hardcode_automatic=$hardcode_automatic_RC
18669
18670# Variables whose values should be saved in libtool wrapper scripts and
18671# restored at relink time.
18672variables_saved_for_relink="$variables_saved_for_relink"
18673
18674# Whether libtool must link a program against all its dependency libraries.
18675link_all_deplibs=$link_all_deplibs_RC
18676
18677# Compile-time system search path for libraries
18678sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18679
18680# Run-time system search path for libraries
18681sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18682
18683# Fix the shell variable \$srcfile for the compiler.
18684fix_srcfile_path="$fix_srcfile_path_RC"
18685
18686# Set to yes if exported symbols are required.
18687always_export_symbols=$always_export_symbols_RC
18688
18689# The commands to list exported symbols.
18690export_symbols_cmds=$lt_export_symbols_cmds_RC
18691
18692# The commands to extract the exported symbol list from a shared archive.
18693extract_expsyms_cmds=$lt_extract_expsyms_cmds
18694
18695# Symbols that should not be listed in the preloaded symbols.
18696exclude_expsyms=$lt_exclude_expsyms_RC
18697
18698# Symbols that must always be exported.
18699include_expsyms=$lt_include_expsyms_RC
18700
18701# ### END LIBTOOL TAG CONFIG: $tagname
18702
18703__EOF__
18704
18705
18706else
18707 # If there is no Makefile yet, we rely on a make rule to execute
18708 # `config.status --recheck' to rerun these tests and create the
18709 # libtool script then.
18710 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18711 if test -f "$ltmain_in"; then
18712 test -f Makefile && make "$ltmain"
18713 fi
18714fi
18715
18716
18717ac_ext=c
18718ac_cpp='$CPP $CPPFLAGS'
18719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721ac_compiler_gnu=$ac_cv_c_compiler_gnu
18722
18723CC="$lt_save_CC"
18724
18725 ;;
18726
18727 *)
18728 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18729echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18730 { (exit 1); exit 1; }; }
18731 ;;
18732 esac
18733
18734 # Append the new tag name to the list of available tags.
18735 if test -n "$tagname" ; then
18736 available_tags="$available_tags $tagname"
18737 fi
18738 fi
18739 done
18740 IFS="$lt_save_ifs"
18741
18742 # Now substitute the updated list of available tags.
18743 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18744 mv "${ofile}T" "$ofile"
18745 chmod +x "$ofile"
18746 else
18747 rm -f "${ofile}T"
18748 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18749echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18750 { (exit 1); exit 1; }; }
18751 fi
18752fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018753
18754
18755
18756# This can be used to rebuild libtool when needed
18757LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18758
18759# Always use our own libtool.
18760LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18761
18762# Prevent multiple expansion
18763
18764
18765
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018784# Checks for header files.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018785echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18786echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18787if test "${ac_cv_header_stdc+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18789else
18790 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018791/* confdefs.h. */
18792_ACEOF
18793cat confdefs.h >>conftest.$ac_ext
18794cat >>conftest.$ac_ext <<_ACEOF
18795/* end confdefs.h. */
18796#include <stdlib.h>
18797#include <stdarg.h>
18798#include <string.h>
18799#include <float.h>
18800
18801int
18802main ()
18803{
18804
18805 ;
18806 return 0;
18807}
18808_ACEOF
18809rm -f conftest.$ac_objext
18810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018811 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018812 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018813 grep -v '^ *+' conftest.er1 >conftest.err
18814 rm -f conftest.er1
18815 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018818 { ac_try='test -z "$ac_c_werror_flag"
18819 || test ! -s conftest.err'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18831 ac_cv_header_stdc=yes
18832else
18833 echo "$as_me: failed program was:" >&5
18834sed 's/^/| /' conftest.$ac_ext >&5
18835
18836ac_cv_header_stdc=no
18837fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018839
18840if test $ac_cv_header_stdc = yes; then
18841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18842 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018843/* confdefs.h. */
18844_ACEOF
18845cat confdefs.h >>conftest.$ac_ext
18846cat >>conftest.$ac_ext <<_ACEOF
18847/* end confdefs.h. */
18848#include <string.h>
18849
18850_ACEOF
18851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18852 $EGREP "memchr" >/dev/null 2>&1; then
18853 :
18854else
18855 ac_cv_header_stdc=no
18856fi
18857rm -f conftest*
18858
18859fi
18860
18861if test $ac_cv_header_stdc = yes; then
18862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18863 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018864/* confdefs.h. */
18865_ACEOF
18866cat confdefs.h >>conftest.$ac_ext
18867cat >>conftest.$ac_ext <<_ACEOF
18868/* end confdefs.h. */
18869#include <stdlib.h>
18870
18871_ACEOF
18872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18873 $EGREP "free" >/dev/null 2>&1; then
18874 :
18875else
18876 ac_cv_header_stdc=no
18877fi
18878rm -f conftest*
18879
18880fi
18881
18882if test $ac_cv_header_stdc = yes; then
18883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18884 if test "$cross_compiling" = yes; then
18885 :
18886else
18887 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018888/* confdefs.h. */
18889_ACEOF
18890cat confdefs.h >>conftest.$ac_ext
18891cat >>conftest.$ac_ext <<_ACEOF
18892/* end confdefs.h. */
18893#include <ctype.h>
18894#if ((' ' & 0x0FF) == 0x020)
18895# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18896# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18897#else
18898# define ISLOWER(c) \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018899 (('a' <= (c) && (c) <= 'i') \
18900 || ('j' <= (c) && (c) <= 'r') \
18901 || ('s' <= (c) && (c) <= 'z'))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018902# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18903#endif
18904
18905#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18906int
18907main ()
18908{
18909 int i;
18910 for (i = 0; i < 256; i++)
18911 if (XOR (islower (i), ISLOWER (i))
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018912 || toupper (i) != TOUPPER (i))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018913 exit(2);
18914 exit (0);
18915}
18916_ACEOF
18917rm -f conftest$ac_exeext
18918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18919 (eval $ac_link) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18928 :
18929else
18930 echo "$as_me: program exited with status $ac_status" >&5
18931echo "$as_me: failed program was:" >&5
18932sed 's/^/| /' conftest.$ac_ext >&5
18933
18934( exit $ac_status )
18935ac_cv_header_stdc=no
18936fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018937rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018938fi
18939fi
18940fi
18941echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18942echo "${ECHO_T}$ac_cv_header_stdc" >&6
18943if test $ac_cv_header_stdc = yes; then
18944
18945cat >>confdefs.h <<\_ACEOF
18946#define STDC_HEADERS 1
18947_ACEOF
18948
18949fi
18950
18951
18952
18953
18954
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018955for ac_header in malloc.h stdlib.h string.h strings.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018956do
18957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18958if eval "test \"\${$as_ac_Header+set}\" = set"; then
18959 echo "$as_me:$LINENO: checking for $ac_header" >&5
18960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18961if eval "test \"\${$as_ac_Header+set}\" = set"; then
18962 echo $ECHO_N "(cached) $ECHO_C" >&6
18963fi
18964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18966else
18967 # Is the header compilable?
18968echo "$as_me:$LINENO: checking $ac_header usability" >&5
18969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18970cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
18976$ac_includes_default
18977#include <$ac_header>
18978_ACEOF
18979rm -f conftest.$ac_objext
18980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018981 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018982 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018983 grep -v '^ *+' conftest.er1 >conftest.err
18984 rm -f conftest.er1
18985 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018988 { ac_try='test -z "$ac_c_werror_flag"
18989 || test ! -s conftest.err'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; } &&
18995 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19001 ac_header_compiler=yes
19002else
19003 echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006ac_header_compiler=no
19007fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19010echo "${ECHO_T}$ac_header_compiler" >&6
19011
19012# Is the header present?
19013echo "$as_me:$LINENO: checking $ac_header presence" >&5
19014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19015cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019016/* confdefs.h. */
19017_ACEOF
19018cat confdefs.h >>conftest.$ac_ext
19019cat >>conftest.$ac_ext <<_ACEOF
19020/* end confdefs.h. */
19021#include <$ac_header>
19022_ACEOF
19023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19025 ac_status=$?
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } >/dev/null; then
19031 if test -s conftest.err; then
19032 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019034 else
19035 ac_cpp_err=
19036 fi
19037else
19038 ac_cpp_err=yes
19039fi
19040if test -z "$ac_cpp_err"; then
19041 ac_header_preproc=yes
19042else
19043 echo "$as_me: failed program was:" >&5
19044sed 's/^/| /' conftest.$ac_ext >&5
19045
19046 ac_header_preproc=no
19047fi
19048rm -f conftest.err conftest.$ac_ext
19049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19050echo "${ECHO_T}$ac_header_preproc" >&6
19051
19052# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19054 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19059 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019060 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019061 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019074 (
19075 cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019076## ------------------------------------------------------ ##
19077## Report this to png-mng-implement@lists.sourceforge.net ##
19078## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019079_ASBOX
19080 ) |
19081 sed "s/^/$as_me: WARNING: /" >&2
19082 ;;
19083esac
19084echo "$as_me:$LINENO: checking for $ac_header" >&5
19085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19086if eval "test \"\${$as_ac_Header+set}\" = set"; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019089 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019090fi
19091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19093
19094fi
19095if test `eval echo '${'$as_ac_Header'}'` = yes; then
19096 cat >>confdefs.h <<_ACEOF
19097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19098_ACEOF
19099
19100fi
19101
19102done
19103
19104
19105# Checks for typedefs, structures, and compiler characteristics.
19106echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19107echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19108if test "${ac_cv_c_const+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19110else
19111 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019112/* confdefs.h. */
19113_ACEOF
19114cat confdefs.h >>conftest.$ac_ext
19115cat >>conftest.$ac_ext <<_ACEOF
19116/* end confdefs.h. */
19117
19118int
19119main ()
19120{
19121/* FIXME: Include the comments suggested by Paul. */
19122#ifndef __cplusplus
19123 /* Ultrix mips cc rejects this. */
19124 typedef int charset[2];
19125 const charset x;
19126 /* SunOS 4.1.1 cc rejects this. */
19127 char const *const *ccp;
19128 char **p;
19129 /* NEC SVR4.0.2 mips cc rejects this. */
19130 struct point {int x, y;};
19131 static struct point const zero = {0,0};
19132 /* AIX XL C 1.02.0.0 rejects this.
19133 It does not let you subtract one const X* pointer from another in
19134 an arm of an if-expression whose if-part is not a constant
19135 expression */
19136 const char *g = "string";
19137 ccp = &g + (g ? g-g : 0);
19138 /* HPUX 7.0 cc rejects these. */
19139 ++ccp;
19140 p = (char**) ccp;
19141 ccp = (char const *const *) p;
19142 { /* SCO 3.2v4 cc rejects this. */
19143 char *t;
19144 char const *s = 0 ? (char *) 0 : (char const *) 0;
19145
19146 *t++ = 0;
19147 }
19148 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19149 int x[] = {25, 17};
19150 const int *foo = &x[0];
19151 ++foo;
19152 }
19153 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19154 typedef const int *iptr;
19155 iptr p = 0;
19156 ++p;
19157 }
19158 { /* AIX XL C 1.02.0.0 rejects this saying
19159 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19160 struct s { int j; const int *ap[3]; };
19161 struct s *b; b->j = 5;
19162 }
19163 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19164 const int foo = 10;
19165 }
19166#endif
19167
19168 ;
19169 return 0;
19170}
19171_ACEOF
19172rm -f conftest.$ac_objext
19173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019174 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019175 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019181 { ac_try='test -z "$ac_c_werror_flag"
19182 || test ! -s conftest.err'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 ac_cv_c_const=yes
19195else
19196 echo "$as_me: failed program was:" >&5
19197sed 's/^/| /' conftest.$ac_ext >&5
19198
19199ac_cv_c_const=no
19200fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019202fi
19203echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19204echo "${ECHO_T}$ac_cv_c_const" >&6
19205if test $ac_cv_c_const = no; then
19206
19207cat >>confdefs.h <<\_ACEOF
19208#define const
19209_ACEOF
19210
19211fi
19212
19213echo "$as_me:$LINENO: checking for size_t" >&5
19214echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19215if test "${ac_cv_type_size_t+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217else
19218 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019219/* confdefs.h. */
19220_ACEOF
19221cat confdefs.h >>conftest.$ac_ext
19222cat >>conftest.$ac_ext <<_ACEOF
19223/* end confdefs.h. */
19224$ac_includes_default
19225int
19226main ()
19227{
19228if ((size_t *) 0)
19229 return 0;
19230if (sizeof (size_t))
19231 return 0;
19232 ;
19233 return 0;
19234}
19235_ACEOF
19236rm -f conftest.$ac_objext
19237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019238 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019239 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019245 { ac_try='test -z "$ac_c_werror_flag"
19246 || test ! -s conftest.err'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; } &&
19252 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; }; then
19258 ac_cv_type_size_t=yes
19259else
19260 echo "$as_me: failed program was:" >&5
19261sed 's/^/| /' conftest.$ac_ext >&5
19262
19263ac_cv_type_size_t=no
19264fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019266fi
19267echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19268echo "${ECHO_T}$ac_cv_type_size_t" >&6
19269if test $ac_cv_type_size_t = yes; then
19270 :
19271else
19272
19273cat >>confdefs.h <<_ACEOF
19274#define size_t unsigned
19275_ACEOF
19276
19277fi
19278
19279echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19280echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19281if test "${ac_cv_struct_tm+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19283else
19284 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019285/* confdefs.h. */
19286_ACEOF
19287cat confdefs.h >>conftest.$ac_ext
19288cat >>conftest.$ac_ext <<_ACEOF
19289/* end confdefs.h. */
19290#include <sys/types.h>
19291#include <time.h>
19292
19293int
19294main ()
19295{
19296struct tm *tp; tp->tm_sec;
19297 ;
19298 return 0;
19299}
19300_ACEOF
19301rm -f conftest.$ac_objext
19302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019303 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019304 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019310 { ac_try='test -z "$ac_c_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 ac_cv_struct_tm=time.h
19324else
19325 echo "$as_me: failed program was:" >&5
19326sed 's/^/| /' conftest.$ac_ext >&5
19327
19328ac_cv_struct_tm=sys/time.h
19329fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019331fi
19332echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19333echo "${ECHO_T}$ac_cv_struct_tm" >&6
19334if test $ac_cv_struct_tm = sys/time.h; then
19335
19336cat >>confdefs.h <<\_ACEOF
19337#define TM_IN_SYS_TIME 1
19338_ACEOF
19339
19340fi
19341
19342
19343# Checks for library functions.
19344
19345for ac_header in stdlib.h
19346do
19347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19348if eval "test \"\${$as_ac_Header+set}\" = set"; then
19349 echo "$as_me:$LINENO: checking for $ac_header" >&5
19350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19351if eval "test \"\${$as_ac_Header+set}\" = set"; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19353fi
19354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19356else
19357 # Is the header compilable?
19358echo "$as_me:$LINENO: checking $ac_header usability" >&5
19359echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19360cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019361/* confdefs.h. */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h. */
19366$ac_includes_default
19367#include <$ac_header>
19368_ACEOF
19369rm -f conftest.$ac_objext
19370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019371 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019372 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019378 { ac_try='test -z "$ac_c_werror_flag"
19379 || test ! -s conftest.err'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 ac_header_compiler=yes
19392else
19393 echo "$as_me: failed program was:" >&5
19394sed 's/^/| /' conftest.$ac_ext >&5
19395
19396ac_header_compiler=no
19397fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019399echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19400echo "${ECHO_T}$ac_header_compiler" >&6
19401
19402# Is the header present?
19403echo "$as_me:$LINENO: checking $ac_header presence" >&5
19404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19405cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
19410/* end confdefs.h. */
19411#include <$ac_header>
19412_ACEOF
19413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } >/dev/null; then
19421 if test -s conftest.err; then
19422 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019424 else
19425 ac_cpp_err=
19426 fi
19427else
19428 ac_cpp_err=yes
19429fi
19430if test -z "$ac_cpp_err"; then
19431 ac_header_preproc=yes
19432else
19433 echo "$as_me: failed program was:" >&5
19434sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 ac_header_preproc=no
19437fi
19438rm -f conftest.err conftest.$ac_ext
19439echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19440echo "${ECHO_T}$ac_header_preproc" >&6
19441
19442# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19444 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19449 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019450 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019451 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019464 (
19465 cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019466## ------------------------------------------------------ ##
19467## Report this to png-mng-implement@lists.sourceforge.net ##
19468## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019469_ASBOX
19470 ) |
19471 sed "s/^/$as_me: WARNING: /" >&2
19472 ;;
19473esac
19474echo "$as_me:$LINENO: checking for $ac_header" >&5
19475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19476if eval "test \"\${$as_ac_Header+set}\" = set"; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019479 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019480fi
19481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19483
19484fi
19485if test `eval echo '${'$as_ac_Header'}'` = yes; then
19486 cat >>confdefs.h <<_ACEOF
19487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19488_ACEOF
19489
19490fi
19491
19492done
19493
19494echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19495echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19496if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498else
19499 if test "$cross_compiling" = yes; then
19500 ac_cv_func_malloc_0_nonnull=no
19501else
19502 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019503/* confdefs.h. */
19504_ACEOF
19505cat confdefs.h >>conftest.$ac_ext
19506cat >>conftest.$ac_ext <<_ACEOF
19507/* end confdefs.h. */
19508#if STDC_HEADERS || HAVE_STDLIB_H
19509# include <stdlib.h>
19510#else
19511char *malloc ();
19512#endif
19513
19514int
19515main ()
19516{
19517exit (malloc (0) ? 0 : 1);
19518 ;
19519 return 0;
19520}
19521_ACEOF
19522rm -f conftest$ac_exeext
19523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19524 (eval $ac_link) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 ac_cv_func_malloc_0_nonnull=yes
19534else
19535 echo "$as_me: program exited with status $ac_status" >&5
19536echo "$as_me: failed program was:" >&5
19537sed 's/^/| /' conftest.$ac_ext >&5
19538
19539( exit $ac_status )
19540ac_cv_func_malloc_0_nonnull=no
19541fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019542rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019543fi
19544fi
19545echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19546echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19547if test $ac_cv_func_malloc_0_nonnull = yes; then
19548
19549cat >>confdefs.h <<\_ACEOF
19550#define HAVE_MALLOC 1
19551_ACEOF
19552
19553else
19554 cat >>confdefs.h <<\_ACEOF
19555#define HAVE_MALLOC 0
19556_ACEOF
19557
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019558 case $LIBOBJS in
19559 "malloc.$ac_objext" | \
19560 *" malloc.$ac_objext" | \
19561 "malloc.$ac_objext "* | \
19562 *" malloc.$ac_objext "* ) ;;
19563 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
19564esac
19565
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019566
19567cat >>confdefs.h <<\_ACEOF
19568#define malloc rpl_malloc
19569_ACEOF
19570
19571fi
19572
19573
19574
19575echo "$as_me:$LINENO: checking for working strtod" >&5
19576echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
19577if test "${ac_cv_func_strtod+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579else
19580 if test "$cross_compiling" = yes; then
19581 ac_cv_func_strtod=no
19582else
19583 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
19589
19590double strtod ();
19591int
19592main()
19593{
19594 {
19595 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
19596 char *string = " +69";
19597 char *term;
19598 double value;
19599 value = strtod (string, &term);
19600 if (value != 69 || term != (string + 4))
19601 exit (1);
19602 }
19603
19604 {
19605 /* Under Solaris 2.4, strtod returns the wrong value for the
19606 terminating character under some conditions. */
19607 char *string = "NaN";
19608 char *term;
19609 strtod (string, &term);
19610 if (term != string && *(term - 1) == 0)
19611 exit (1);
19612 }
19613 exit (0);
19614}
19615
19616_ACEOF
19617rm -f conftest$ac_exeext
19618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619 (eval $ac_link) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_cv_func_strtod=yes
19629else
19630 echo "$as_me: program exited with status $ac_status" >&5
19631echo "$as_me: failed program was:" >&5
19632sed 's/^/| /' conftest.$ac_ext >&5
19633
19634( exit $ac_status )
19635ac_cv_func_strtod=no
19636fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019637rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019638fi
19639fi
19640echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
19641echo "${ECHO_T}$ac_cv_func_strtod" >&6
19642if test $ac_cv_func_strtod = no; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019643 case $LIBOBJS in
19644 "strtod.$ac_objext" | \
19645 *" strtod.$ac_objext" | \
19646 "strtod.$ac_objext "* | \
19647 *" strtod.$ac_objext "* ) ;;
19648 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
19649esac
19650
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019651echo "$as_me:$LINENO: checking for pow" >&5
19652echo $ECHO_N "checking for pow... $ECHO_C" >&6
19653if test "${ac_cv_func_pow+set}" = set; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19655else
19656 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019657/* confdefs.h. */
19658_ACEOF
19659cat confdefs.h >>conftest.$ac_ext
19660cat >>conftest.$ac_ext <<_ACEOF
19661/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019662/* Define pow to an innocuous variant, in case <limits.h> declares pow.
19663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19664#define pow innocuous_pow
19665
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019666/* System header to define __stub macros and hopefully few prototypes,
19667 which can conflict with char pow (); below.
19668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19669 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019670
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019671#ifdef __STDC__
19672# include <limits.h>
19673#else
19674# include <assert.h>
19675#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019676
19677#undef pow
19678
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019679/* Override any gcc2 internal prototype to avoid an error. */
19680#ifdef __cplusplus
19681extern "C"
19682{
19683#endif
19684/* We use char because int might match the return type of a gcc2
19685 builtin and then its argument prototype would still apply. */
19686char pow ();
19687/* The GNU C library defines this for functions which it implements
19688 to always fail with ENOSYS. Some functions are actually named
19689 something starting with __ and the normal name is an alias. */
19690#if defined (__stub_pow) || defined (__stub___pow)
19691choke me
19692#else
19693char (*f) () = pow;
19694#endif
19695#ifdef __cplusplus
19696}
19697#endif
19698
19699int
19700main ()
19701{
19702return f != pow;
19703 ;
19704 return 0;
19705}
19706_ACEOF
19707rm -f conftest.$ac_objext conftest$ac_exeext
19708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019709 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019710 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019711 grep -v '^ *+' conftest.er1 >conftest.err
19712 rm -f conftest.er1
19713 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019716 { ac_try='test -z "$ac_c_werror_flag"
19717 || test ! -s conftest.err'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 ac_cv_func_pow=yes
19730else
19731 echo "$as_me: failed program was:" >&5
19732sed 's/^/| /' conftest.$ac_ext >&5
19733
19734ac_cv_func_pow=no
19735fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019736rm -f conftest.err conftest.$ac_objext \
19737 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019738fi
19739echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
19740echo "${ECHO_T}$ac_cv_func_pow" >&6
19741
19742if test $ac_cv_func_pow = no; then
19743 echo "$as_me:$LINENO: checking for pow in -lm" >&5
19744echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
19745if test "${ac_cv_lib_m_pow+set}" = set; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
19747else
19748 ac_check_lib_save_LIBS=$LIBS
19749LIBS="-lm $LIBS"
19750cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019751/* confdefs.h. */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h. */
19756
19757/* Override any gcc2 internal prototype to avoid an error. */
19758#ifdef __cplusplus
19759extern "C"
19760#endif
19761/* We use char because int might match the return type of a gcc2
19762 builtin and then its argument prototype would still apply. */
19763char pow ();
19764int
19765main ()
19766{
19767pow ();
19768 ;
19769 return 0;
19770}
19771_ACEOF
19772rm -f conftest.$ac_objext conftest$ac_exeext
19773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019774 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019775 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019781 { ac_try='test -z "$ac_c_werror_flag"
19782 || test ! -s conftest.err'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; } &&
19788 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; }; then
19794 ac_cv_lib_m_pow=yes
19795else
19796 echo "$as_me: failed program was:" >&5
19797sed 's/^/| /' conftest.$ac_ext >&5
19798
19799ac_cv_lib_m_pow=no
19800fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019801rm -f conftest.err conftest.$ac_objext \
19802 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019803LIBS=$ac_check_lib_save_LIBS
19804fi
19805echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
19806echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
19807if test $ac_cv_lib_m_pow = yes; then
19808 POW_LIB=-lm
19809else
19810 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
19811echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
19812fi
19813
19814fi
19815
19816fi
19817
19818
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019819for ac_func in memset
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019820do
19821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19822echo "$as_me:$LINENO: checking for $ac_func" >&5
19823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19824if eval "test \"\${$as_ac_var+set}\" = set"; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19826else
19827 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019828/* confdefs.h. */
19829_ACEOF
19830cat confdefs.h >>conftest.$ac_ext
19831cat >>conftest.$ac_ext <<_ACEOF
19832/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19835#define $ac_func innocuous_$ac_func
19836
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019837/* System header to define __stub macros and hopefully few prototypes,
19838 which can conflict with char $ac_func (); below.
19839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19840 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019841
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019842#ifdef __STDC__
19843# include <limits.h>
19844#else
19845# include <assert.h>
19846#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019847
19848#undef $ac_func
19849
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019850/* Override any gcc2 internal prototype to avoid an error. */
19851#ifdef __cplusplus
19852extern "C"
19853{
19854#endif
19855/* We use char because int might match the return type of a gcc2
19856 builtin and then its argument prototype would still apply. */
19857char $ac_func ();
19858/* The GNU C library defines this for functions which it implements
19859 to always fail with ENOSYS. Some functions are actually named
19860 something starting with __ and the normal name is an alias. */
19861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19862choke me
19863#else
19864char (*f) () = $ac_func;
19865#endif
19866#ifdef __cplusplus
19867}
19868#endif
19869
19870int
19871main ()
19872{
19873return f != $ac_func;
19874 ;
19875 return 0;
19876}
19877_ACEOF
19878rm -f conftest.$ac_objext conftest$ac_exeext
19879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019880 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019881 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019887 { ac_try='test -z "$ac_c_werror_flag"
19888 || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 eval "$as_ac_var=yes"
19901else
19902 echo "$as_me: failed program was:" >&5
19903sed 's/^/| /' conftest.$ac_ext >&5
19904
19905eval "$as_ac_var=no"
19906fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019907rm -f conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019909fi
19910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19912if test `eval echo '${'$as_ac_var'}'` = yes; then
19913 cat >>confdefs.h <<_ACEOF
19914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19915_ACEOF
19916
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019917else
19918 { { echo "$as_me:$LINENO: error: memset not found in libc" >&5
19919echo "$as_me: error: memset not found in libc" >&2;}
19920 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019921fi
19922done
19923
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019924
19925for ac_func in pow
19926do
19927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19928echo "$as_me:$LINENO: checking for $ac_func" >&5
19929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19930if eval "test \"\${$as_ac_var+set}\" = set"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019931 echo $ECHO_N "(cached) $ECHO_C" >&6
19932else
19933 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019934/* confdefs.h. */
19935_ACEOF
19936cat confdefs.h >>conftest.$ac_ext
19937cat >>conftest.$ac_ext <<_ACEOF
19938/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19941#define $ac_func innocuous_$ac_func
19942
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019943/* System header to define __stub macros and hopefully few prototypes,
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019944 which can conflict with char $ac_func (); below.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19946 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019947
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019948#ifdef __STDC__
19949# include <limits.h>
19950#else
19951# include <assert.h>
19952#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019953
19954#undef $ac_func
19955
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019956/* Override any gcc2 internal prototype to avoid an error. */
19957#ifdef __cplusplus
19958extern "C"
19959{
19960#endif
19961/* We use char because int might match the return type of a gcc2
19962 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019963char $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019964/* The GNU C library defines this for functions which it implements
19965 to always fail with ENOSYS. Some functions are actually named
19966 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019968choke me
19969#else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019970char (*f) () = $ac_func;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019971#endif
19972#ifdef __cplusplus
19973}
19974#endif
19975
19976int
19977main ()
19978{
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019979return f != $ac_func;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019980 ;
19981 return 0;
19982}
19983_ACEOF
19984rm -f conftest.$ac_objext conftest$ac_exeext
19985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019986 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019987 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019993 { ac_try='test -z "$ac_c_werror_flag"
19994 || test ! -s conftest.err'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020006 eval "$as_ac_var=yes"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020007else
20008 echo "$as_me: failed program was:" >&5
20009sed 's/^/| /' conftest.$ac_ext >&5
20010
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020011eval "$as_ac_var=no"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020012fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020013rm -f conftest.err conftest.$ac_objext \
20014 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020015fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20018if test `eval echo '${'$as_ac_var'}'` = yes; then
20019 cat >>confdefs.h <<_ACEOF
20020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20021_ACEOF
20022
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020023else
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020024 echo "$as_me:$LINENO: checking for pow in -lm" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020025echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
20026if test "${ac_cv_lib_m_pow+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020027 echo $ECHO_N "(cached) $ECHO_C" >&6
20028else
20029 ac_check_lib_save_LIBS=$LIBS
20030LIBS="-lm $LIBS"
20031cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020032/* confdefs.h. */
20033_ACEOF
20034cat confdefs.h >>conftest.$ac_ext
20035cat >>conftest.$ac_ext <<_ACEOF
20036/* end confdefs.h. */
20037
20038/* Override any gcc2 internal prototype to avoid an error. */
20039#ifdef __cplusplus
20040extern "C"
20041#endif
20042/* We use char because int might match the return type of a gcc2
20043 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020044char pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020045int
20046main ()
20047{
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020048pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020049 ;
20050 return 0;
20051}
20052_ACEOF
20053rm -f conftest.$ac_objext conftest$ac_exeext
20054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020055 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020056 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020062 { ac_try='test -z "$ac_c_werror_flag"
20063 || test ! -s conftest.err'
20064 { (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); }; } &&
20069 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071 (eval $ac_try) 2>&5
20072 ac_status=$?
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); }; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020075 ac_cv_lib_m_pow=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020076else
20077 echo "$as_me: failed program was:" >&5
20078sed 's/^/| /' conftest.$ac_ext >&5
20079
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020080ac_cv_lib_m_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020081fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020082rm -f conftest.err conftest.$ac_objext \
20083 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020084LIBS=$ac_check_lib_save_LIBS
20085fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020086echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20087echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
20088if test $ac_cv_lib_m_pow = yes; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020089 PNG_LIBS="$PNG_LIBS -lm"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020090else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020091 { { echo "$as_me:$LINENO: error: cannot find pow" >&5
20092echo "$as_me: error: cannot find pow" >&2;}
20093 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020094fi
20095
20096fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020097done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020098
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020099echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
20100echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
20101if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103else
20104 ac_check_lib_save_LIBS=$LIBS
20105LIBS="-lz $LIBS"
20106cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020107/* confdefs.h. */
20108_ACEOF
20109cat confdefs.h >>conftest.$ac_ext
20110cat >>conftest.$ac_ext <<_ACEOF
20111/* end confdefs.h. */
20112
20113/* Override any gcc2 internal prototype to avoid an error. */
20114#ifdef __cplusplus
20115extern "C"
20116#endif
20117/* We use char because int might match the return type of a gcc2
20118 builtin and then its argument prototype would still apply. */
20119char zlibVersion ();
20120int
20121main ()
20122{
20123zlibVersion ();
20124 ;
20125 return 0;
20126}
20127_ACEOF
20128rm -f conftest.$ac_objext conftest$ac_exeext
20129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020130 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020131 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020132 grep -v '^ *+' conftest.er1 >conftest.err
20133 rm -f conftest.er1
20134 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020137 { ac_try='test -z "$ac_c_werror_flag"
20138 || test ! -s conftest.err'
20139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20140 (eval $ac_try) 2>&5
20141 ac_status=$?
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); }; } &&
20144 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146 (eval $ac_try) 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; }; then
20150 ac_cv_lib_z_zlibVersion=yes
20151else
20152 echo "$as_me: failed program was:" >&5
20153sed 's/^/| /' conftest.$ac_ext >&5
20154
20155ac_cv_lib_z_zlibVersion=no
20156fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020157rm -f conftest.err conftest.$ac_objext \
20158 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020159LIBS=$ac_check_lib_save_LIBS
20160fi
20161echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
20162echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
20163if test $ac_cv_lib_z_zlibVersion = yes; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020164 PNG_LIBS="$PNG_LIBS -lz"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020165else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020166 { { echo "$as_me:$LINENO: error: zlib not installed" >&5
20167echo "$as_me: error: zlib not installed" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020168 { (exit 1); exit 1; }; }
20169fi
20170
20171
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020172
20173echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
20174echo $ECHO_N "checking if libraries can be versioned... $ECHO_C" >&6
20175GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
20176if test "$GLD"; then
20177 have_ld_version_script=yes
20178 echo "$as_me:$LINENO: result: yes" >&5
20179echo "${ECHO_T}yes" >&6
20180else
20181 have_ld_version_script=no
20182 echo "$as_me:$LINENO: result: no" >&5
20183echo "${ECHO_T}no" >&6
20184 { echo "$as_me:$LINENO: WARNING: *** You may want to rerun configure using --with-gnu-ld to enable versioned symbols." >&5
20185echo "$as_me: WARNING: *** You may want to rerun configure using --with-gnu-ld to enable versioned symbols." >&2;}
20186fi
20187
20188
20189if test "$have_ld_version_script" = "yes"; then
20190 HAVE_LD_VERSION_SCRIPT_TRUE=
20191 HAVE_LD_VERSION_SCRIPT_FALSE='#'
20192else
20193 HAVE_LD_VERSION_SCRIPT_TRUE='#'
20194 HAVE_LD_VERSION_SCRIPT_FALSE=
20195fi
20196
20197
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020198# Substitutions for .in files
20199
20200
20201
20202
20203# Additional arguments (and substitutions)
20204# Allow the pkg-config directory to be set
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020205
20206# Check whether --with-pkgconfigdir or --without-pkgconfigdir was given.
20207if test "${with_pkgconfigdir+set}" = set; then
20208 withval="$with_pkgconfigdir"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020209 pkgconfigdir=${withval}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020210else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020211 pkgconfigdir='${libdir}/pkgconfig'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020212fi;
20213
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020214
20215{ echo "$as_me:$LINENO: pkgconfig directory is ${pkgconfigdir}" >&5
20216echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
20217
20218# Make the *-config binary config scripts optional
20219
20220# Check whether --with-binconfigs or --without-binconfigs was given.
20221if test "${with_binconfigs+set}" = set; then
20222 withval="$with_binconfigs"
20223 if test "${withval}" = no; then
20224 binconfigs=
20225 { echo "$as_me:$LINENO: libpng-config scripts will not be built" >&5
20226echo "$as_me: libpng-config scripts will not be built" >&6;}
20227 else
20228 binconfigs='${binconfigs}'
20229 fi
20230else
20231 binconfigs='${binconfigs}'
20232fi;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020233
20234
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020235# Allow the old version number library, libpng.so, to be removed from
20236# the build
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020237
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020238# Check whether --with-libpng-compat or --without-libpng-compat was given.
20239if test "${with_libpng_compat+set}" = set; then
20240 withval="$with_libpng_compat"
20241 if test "${withval}" = no; then
20242 compatlib=
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020243 { echo "$as_me:$LINENO: libpng.so will not be built" >&5
20244echo "$as_me: libpng.so will not be built" >&6;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020245 else
20246 compatlib=libpng.la
20247 fi
20248else
20249 compatlib=libpng.la
20250fi;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020251
20252
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020253# Config files, substituting as above
20254 ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc.in"
20255
20256 ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
20257
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020258
20259cat >confcache <<\_ACEOF
20260# This file is a shell script that caches the results of configure
20261# tests run on this system so they can be shared between configure
20262# scripts and configure runs, see configure's option --config-cache.
20263# It is not useful on other systems. If it contains results you don't
20264# want to keep, you may remove or edit it.
20265#
20266# config.status only pays attention to the cache file if you give it
20267# the --recheck option to rerun configure.
20268#
20269# `ac_cv_env_foo' variables (set or unset) will be overridden when
20270# loading this file, other *unset* `ac_cv_foo' will be assigned the
20271# following values.
20272
20273_ACEOF
20274
20275# The following way of writing the cache mishandles newlines in values,
20276# but we know of no workaround that is simple, portable, and efficient.
20277# So, don't put newlines in cache variables' values.
20278# Ultrix sh set writes to stderr and can't be redirected directly,
20279# and sets the high bit in the cache file unless we assign to the vars.
20280{
20281 (set) 2>&1 |
20282 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20283 *ac_space=\ *)
20284 # `set' does not quote correctly, so add quotes (double-quote
20285 # substitution turns \\\\ into \\, and sed turns \\ into \).
20286 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020287 "s/'/'\\\\''/g;
20288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020289 ;;
20290 *)
20291 # `set' quotes correctly as required by POSIX, so do not add quotes.
20292 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020293 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020294 ;;
20295 esac;
20296} |
20297 sed '
20298 t clear
20299 : clear
20300 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20301 t end
20302 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20303 : end' >>confcache
20304if diff $cache_file confcache >/dev/null 2>&1; then :; else
20305 if test -w $cache_file; then
20306 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20307 cat confcache >$cache_file
20308 else
20309 echo "not updating unwritable cache $cache_file"
20310 fi
20311fi
20312rm -f confcache
20313
20314test "x$prefix" = xNONE && prefix=$ac_default_prefix
20315# Let make expand exec_prefix.
20316test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20317
20318# VPATH may cause trouble with some makes, so we remove $(srcdir),
20319# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20320# trailing colons and then remove the whole line if VPATH becomes empty
20321# (actually we leave an empty line to preserve line numbers).
20322if test "x$srcdir" = x.; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020323 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020324s/:*\$(srcdir):*/:/;
20325s/:*\${srcdir}:*/:/;
20326s/:*@srcdir@:*/:/;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020327s/^\([^=]*=[ ]*\):*/\1/;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020328s/:*$//;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020329s/^[^=]*=[ ]*$//;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020330}'
20331fi
20332
20333DEFS=-DHAVE_CONFIG_H
20334
20335ac_libobjs=
20336ac_ltlibobjs=
20337for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20338 # 1. Remove the extension, and $U if already installed.
20339 ac_i=`echo "$ac_i" |
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020340 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020341 # 2. Add them.
20342 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20343 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20344done
20345LIBOBJS=$ac_libobjs
20346
20347LTLIBOBJS=$ac_ltlibobjs
20348
20349
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020350if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20351 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20352Usually this means the macro was only invoked conditionally." >&5
20353echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20354Usually this means the macro was only invoked conditionally." >&2;}
20355 { (exit 1); exit 1; }; }
20356fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020357if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20358 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20359Usually this means the macro was only invoked conditionally." >&5
20360echo "$as_me: error: conditional \"AMDEP\" was never defined.
20361Usually this means the macro was only invoked conditionally." >&2;}
20362 { (exit 1); exit 1; }; }
20363fi
20364if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20365 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20366Usually this means the macro was only invoked conditionally." >&5
20367echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20368Usually this means the macro was only invoked conditionally." >&2;}
20369 { (exit 1); exit 1; }; }
20370fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020371if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20372 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20373Usually this means the macro was only invoked conditionally." >&5
20374echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20375Usually this means the macro was only invoked conditionally." >&2;}
20376 { (exit 1); exit 1; }; }
20377fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020378if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20379 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20380Usually this means the macro was only invoked conditionally." >&5
20381echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20382Usually this means the macro was only invoked conditionally." >&2;}
20383 { (exit 1); exit 1; }; }
20384fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020385
20386: ${CONFIG_STATUS=./config.status}
20387ac_clean_files_save=$ac_clean_files
20388ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20389{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20390echo "$as_me: creating $CONFIG_STATUS" >&6;}
20391cat >$CONFIG_STATUS <<_ACEOF
20392#! $SHELL
20393# Generated by $as_me.
20394# Run this file to recreate the current configuration.
20395# Compiler output produced by configure, useful for debugging
20396# configure, is in config.log if it exists.
20397
20398debug=false
20399ac_cs_recheck=false
20400ac_cs_silent=false
20401SHELL=\${CONFIG_SHELL-$SHELL}
20402_ACEOF
20403
20404cat >>$CONFIG_STATUS <<\_ACEOF
20405## --------------------- ##
20406## M4sh Initialization. ##
20407## --------------------- ##
20408
20409# Be Bourne compatible
20410if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20411 emulate sh
20412 NULLCMD=:
20413 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20414 # is contrary to our usage. Disable this feature.
20415 alias -g '${1+"$@"}'='"$@"'
20416elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20417 set -o posix
20418fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020419DUALCASE=1; export DUALCASE # for MKS sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020420
20421# Support unset when possible.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020422if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020423 as_unset=unset
20424else
20425 as_unset=false
20426fi
20427
20428
20429# Work around bugs in pre-3.0 UWIN ksh.
20430$as_unset ENV MAIL MAILPATH
20431PS1='$ '
20432PS2='> '
20433PS4='+ '
20434
20435# NLS nuisances.
20436for as_var in \
20437 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20438 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20439 LC_TELEPHONE LC_TIME
20440do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020441 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020442 eval $as_var=C; export $as_var
20443 else
20444 $as_unset $as_var
20445 fi
20446done
20447
20448# Required to use basename.
20449if expr a : '\(a\)' >/dev/null 2>&1; then
20450 as_expr=expr
20451else
20452 as_expr=false
20453fi
20454
20455if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20456 as_basename=basename
20457else
20458 as_basename=false
20459fi
20460
20461
20462# Name of the executable.
20463as_me=`$as_basename "$0" ||
20464$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20465 X"$0" : 'X\(//\)$' \| \
20466 X"$0" : 'X\(/\)$' \| \
20467 . : '\(.\)' 2>/dev/null ||
20468echo X/"$0" |
20469 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20470 /^X\/\(\/\/\)$/{ s//\1/; q; }
20471 /^X\/\(\/\).*/{ s//\1/; q; }
20472 s/.*/./; q'`
20473
20474
20475# PATH needs CR, and LINENO needs CR and PATH.
20476# Avoid depending upon Character Ranges.
20477as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20478as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20479as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20480as_cr_digits='0123456789'
20481as_cr_alnum=$as_cr_Letters$as_cr_digits
20482
20483# The user is always right.
20484if test "${PATH_SEPARATOR+set}" != set; then
20485 echo "#! /bin/sh" >conf$$.sh
20486 echo "exit 0" >>conf$$.sh
20487 chmod +x conf$$.sh
20488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20489 PATH_SEPARATOR=';'
20490 else
20491 PATH_SEPARATOR=:
20492 fi
20493 rm -f conf$$.sh
20494fi
20495
20496
20497 as_lineno_1=$LINENO
20498 as_lineno_2=$LINENO
20499 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20500 test "x$as_lineno_1" != "x$as_lineno_2" &&
20501 test "x$as_lineno_3" = "x$as_lineno_2" || {
20502 # Find who we are. Look in the path if we contain no path at all
20503 # relative or not.
20504 case $0 in
20505 *[\\/]* ) as_myself=$0 ;;
20506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20507for as_dir in $PATH
20508do
20509 IFS=$as_save_IFS
20510 test -z "$as_dir" && as_dir=.
20511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20512done
20513
20514 ;;
20515 esac
20516 # We did not find ourselves, most probably we were run as `sh COMMAND'
20517 # in which case we are not to be found in the path.
20518 if test "x$as_myself" = x; then
20519 as_myself=$0
20520 fi
20521 if test ! -f "$as_myself"; then
20522 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20523echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20524 { (exit 1); exit 1; }; }
20525 fi
20526 case $CONFIG_SHELL in
20527 '')
20528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20529for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20530do
20531 IFS=$as_save_IFS
20532 test -z "$as_dir" && as_dir=.
20533 for as_base in sh bash ksh sh5; do
20534 case $as_dir in
20535 /*)
20536 if ("$as_dir/$as_base" -c '
20537 as_lineno_1=$LINENO
20538 as_lineno_2=$LINENO
20539 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20540 test "x$as_lineno_1" != "x$as_lineno_2" &&
20541 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20542 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20543 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20544 CONFIG_SHELL=$as_dir/$as_base
20545 export CONFIG_SHELL
20546 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20547 fi;;
20548 esac
20549 done
20550done
20551;;
20552 esac
20553
20554 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20555 # uniformly replaced by the line number. The first 'sed' inserts a
20556 # line-number line before each line; the second 'sed' does the real
20557 # work. The second script uses 'N' to pair each line-number line
20558 # with the numbered line, and appends trailing '-' during
20559 # substitution so that $LINENO is not a special case at line end.
20560 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20561 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20562 sed '=' <$as_myself |
20563 sed '
20564 N
20565 s,$,-,
20566 : loop
20567 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20568 t loop
20569 s,-$,,
20570 s,^['$as_cr_digits']*\n,,
20571 ' >$as_me.lineno &&
20572 chmod +x $as_me.lineno ||
20573 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20574echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20575 { (exit 1); exit 1; }; }
20576
20577 # Don't try to exec as it changes $[0], causing all sort of problems
20578 # (the dirname of $[0] is not the place where we might find the
20579 # original and so on. Autoconf is especially sensible to this).
20580 . ./$as_me.lineno
20581 # Exit status is that of the last command.
20582 exit
20583}
20584
20585
20586case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20587 *c*,-n*) ECHO_N= ECHO_C='
20588' ECHO_T=' ' ;;
20589 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20590 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20591esac
20592
20593if expr a : '\(a\)' >/dev/null 2>&1; then
20594 as_expr=expr
20595else
20596 as_expr=false
20597fi
20598
20599rm -f conf$$ conf$$.exe conf$$.file
20600echo >conf$$.file
20601if ln -s conf$$.file conf$$ 2>/dev/null; then
20602 # We could just check for DJGPP; but this test a) works b) is more generic
20603 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20604 if test -f conf$$.exe; then
20605 # Don't use ln at all; we don't have any links
20606 as_ln_s='cp -p'
20607 else
20608 as_ln_s='ln -s'
20609 fi
20610elif ln conf$$.file conf$$ 2>/dev/null; then
20611 as_ln_s=ln
20612else
20613 as_ln_s='cp -p'
20614fi
20615rm -f conf$$ conf$$.exe conf$$.file
20616
20617if mkdir -p . 2>/dev/null; then
20618 as_mkdir_p=:
20619else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020620 test -d ./-p && rmdir ./-p
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020621 as_mkdir_p=false
20622fi
20623
20624as_executable_p="test -f"
20625
20626# Sed expression to map a string onto a valid CPP name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020627as_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 -060020628
20629# Sed expression to map a string onto a valid variable name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020630as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020631
20632
20633# IFS
20634# We need space, tab and new line, in precisely that order.
20635as_nl='
20636'
20637IFS=" $as_nl"
20638
20639# CDPATH.
20640$as_unset CDPATH
20641
20642exec 6>&1
20643
20644# Open the log real soon, to keep \$[0] and so on meaningful, and to
20645# report actual input values of CONFIG_FILES etc. instead of their
20646# values after options handling. Logging --version etc. is OK.
20647exec 5>>config.log
20648{
20649 echo
20650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20651## Running $as_me. ##
20652_ASBOX
20653} >&5
20654cat >&5 <<_CSEOF
20655
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020656This file was extended by libpng $as_me 1.2.9beta5, which was
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020657generated by GNU Autoconf 2.59. Invocation command line was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020658
20659 CONFIG_FILES = $CONFIG_FILES
20660 CONFIG_HEADERS = $CONFIG_HEADERS
20661 CONFIG_LINKS = $CONFIG_LINKS
20662 CONFIG_COMMANDS = $CONFIG_COMMANDS
20663 $ $0 $@
20664
20665_CSEOF
20666echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20667echo >&5
20668_ACEOF
20669
20670# Files that config.status was made for.
20671if test -n "$ac_config_files"; then
20672 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20673fi
20674
20675if test -n "$ac_config_headers"; then
20676 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20677fi
20678
20679if test -n "$ac_config_links"; then
20680 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20681fi
20682
20683if test -n "$ac_config_commands"; then
20684 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20685fi
20686
20687cat >>$CONFIG_STATUS <<\_ACEOF
20688
20689ac_cs_usage="\
20690\`$as_me' instantiates files from templates according to the
20691current configuration.
20692
20693Usage: $0 [OPTIONS] [FILE]...
20694
20695 -h, --help print this help, then exit
20696 -V, --version print version number, then exit
20697 -q, --quiet do not print progress messages
20698 -d, --debug don't remove temporary files
20699 --recheck update $as_me by reconfiguring in the same conditions
20700 --file=FILE[:TEMPLATE]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020701 instantiate the configuration file FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020702 --header=FILE[:TEMPLATE]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020703 instantiate the configuration header FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020704
20705Configuration files:
20706$config_files
20707
20708Configuration headers:
20709$config_headers
20710
20711Configuration commands:
20712$config_commands
20713
20714Report bugs to <bug-autoconf@gnu.org>."
20715_ACEOF
20716
20717cat >>$CONFIG_STATUS <<_ACEOF
20718ac_cs_version="\\
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020719libpng config.status 1.2.9beta5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020720configured by $0, generated by GNU Autoconf 2.59,
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020721 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20722
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020723Copyright (C) 2003 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020724This config.status script is free software; the Free Software Foundation
20725gives unlimited permission to copy, distribute and modify it."
20726srcdir=$srcdir
20727INSTALL="$INSTALL"
20728_ACEOF
20729
20730cat >>$CONFIG_STATUS <<\_ACEOF
20731# If no file are specified by the user, then we need to provide default
20732# value. By we need to know if files were specified by the user.
20733ac_need_defaults=:
20734while test $# != 0
20735do
20736 case $1 in
20737 --*=*)
20738 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20739 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20740 ac_shift=:
20741 ;;
20742 -*)
20743 ac_option=$1
20744 ac_optarg=$2
20745 ac_shift=shift
20746 ;;
20747 *) # This is not an option, so the user has probably given explicit
20748 # arguments.
20749 ac_option=$1
20750 ac_need_defaults=false;;
20751 esac
20752
20753 case $ac_option in
20754 # Handling of the options.
20755_ACEOF
20756cat >>$CONFIG_STATUS <<\_ACEOF
20757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20758 ac_cs_recheck=: ;;
20759 --version | --vers* | -V )
20760 echo "$ac_cs_version"; exit 0 ;;
20761 --he | --h)
20762 # Conflict between --help and --header
20763 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20764Try \`$0 --help' for more information." >&5
20765echo "$as_me: error: ambiguous option: $1
20766Try \`$0 --help' for more information." >&2;}
20767 { (exit 1); exit 1; }; };;
20768 --help | --hel | -h )
20769 echo "$ac_cs_usage"; exit 0 ;;
20770 --debug | --d* | -d )
20771 debug=: ;;
20772 --file | --fil | --fi | --f )
20773 $ac_shift
20774 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20775 ac_need_defaults=false;;
20776 --header | --heade | --head | --hea )
20777 $ac_shift
20778 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20779 ac_need_defaults=false;;
20780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20781 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20782 ac_cs_silent=: ;;
20783
20784 # This is an error.
20785 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20786Try \`$0 --help' for more information." >&5
20787echo "$as_me: error: unrecognized option: $1
20788Try \`$0 --help' for more information." >&2;}
20789 { (exit 1); exit 1; }; } ;;
20790
20791 *) ac_config_targets="$ac_config_targets $1" ;;
20792
20793 esac
20794 shift
20795done
20796
20797ac_configure_extra_args=
20798
20799if $ac_cs_silent; then
20800 exec 6>/dev/null
20801 ac_configure_extra_args="$ac_configure_extra_args --silent"
20802fi
20803
20804_ACEOF
20805cat >>$CONFIG_STATUS <<_ACEOF
20806if \$ac_cs_recheck; then
20807 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20808 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20809fi
20810
20811_ACEOF
20812
20813cat >>$CONFIG_STATUS <<_ACEOF
20814#
20815# INIT-COMMANDS section.
20816#
20817
20818AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20819
20820_ACEOF
20821
20822
20823
20824cat >>$CONFIG_STATUS <<\_ACEOF
20825for ac_config_target in $ac_config_targets
20826do
20827 case "$ac_config_target" in
20828 # Handling of arguments.
20829 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020830 "libpng.pc" ) CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc.in" ;;
20831 "libpng-config" ) CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020832 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20833 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20835echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20836 { (exit 1); exit 1; }; };;
20837 esac
20838done
20839
20840# If the user did not use the arguments to specify the items to instantiate,
20841# then the envvar interface is used. Set only those that are not.
20842# We use the long form for the default assignment because of an extremely
20843# bizarre bug on SunOS 4.1.3.
20844if $ac_need_defaults; then
20845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20846 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20847 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20848fi
20849
20850# Have a temporary directory for convenience. Make it in the build tree
20851# simply because there is no reason to put it here, and in addition,
20852# creating and moving files from /tmp can sometimes cause problems.
20853# Create a temporary directory, and hook for its removal unless debugging.
20854$debug ||
20855{
20856 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20857 trap '{ (exit 1); exit 1; }' 1 2 13 15
20858}
20859
20860# Create a (secure) tmp directory for tmp files.
20861
20862{
20863 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20864 test -n "$tmp" && test -d "$tmp"
20865} ||
20866{
20867 tmp=./confstat$$-$RANDOM
20868 (umask 077 && mkdir $tmp)
20869} ||
20870{
20871 echo "$me: cannot create a temporary directory in ." >&2
20872 { (exit 1); exit 1; }
20873}
20874
20875_ACEOF
20876
20877cat >>$CONFIG_STATUS <<_ACEOF
20878
20879#
20880# CONFIG_FILES section.
20881#
20882
20883# No need to generate the scripts if there are no CONFIG_FILES.
20884# This happens for instance when ./config.status config.h
20885if test -n "\$CONFIG_FILES"; then
20886 # Protect against being on the right side of a sed subst in config.status.
20887 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20888 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20889s,@SHELL@,$SHELL,;t t
20890s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20891s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20892s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20893s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20894s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20895s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20896s,@exec_prefix@,$exec_prefix,;t t
20897s,@prefix@,$prefix,;t t
20898s,@program_transform_name@,$program_transform_name,;t t
20899s,@bindir@,$bindir,;t t
20900s,@sbindir@,$sbindir,;t t
20901s,@libexecdir@,$libexecdir,;t t
20902s,@datadir@,$datadir,;t t
20903s,@sysconfdir@,$sysconfdir,;t t
20904s,@sharedstatedir@,$sharedstatedir,;t t
20905s,@localstatedir@,$localstatedir,;t t
20906s,@libdir@,$libdir,;t t
20907s,@includedir@,$includedir,;t t
20908s,@oldincludedir@,$oldincludedir,;t t
20909s,@infodir@,$infodir,;t t
20910s,@mandir@,$mandir,;t t
20911s,@build_alias@,$build_alias,;t t
20912s,@host_alias@,$host_alias,;t t
20913s,@target_alias@,$target_alias,;t t
20914s,@DEFS@,$DEFS,;t t
20915s,@ECHO_C@,$ECHO_C,;t t
20916s,@ECHO_N@,$ECHO_N,;t t
20917s,@ECHO_T@,$ECHO_T,;t t
20918s,@LIBS@,$LIBS,;t t
20919s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20920s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20921s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20922s,@CYGPATH_W@,$CYGPATH_W,;t t
20923s,@PACKAGE@,$PACKAGE,;t t
20924s,@VERSION@,$VERSION,;t t
20925s,@ACLOCAL@,$ACLOCAL,;t t
20926s,@AUTOCONF@,$AUTOCONF,;t t
20927s,@AUTOMAKE@,$AUTOMAKE,;t t
20928s,@AUTOHEADER@,$AUTOHEADER,;t t
20929s,@MAKEINFO@,$MAKEINFO,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020930s,@install_sh@,$install_sh,;t t
20931s,@STRIP@,$STRIP,;t t
20932s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20933s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020934s,@mkdir_p@,$mkdir_p,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020935s,@AWK@,$AWK,;t t
20936s,@SET_MAKE@,$SET_MAKE,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020937s,@am__leading_dot@,$am__leading_dot,;t t
20938s,@AMTAR@,$AMTAR,;t t
20939s,@am__tar@,$am__tar,;t t
20940s,@am__untar@,$am__untar,;t t
20941s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20942s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20943s,@MAINT@,$MAINT,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020944s,@CC@,$CC,;t t
20945s,@CFLAGS@,$CFLAGS,;t t
20946s,@LDFLAGS@,$LDFLAGS,;t t
20947s,@CPPFLAGS@,$CPPFLAGS,;t t
20948s,@ac_ct_CC@,$ac_ct_CC,;t t
20949s,@EXEEXT@,$EXEEXT,;t t
20950s,@OBJEXT@,$OBJEXT,;t t
20951s,@DEPDIR@,$DEPDIR,;t t
20952s,@am__include@,$am__include,;t t
20953s,@am__quote@,$am__quote,;t t
20954s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20955s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20956s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20957s,@CCDEPMODE@,$CCDEPMODE,;t t
20958s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20959s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20960s,@build@,$build,;t t
20961s,@build_cpu@,$build_cpu,;t t
20962s,@build_vendor@,$build_vendor,;t t
20963s,@build_os@,$build_os,;t t
20964s,@host@,$host,;t t
20965s,@host_cpu@,$host_cpu,;t t
20966s,@host_vendor@,$host_vendor,;t t
20967s,@host_os@,$host_os,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020968s,@EGREP@,$EGREP,;t t
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020969s,@CPP@,$CPP,;t t
20970s,@SED@,$SED,;t t
20971s,@ac_ct_SED@,$ac_ct_SED,;t t
20972s,@LN_S@,$LN_S,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020973s,@ECHO@,$ECHO,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020974s,@AR@,$AR,;t t
20975s,@ac_ct_AR@,$ac_ct_AR,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020976s,@RANLIB@,$RANLIB,;t t
20977s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020978s,@CXX@,$CXX,;t t
20979s,@CXXFLAGS@,$CXXFLAGS,;t t
20980s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20981s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20982s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20983s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20984s,@CXXCPP@,$CXXCPP,;t t
20985s,@F77@,$F77,;t t
20986s,@FFLAGS@,$FFLAGS,;t t
20987s,@ac_ct_F77@,$ac_ct_F77,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020988s,@LIBTOOL@,$LIBTOOL,;t t
20989s,@LIBOBJS@,$LIBOBJS,;t t
20990s,@POW_LIB@,$POW_LIB,;t t
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060020991s,@PNG_LIBS@,$PNG_LIBS,;t t
20992s,@HAVE_LD_VERSION_SCRIPT_TRUE@,$HAVE_LD_VERSION_SCRIPT_TRUE,;t t
20993s,@HAVE_LD_VERSION_SCRIPT_FALSE@,$HAVE_LD_VERSION_SCRIPT_FALSE,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020994s,@PNGLIB_VERSION@,$PNGLIB_VERSION,;t t
20995s,@PNGLIB_MAJOR@,$PNGLIB_MAJOR,;t t
20996s,@PNGLIB_MINOR@,$PNGLIB_MINOR,;t t
20997s,@pkgconfigdir@,$pkgconfigdir,;t t
20998s,@binconfigs@,$binconfigs,;t t
20999s,@compatlib@,$compatlib,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021000s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21001CEOF
21002
21003_ACEOF
21004
21005 cat >>$CONFIG_STATUS <<\_ACEOF
21006 # Split the substitutions into bite-sized pieces for seds with
21007 # small command number limits, like on Digital OSF/1 and HP-UX.
21008 ac_max_sed_lines=48
21009 ac_sed_frag=1 # Number of current file.
21010 ac_beg=1 # First line for current file.
21011 ac_end=$ac_max_sed_lines # Line after last line for current file.
21012 ac_more_lines=:
21013 ac_sed_cmds=
21014 while $ac_more_lines; do
21015 if test $ac_beg -gt 1; then
21016 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21017 else
21018 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21019 fi
21020 if test ! -s $tmp/subs.frag; then
21021 ac_more_lines=false
21022 else
21023 # The purpose of the label and of the branching condition is to
21024 # speed up the sed processing (if there are no `@' at all, there
21025 # is no need to browse any of the substitutions).
21026 # These are the two extra sed commands mentioned above.
21027 (echo ':t
21028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21029 if test -z "$ac_sed_cmds"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021030 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021031 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021032 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021033 fi
21034 ac_sed_frag=`expr $ac_sed_frag + 1`
21035 ac_beg=$ac_end
21036 ac_end=`expr $ac_end + $ac_max_sed_lines`
21037 fi
21038 done
21039 if test -z "$ac_sed_cmds"; then
21040 ac_sed_cmds=cat
21041 fi
21042fi # test -n "$CONFIG_FILES"
21043
21044_ACEOF
21045cat >>$CONFIG_STATUS <<\_ACEOF
21046for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21048 case $ac_file in
21049 - | *:- | *:-:* ) # input from stdin
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021050 cat >$tmp/stdin
21051 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21052 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021053 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021055 * ) ac_file_in=$ac_file.in ;;
21056 esac
21057
21058 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21059 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21060$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021061 X"$ac_file" : 'X\(//\)[^/]' \| \
21062 X"$ac_file" : 'X\(//\)$' \| \
21063 X"$ac_file" : 'X\(/\)' \| \
21064 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021065echo X"$ac_file" |
21066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21068 /^X\(\/\/\)$/{ s//\1/; q; }
21069 /^X\(\/\).*/{ s//\1/; q; }
21070 s/.*/./; q'`
21071 { if $as_mkdir_p; then
21072 mkdir -p "$ac_dir"
21073 else
21074 as_dir="$ac_dir"
21075 as_dirs=
21076 while test ! -d "$as_dir"; do
21077 as_dirs="$as_dir $as_dirs"
21078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21079$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021080 X"$as_dir" : 'X\(//\)[^/]' \| \
21081 X"$as_dir" : 'X\(//\)$' \| \
21082 X"$as_dir" : 'X\(/\)' \| \
21083 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021084echo X"$as_dir" |
21085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21087 /^X\(\/\/\)$/{ s//\1/; q; }
21088 /^X\(\/\).*/{ s//\1/; q; }
21089 s/.*/./; q'`
21090 done
21091 test ! -n "$as_dirs" || mkdir $as_dirs
21092 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21093echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21094 { (exit 1); exit 1; }; }; }
21095
21096 ac_builddir=.
21097
21098if test "$ac_dir" != .; then
21099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21100 # A "../" for each directory in $ac_dir_suffix.
21101 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21102else
21103 ac_dir_suffix= ac_top_builddir=
21104fi
21105
21106case $srcdir in
21107 .) # No --srcdir option. We are building in place.
21108 ac_srcdir=.
21109 if test -z "$ac_top_builddir"; then
21110 ac_top_srcdir=.
21111 else
21112 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21113 fi ;;
21114 [\\/]* | ?:[\\/]* ) # Absolute path.
21115 ac_srcdir=$srcdir$ac_dir_suffix;
21116 ac_top_srcdir=$srcdir ;;
21117 *) # Relative path.
21118 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21119 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21120esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021121
21122# Do not use `cd foo && pwd` to compute absolute paths, because
21123# the directories may not exist.
21124case `pwd` in
21125.) ac_abs_builddir="$ac_dir";;
21126*)
21127 case "$ac_dir" in
21128 .) ac_abs_builddir=`pwd`;;
21129 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21130 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21131 esac;;
21132esac
21133case $ac_abs_builddir in
21134.) ac_abs_top_builddir=${ac_top_builddir}.;;
21135*)
21136 case ${ac_top_builddir}. in
21137 .) ac_abs_top_builddir=$ac_abs_builddir;;
21138 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21139 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21140 esac;;
21141esac
21142case $ac_abs_builddir in
21143.) ac_abs_srcdir=$ac_srcdir;;
21144*)
21145 case $ac_srcdir in
21146 .) ac_abs_srcdir=$ac_abs_builddir;;
21147 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21148 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21149 esac;;
21150esac
21151case $ac_abs_builddir in
21152.) ac_abs_top_srcdir=$ac_top_srcdir;;
21153*)
21154 case $ac_top_srcdir in
21155 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21156 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21157 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21158 esac;;
21159esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021160
21161
21162 case $INSTALL in
21163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21164 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21165 esac
21166
21167 if test x"$ac_file" != x-; then
21168 { echo "$as_me:$LINENO: creating $ac_file" >&5
21169echo "$as_me: creating $ac_file" >&6;}
21170 rm -f "$ac_file"
21171 fi
21172 # Let's still pretend it is `configure' which instantiates (i.e., don't
21173 # use $as_me), people would be surprised to read:
21174 # /* config.h. Generated by config.status. */
21175 if test x"$ac_file" = x-; then
21176 configure_input=
21177 else
21178 configure_input="$ac_file. "
21179 fi
21180 configure_input=$configure_input"Generated from `echo $ac_file_in |
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021181 sed 's,.*/,,'` by configure."
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021182
21183 # First look for the input files in the build tree, otherwise in the
21184 # src tree.
21185 ac_file_inputs=`IFS=:
21186 for f in $ac_file_in; do
21187 case $f in
21188 -) echo $tmp/stdin ;;
21189 [\\/$]*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021190 # Absolute (can't be DOS-style, as IFS=:)
21191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021192echo "$as_me: error: cannot find input file: $f" >&2;}
21193 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021194 echo "$f";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021195 *) # Relative
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021196 if test -f "$f"; then
21197 # Build tree
21198 echo "$f"
21199 elif test -f "$srcdir/$f"; then
21200 # Source tree
21201 echo "$srcdir/$f"
21202 else
21203 # /dev/null tree
21204 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021205echo "$as_me: error: cannot find input file: $f" >&2;}
21206 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021207 fi;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021208 esac
21209 done` || { (exit 1); exit 1; }
21210_ACEOF
21211cat >>$CONFIG_STATUS <<_ACEOF
21212 sed "$ac_vpsub
21213$extrasub
21214_ACEOF
21215cat >>$CONFIG_STATUS <<\_ACEOF
21216:t
21217/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21218s,@configure_input@,$configure_input,;t t
21219s,@srcdir@,$ac_srcdir,;t t
21220s,@abs_srcdir@,$ac_abs_srcdir,;t t
21221s,@top_srcdir@,$ac_top_srcdir,;t t
21222s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21223s,@builddir@,$ac_builddir,;t t
21224s,@abs_builddir@,$ac_abs_builddir,;t t
21225s,@top_builddir@,$ac_top_builddir,;t t
21226s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21227s,@INSTALL@,$ac_INSTALL,;t t
21228" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21229 rm -f $tmp/stdin
21230 if test x"$ac_file" != x-; then
21231 mv $tmp/out $ac_file
21232 else
21233 cat $tmp/out
21234 rm -f $tmp/out
21235 fi
21236
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021237 # Run the commands associated with the file.
21238 case $ac_file in
21239 libpng-config ) chmod +x libpng-config ;;
21240 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021241done
21242_ACEOF
21243cat >>$CONFIG_STATUS <<\_ACEOF
21244
21245#
21246# CONFIG_HEADER section.
21247#
21248
21249# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21250# NAME is the cpp macro being defined and VALUE is the value it is being given.
21251#
21252# ac_d sets the value in "#define NAME VALUE" lines.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021253ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21254ac_dB='[ ].*$,\1#\2'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021255ac_dC=' '
21256ac_dD=',;t'
21257# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021258ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021259ac_uB='$,\1#\2define\3'
21260ac_uC=' '
21261ac_uD=',;t'
21262
21263for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21264 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21265 case $ac_file in
21266 - | *:- | *:-:* ) # input from stdin
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021267 cat >$tmp/stdin
21268 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021270 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021271 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021272 * ) ac_file_in=$ac_file.in ;;
21273 esac
21274
21275 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21276echo "$as_me: creating $ac_file" >&6;}
21277
21278 # First look for the input files in the build tree, otherwise in the
21279 # src tree.
21280 ac_file_inputs=`IFS=:
21281 for f in $ac_file_in; do
21282 case $f in
21283 -) echo $tmp/stdin ;;
21284 [\\/$]*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021285 # Absolute (can't be DOS-style, as IFS=:)
21286 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021287echo "$as_me: error: cannot find input file: $f" >&2;}
21288 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021289 # Do quote $f, to prevent DOS paths from being IFS'd.
21290 echo "$f";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021291 *) # Relative
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021292 if test -f "$f"; then
21293 # Build tree
21294 echo "$f"
21295 elif test -f "$srcdir/$f"; then
21296 # Source tree
21297 echo "$srcdir/$f"
21298 else
21299 # /dev/null tree
21300 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021301echo "$as_me: error: cannot find input file: $f" >&2;}
21302 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021303 fi;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021304 esac
21305 done` || { (exit 1); exit 1; }
21306 # Remove the trailing spaces.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021307 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021308
21309_ACEOF
21310
21311# Transform confdefs.h into two sed scripts, `conftest.defines' and
21312# `conftest.undefs', that substitutes the proper values into
21313# config.h.in to produce config.h. The first handles `#define'
21314# templates, and the second `#undef' templates.
21315# And first: Protect against being on the right side of a sed subst in
21316# config.status. Protect against being in an unquoted here document
21317# in config.status.
21318rm -f conftest.defines conftest.undefs
21319# Using a here document instead of a string reduces the quoting nightmare.
21320# Putting comments in sed scripts is not portable.
21321#
21322# `end' is used to avoid that the second main sed command (meant for
21323# 0-ary CPP macros) applies to n-ary macro definitions.
21324# See the Autoconf documentation for `clear'.
21325cat >confdef2sed.sed <<\_ACEOF
21326s/[\\&,]/\\&/g
21327s,[\\$`],\\&,g
21328t clear
21329: clear
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021330s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021331t end
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021332s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021333: end
21334_ACEOF
21335# If some macros were called several times there might be several times
21336# the same #defines, which is useless. Nevertheless, we may not want to
21337# sort them, since we want the *last* AC-DEFINE to be honored.
21338uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21339sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21340rm -f confdef2sed.sed
21341
21342# This sed command replaces #undef with comments. This is necessary, for
21343# example, in the case of _POSIX_SOURCE, which is predefined and required
21344# on some systems where configure will not decide to define it.
21345cat >>conftest.undefs <<\_ACEOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021346s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021347_ACEOF
21348
21349# Break up conftest.defines because some shells have a limit on the size
21350# of here documents, and old seds have small limits too (100 cmds).
21351echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021352echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021353echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21354echo ' :' >>$CONFIG_STATUS
21355rm -f conftest.tail
21356while grep . conftest.defines >/dev/null
21357do
21358 # Write a limited-size here document to $tmp/defines.sed.
21359 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21360 # Speed up: don't consider the non `#define' lines.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021361 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021362 # Work around the forget-to-reset-the-flag bug.
21363 echo 't clr' >>$CONFIG_STATUS
21364 echo ': clr' >>$CONFIG_STATUS
21365 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21366 echo 'CEOF
21367 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21368 rm -f $tmp/in
21369 mv $tmp/out $tmp/in
21370' >>$CONFIG_STATUS
21371 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21372 rm -f conftest.defines
21373 mv conftest.tail conftest.defines
21374done
21375rm -f conftest.defines
21376echo ' fi # grep' >>$CONFIG_STATUS
21377echo >>$CONFIG_STATUS
21378
21379# Break up conftest.undefs because some shells have a limit on the size
21380# of here documents, and old seds have small limits too (100 cmds).
21381echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21382rm -f conftest.tail
21383while grep . conftest.undefs >/dev/null
21384do
21385 # Write a limited-size here document to $tmp/undefs.sed.
21386 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21387 # Speed up: don't consider the non `#undef'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021388 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021389 # Work around the forget-to-reset-the-flag bug.
21390 echo 't clr' >>$CONFIG_STATUS
21391 echo ': clr' >>$CONFIG_STATUS
21392 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21393 echo 'CEOF
21394 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21395 rm -f $tmp/in
21396 mv $tmp/out $tmp/in
21397' >>$CONFIG_STATUS
21398 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21399 rm -f conftest.undefs
21400 mv conftest.tail conftest.undefs
21401done
21402rm -f conftest.undefs
21403
21404cat >>$CONFIG_STATUS <<\_ACEOF
21405 # Let's still pretend it is `configure' which instantiates (i.e., don't
21406 # use $as_me), people would be surprised to read:
21407 # /* config.h. Generated by config.status. */
21408 if test x"$ac_file" = x-; then
21409 echo "/* Generated by configure. */" >$tmp/config.h
21410 else
21411 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21412 fi
21413 cat $tmp/in >>$tmp/config.h
21414 rm -f $tmp/in
21415 if test x"$ac_file" != x-; then
21416 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21417 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21418echo "$as_me: $ac_file is unchanged" >&6;}
21419 else
21420 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21421$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021422 X"$ac_file" : 'X\(//\)[^/]' \| \
21423 X"$ac_file" : 'X\(//\)$' \| \
21424 X"$ac_file" : 'X\(/\)' \| \
21425 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021426echo X"$ac_file" |
21427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21429 /^X\(\/\/\)$/{ s//\1/; q; }
21430 /^X\(\/\).*/{ s//\1/; q; }
21431 s/.*/./; q'`
21432 { if $as_mkdir_p; then
21433 mkdir -p "$ac_dir"
21434 else
21435 as_dir="$ac_dir"
21436 as_dirs=
21437 while test ! -d "$as_dir"; do
21438 as_dirs="$as_dir $as_dirs"
21439 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021441 X"$as_dir" : 'X\(//\)[^/]' \| \
21442 X"$as_dir" : 'X\(//\)$' \| \
21443 X"$as_dir" : 'X\(/\)' \| \
21444 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021445echo X"$as_dir" |
21446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21448 /^X\(\/\/\)$/{ s//\1/; q; }
21449 /^X\(\/\).*/{ s//\1/; q; }
21450 s/.*/./; q'`
21451 done
21452 test ! -n "$as_dirs" || mkdir $as_dirs
21453 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21454echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21455 { (exit 1); exit 1; }; }; }
21456
21457 rm -f $ac_file
21458 mv $tmp/config.h $ac_file
21459 fi
21460 else
21461 cat $tmp/config.h
21462 rm -f $tmp/config.h
21463 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021464# Compute $ac_file's index in $config_headers.
21465_am_stamp_count=1
21466for _am_header in $config_headers :; do
21467 case $_am_header in
21468 $ac_file | $ac_file:* )
21469 break ;;
21470 * )
21471 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21472 esac
21473done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021474echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21475$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021476 X$ac_file : 'X\(//\)[^/]' \| \
21477 X$ac_file : 'X\(//\)$' \| \
21478 X$ac_file : 'X\(/\)' \| \
21479 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021480echo X$ac_file |
21481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21483 /^X\(\/\/\)$/{ s//\1/; q; }
21484 /^X\(\/\).*/{ s//\1/; q; }
21485 s/.*/./; q'`/stamp-h$_am_stamp_count
21486done
21487_ACEOF
21488cat >>$CONFIG_STATUS <<\_ACEOF
21489
21490#
21491# CONFIG_COMMANDS section.
21492#
21493for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21494 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21495 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21496 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21497$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021498 X"$ac_dest" : 'X\(//\)[^/]' \| \
21499 X"$ac_dest" : 'X\(//\)$' \| \
21500 X"$ac_dest" : 'X\(/\)' \| \
21501 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021502echo X"$ac_dest" |
21503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21505 /^X\(\/\/\)$/{ s//\1/; q; }
21506 /^X\(\/\).*/{ s//\1/; q; }
21507 s/.*/./; q'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021508 { if $as_mkdir_p; then
21509 mkdir -p "$ac_dir"
21510 else
21511 as_dir="$ac_dir"
21512 as_dirs=
21513 while test ! -d "$as_dir"; do
21514 as_dirs="$as_dir $as_dirs"
21515 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21516$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21517 X"$as_dir" : 'X\(//\)[^/]' \| \
21518 X"$as_dir" : 'X\(//\)$' \| \
21519 X"$as_dir" : 'X\(/\)' \| \
21520 . : '\(.\)' 2>/dev/null ||
21521echo X"$as_dir" |
21522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21524 /^X\(\/\/\)$/{ s//\1/; q; }
21525 /^X\(\/\).*/{ s//\1/; q; }
21526 s/.*/./; q'`
21527 done
21528 test ! -n "$as_dirs" || mkdir $as_dirs
21529 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21530echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21531 { (exit 1); exit 1; }; }; }
21532
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021533 ac_builddir=.
21534
21535if test "$ac_dir" != .; then
21536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21537 # A "../" for each directory in $ac_dir_suffix.
21538 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21539else
21540 ac_dir_suffix= ac_top_builddir=
21541fi
21542
21543case $srcdir in
21544 .) # No --srcdir option. We are building in place.
21545 ac_srcdir=.
21546 if test -z "$ac_top_builddir"; then
21547 ac_top_srcdir=.
21548 else
21549 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21550 fi ;;
21551 [\\/]* | ?:[\\/]* ) # Absolute path.
21552 ac_srcdir=$srcdir$ac_dir_suffix;
21553 ac_top_srcdir=$srcdir ;;
21554 *) # Relative path.
21555 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21556 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21557esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021558
21559# Do not use `cd foo && pwd` to compute absolute paths, because
21560# the directories may not exist.
21561case `pwd` in
21562.) ac_abs_builddir="$ac_dir";;
21563*)
21564 case "$ac_dir" in
21565 .) ac_abs_builddir=`pwd`;;
21566 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21567 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21568 esac;;
21569esac
21570case $ac_abs_builddir in
21571.) ac_abs_top_builddir=${ac_top_builddir}.;;
21572*)
21573 case ${ac_top_builddir}. in
21574 .) ac_abs_top_builddir=$ac_abs_builddir;;
21575 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21576 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21577 esac;;
21578esac
21579case $ac_abs_builddir in
21580.) ac_abs_srcdir=$ac_srcdir;;
21581*)
21582 case $ac_srcdir in
21583 .) ac_abs_srcdir=$ac_abs_builddir;;
21584 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21585 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21586 esac;;
21587esac
21588case $ac_abs_builddir in
21589.) ac_abs_top_srcdir=$ac_top_srcdir;;
21590*)
21591 case $ac_top_srcdir in
21592 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21593 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21594 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21595 esac;;
21596esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021597
21598
21599 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21600echo "$as_me: executing $ac_dest commands" >&6;}
21601 case $ac_dest in
21602 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21603 # Strip MF so we end up with the name of the file.
21604 mf=`echo "$mf" | sed -e 's/:.*$//'`
21605 # Check whether this is an Automake generated Makefile or not.
21606 # We used to match only the files named `Makefile.in', but
21607 # some people rename them; so instead we look at the file content.
21608 # Grep'ing the first line is not enough: some people post-process
21609 # each Makefile.in and add a new line on top of each file to say so.
21610 # So let's grep whole file.
21611 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21612 dirpart=`(dirname "$mf") 2>/dev/null ||
21613$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021614 X"$mf" : 'X\(//\)[^/]' \| \
21615 X"$mf" : 'X\(//\)$' \| \
21616 X"$mf" : 'X\(/\)' \| \
21617 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021618echo X"$mf" |
21619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21621 /^X\(\/\/\)$/{ s//\1/; q; }
21622 /^X\(\/\).*/{ s//\1/; q; }
21623 s/.*/./; q'`
21624 else
21625 continue
21626 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021627 # Extract the definition of DEPDIR, am__include, and am__quote
21628 # from the Makefile without running `make'.
21629 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021630 test -z "$DEPDIR" && continue
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021631 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21632 test -z "am__include" && continue
21633 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021634 # When using ansi2knr, U may be empty or an underscore; expand it
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021635 U=`sed -n 's/^U = //p' < "$mf"`
21636 # Find all dependency output files, they are included files with
21637 # $(DEPDIR) in their names. We invoke sed twice because it is the
21638 # simplest approach to changing $(DEPDIR) to its actual value in the
21639 # expansion.
21640 for file in `sed -n "
21641 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021642 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21643 # Make sure the directory exists.
21644 test -f "$dirpart/$file" && continue
21645 fdir=`(dirname "$file") 2>/dev/null ||
21646$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021647 X"$file" : 'X\(//\)[^/]' \| \
21648 X"$file" : 'X\(//\)$' \| \
21649 X"$file" : 'X\(/\)' \| \
21650 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021651echo X"$file" |
21652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21654 /^X\(\/\/\)$/{ s//\1/; q; }
21655 /^X\(\/\).*/{ s//\1/; q; }
21656 s/.*/./; q'`
21657 { if $as_mkdir_p; then
21658 mkdir -p $dirpart/$fdir
21659 else
21660 as_dir=$dirpart/$fdir
21661 as_dirs=
21662 while test ! -d "$as_dir"; do
21663 as_dirs="$as_dir $as_dirs"
21664 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21665$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021666 X"$as_dir" : 'X\(//\)[^/]' \| \
21667 X"$as_dir" : 'X\(//\)$' \| \
21668 X"$as_dir" : 'X\(/\)' \| \
21669 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021670echo X"$as_dir" |
21671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21673 /^X\(\/\/\)$/{ s//\1/; q; }
21674 /^X\(\/\).*/{ s//\1/; q; }
21675 s/.*/./; q'`
21676 done
21677 test ! -n "$as_dirs" || mkdir $as_dirs
21678 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21679echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21680 { (exit 1); exit 1; }; }; }
21681
21682 # echo "creating $dirpart/$file"
21683 echo '# dummy' > "$dirpart/$file"
21684 done
21685done
21686 ;;
21687 esac
21688done
21689_ACEOF
21690
21691cat >>$CONFIG_STATUS <<\_ACEOF
21692
21693{ (exit 0); exit 0; }
21694_ACEOF
21695chmod +x $CONFIG_STATUS
21696ac_clean_files=$ac_clean_files_save
21697
21698
21699# configure is writing to config.log, and then calls config.status.
21700# config.status does its own redirection, appending to config.log.
21701# Unfortunately, on DOS this fails, as config.log is still kept open
21702# by configure, so config.status won't be able to write to it; its
21703# output is simply discarded. So we exec the FD to /dev/null,
21704# effectively closing config.log, so it can be properly (re)opened and
21705# appended to by config.status. When coming back to configure, we
21706# need to make the FD available again.
21707if test "$no_create" != yes; then
21708 ac_cs_success=:
21709 ac_config_status_args=
21710 test "$silent" = yes &&
21711 ac_config_status_args="$ac_config_status_args --quiet"
21712 exec 5>/dev/null
21713 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21714 exec 5>>config.log
21715 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21716 # would make configure fail if this is the last instruction.
21717 $ac_cs_success || { (exit 1); exit 1; }
21718fi
Glenn Randers-Pehrson520a7642000-03-21 05:13:06 -060021719