blob: e259dc05ab40e7ffbcc9027a573fdc6695af71ac [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-Pehrsonc3d51c12006-03-02 07:23:18 -06003# Generated by GNU Autoconf 2.59 for libpng 1.2.9beta4.
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-Pehrsonc3d51c12006-03-02 07:23:18 -0600426PACKAGE_VERSION='1.2.9beta4'
427PACKAGE_STRING='libpng 1.2.9beta4'
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-Pehrsonc3d51c12006-03-02 07:23:18 -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 LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS POW_LIB 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-Pehrsonc3d51c12006-03-02 07:23:18 -0600957\`configure' configures libpng 1.2.9beta4 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-Pehrsonc3d51c12006-03-02 07:23:18 -06001023 short | recursive ) echo "Configuration of libpng 1.2.9beta4:";;
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-Pehrsonc3d51c12006-03-02 07:23:18 -06001170libpng configure 1.2.9beta4
1171generated 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-Pehrsonc3d51c12006-03-02 07:23:18 -06001184It was created by libpng $as_me 1.2.9beta4, which was
1185generated 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'
1827 VERSION='1.2.9beta4'
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
1982PNGLIB_VERSION=1.2.9beta4
1983PNGLIB_MAJOR=12
1984PNGLIB_MINOR=9
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001985
1986
1987
1988 ac_config_headers="$ac_config_headers config.h"
1989
1990
1991# Checks for programs.
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997if test -n "$ac_tool_prefix"; then
1998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1999set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2018 fi
2019done
2020done
2021
2022fi
2023fi
2024CC=$ac_cv_prog_CC
2025if test -n "$CC"; then
2026 echo "$as_me:$LINENO: result: $CC" >&5
2027echo "${ECHO_T}$CC" >&6
2028else
2029 echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6
2031fi
2032
2033fi
2034if test -z "$ac_cv_prog_CC"; then
2035 ac_ct_CC=$CC
2036 # Extract the first word of "gcc", so it can be a program name with args.
2037set dummy gcc; ac_word=$2
2038echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045else
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057done
2058done
2059
2060fi
2061fi
2062ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065echo "${ECHO_T}$ac_ct_CC" >&6
2066else
2067 echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6
2069fi
2070
2071 CC=$ac_ct_CC
2072else
2073 CC="$ac_cv_prog_CC"
2074fi
2075
2076if test -z "$CC"; then
2077 if test -n "$ac_tool_prefix"; then
2078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2079set dummy ${ac_tool_prefix}cc; ac_word=$2
2080echo "$as_me:$LINENO: checking for $ac_word" >&5
2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2087else
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_CC="${ac_tool_prefix}cc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 break 2
2098 fi
2099done
2100done
2101
2102fi
2103fi
2104CC=$ac_cv_prog_CC
2105if test -n "$CC"; then
2106 echo "$as_me:$LINENO: result: $CC" >&5
2107echo "${ECHO_T}$CC" >&6
2108else
2109 echo "$as_me:$LINENO: result: no" >&5
2110echo "${ECHO_T}no" >&6
2111fi
2112
2113fi
2114if test -z "$ac_cv_prog_CC"; then
2115 ac_ct_CC=$CC
2116 # Extract the first word of "cc", so it can be a program name with args.
2117set dummy cc; ac_word=$2
2118echo "$as_me:$LINENO: checking for $ac_word" >&5
2119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125else
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_ac_ct_CC="cc"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 break 2
2136 fi
2137done
2138done
2139
2140fi
2141fi
2142ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143if test -n "$ac_ct_CC"; then
2144 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145echo "${ECHO_T}$ac_ct_CC" >&6
2146else
2147 echo "$as_me:$LINENO: result: no" >&5
2148echo "${ECHO_T}no" >&6
2149fi
2150
2151 CC=$ac_ct_CC
2152else
2153 CC="$ac_cv_prog_CC"
2154fi
2155
2156fi
2157if test -z "$CC"; then
2158 # Extract the first word of "cc", so it can be a program name with args.
2159set dummy cc; ac_word=$2
2160echo "$as_me:$LINENO: checking for $ac_word" >&5
2161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162if test "${ac_cv_prog_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165 if test -n "$CC"; then
2166 ac_cv_prog_CC="$CC" # Let the user override the test.
2167else
2168 ac_prog_rejected=no
2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170for as_dir in $PATH
2171do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2177 ac_prog_rejected=yes
2178 continue
2179 fi
2180 ac_cv_prog_CC="cc"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2183 fi
2184done
2185done
2186
2187if test $ac_prog_rejected = yes; then
2188 # We found a bogon in the path, so make sure we never use it.
2189 set dummy $ac_cv_prog_CC
2190 shift
2191 if test $# != 0; then
2192 # We chose a different compiler from the bogus one.
2193 # However, it has the same basename, so the bogon will be chosen
2194 # first if we set CC to just the basename; use the full file name.
2195 shift
2196 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2197 fi
2198fi
2199fi
2200fi
2201CC=$ac_cv_prog_CC
2202if test -n "$CC"; then
2203 echo "$as_me:$LINENO: result: $CC" >&5
2204echo "${ECHO_T}$CC" >&6
2205else
2206 echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6
2208fi
2209
2210fi
2211if test -z "$CC"; then
2212 if test -n "$ac_tool_prefix"; then
2213 for ac_prog in cl
2214 do
2215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2217echo "$as_me:$LINENO: checking for $ac_word" >&5
2218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219if test "${ac_cv_prog_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2224else
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2235 fi
2236done
2237done
2238
2239fi
2240fi
2241CC=$ac_cv_prog_CC
2242if test -n "$CC"; then
2243 echo "$as_me:$LINENO: result: $CC" >&5
2244echo "${ECHO_T}$CC" >&6
2245else
2246 echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6
2248fi
2249
2250 test -n "$CC" && break
2251 done
2252fi
2253if test -z "$CC"; then
2254 ac_ct_CC=$CC
2255 for ac_prog in cl
2256do
2257 # Extract the first word of "$ac_prog", so it can be a program name with args.
2258set dummy $ac_prog; ac_word=$2
2259echo "$as_me:$LINENO: checking for $ac_word" >&5
2260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
2264 if test -n "$ac_ct_CC"; then
2265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266else
2267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268for as_dir in $PATH
2269do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 ac_cv_prog_ac_ct_CC="$ac_prog"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 break 2
2277 fi
2278done
2279done
2280
2281fi
2282fi
2283ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284if test -n "$ac_ct_CC"; then
2285 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2286echo "${ECHO_T}$ac_ct_CC" >&6
2287else
2288 echo "$as_me:$LINENO: result: no" >&5
2289echo "${ECHO_T}no" >&6
2290fi
2291
2292 test -n "$ac_ct_CC" && break
2293done
2294
2295 CC=$ac_ct_CC
2296fi
2297
2298fi
2299
2300
2301test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2302See \`config.log' for more details." >&5
2303echo "$as_me: error: no acceptable C compiler found in \$PATH
2304See \`config.log' for more details." >&2;}
2305 { (exit 1); exit 1; }; }
2306
2307# Provide some information about the compiler.
2308echo "$as_me:$LINENO:" \
2309 "checking for C compiler version" >&5
2310ac_compiler=`set X $ac_compile; echo $2`
2311{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2312 (eval $ac_compiler --version </dev/null >&5) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }
2316{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2317 (eval $ac_compiler -v </dev/null >&5) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }
2321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2322 (eval $ac_compiler -V </dev/null >&5) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326
2327cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002328/* confdefs.h. */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h. */
2333
2334int
2335main ()
2336{
2337
2338 ;
2339 return 0;
2340}
2341_ACEOF
2342ac_clean_files_save=$ac_clean_files
2343ac_clean_files="$ac_clean_files a.out a.exe b.out"
2344# Try to create an executable without -o first, disregard a.out.
2345# It will help us diagnose broken compilers, and finding out an intuition
2346# of exeext.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002347echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2348echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002349ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2350if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2351 (eval $ac_link_default) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; then
2355 # Find the output, starting from the most likely. This scheme is
2356# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2357# resort.
2358
2359# Be careful to initialize this variable, since it used to be cached.
2360# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2361ac_cv_exeext=
2362# b.out is created by i960 compilers.
2363for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2364do
2365 test -f "$ac_file" || continue
2366 case $ac_file in
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002368 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002369 conftest.$ac_ext )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002370 # This is the source file.
2371 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002372 [ab].out )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002373 # We found the default executable, but exeext='' is most
2374 # certainly right.
2375 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002376 *.* )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002377 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 # FIXME: I believe we export ac_cv_exeext for Libtool,
2379 # but it would be cool to find out if it's true. Does anybody
2380 # maintain Libtool? --akim.
2381 export ac_cv_exeext
2382 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002383 * )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002384 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002385 esac
2386done
2387else
2388 echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2392See \`config.log' for more details." >&5
2393echo "$as_me: error: C compiler cannot create executables
2394See \`config.log' for more details." >&2;}
2395 { (exit 77); exit 77; }; }
2396fi
2397
2398ac_exeext=$ac_cv_exeext
2399echo "$as_me:$LINENO: result: $ac_file" >&5
2400echo "${ECHO_T}$ac_file" >&6
2401
2402# Check the compiler produces executables we can run. If not, either
2403# the compiler is broken, or we cross compile.
2404echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2405echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2406# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2407# If not cross compiling, check that we can run a simple program.
2408if test "$cross_compiling" != yes; then
2409 if { ac_try='./$ac_file'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 cross_compiling=no
2416 else
2417 if test "$cross_compiling" = maybe; then
2418 cross_compiling=yes
2419 else
2420 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421If you meant to cross compile, use \`--host'.
2422See \`config.log' for more details." >&5
2423echo "$as_me: error: cannot run C compiled programs.
2424If you meant to cross compile, use \`--host'.
2425See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2427 fi
2428 fi
2429fi
2430echo "$as_me:$LINENO: result: yes" >&5
2431echo "${ECHO_T}yes" >&6
2432
2433rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434ac_clean_files=$ac_clean_files_save
2435# Check the compiler produces executables we can run. If not, either
2436# the compiler is broken, or we cross compile.
2437echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2439echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440echo "${ECHO_T}$cross_compiling" >&6
2441
2442echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 (eval $ac_link) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; then
2449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2450# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2451# work properly (i.e., refer to `conftest.exe'), while it won't with
2452# `rm'.
2453for ac_file in conftest.exe conftest conftest.*; do
2454 test -f "$ac_file" || continue
2455 case $ac_file in
2456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002458 export ac_cv_exeext
2459 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002460 * ) break;;
2461 esac
2462done
2463else
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2465See \`config.log' for more details." >&5
2466echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2467See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2469fi
2470
2471rm -f conftest$ac_cv_exeext
2472echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2473echo "${ECHO_T}$ac_cv_exeext" >&6
2474
2475rm -f conftest.$ac_ext
2476EXEEXT=$ac_cv_exeext
2477ac_exeext=$EXEEXT
2478echo "$as_me:$LINENO: checking for suffix of object files" >&5
2479echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2480if test "${ac_cv_objext+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482else
2483 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002484/* confdefs.h. */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h. */
2489
2490int
2491main ()
2492{
2493
2494 ;
2495 return 0;
2496}
2497_ACEOF
2498rm -f conftest.o conftest.obj
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; then
2504 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2505 case $ac_file in
2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2508 break;;
2509 esac
2510done
2511else
2512 echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2516See \`config.log' for more details." >&5
2517echo "$as_me: error: cannot compute suffix of object files: cannot compile
2518See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2520fi
2521
2522rm -f conftest.$ac_cv_objext conftest.$ac_ext
2523fi
2524echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2525echo "${ECHO_T}$ac_cv_objext" >&6
2526OBJEXT=$ac_cv_objext
2527ac_objext=$OBJEXT
2528echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2529echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2530if test "${ac_cv_c_compiler_gnu+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002534/* confdefs.h. */
2535_ACEOF
2536cat confdefs.h >>conftest.$ac_ext
2537cat >>conftest.$ac_ext <<_ACEOF
2538/* end confdefs.h. */
2539
2540int
2541main ()
2542{
2543#ifndef __GNUC__
2544 choke me
2545#endif
2546
2547 ;
2548 return 0;
2549}
2550_ACEOF
2551rm -f conftest.$ac_objext
2552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002553 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002554 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_compiler_gnu=yes
2574else
2575 echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578ac_compiler_gnu=no
2579fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002581ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582
2583fi
2584echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2586GCC=`test $ac_compiler_gnu = yes && echo yes`
2587ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS
2589CFLAGS="-g"
2590echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2592if test "${ac_cv_prog_cc_g+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
2601
2602int
2603main ()
2604{
2605
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002612 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002613 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_prog_cc_g=yes
2633else
2634 echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637ac_cv_prog_cc_g=no
2638fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002640fi
2641echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2642echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2643if test "$ac_test_CFLAGS" = set; then
2644 CFLAGS=$ac_save_CFLAGS
2645elif test $ac_cv_prog_cc_g = yes; then
2646 if test "$GCC" = yes; then
2647 CFLAGS="-g -O2"
2648 else
2649 CFLAGS="-g"
2650 fi
2651else
2652 if test "$GCC" = yes; then
2653 CFLAGS="-O2"
2654 else
2655 CFLAGS=
2656 fi
2657fi
2658echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2659echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2660if test "${ac_cv_prog_cc_stdc+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
2663 ac_cv_prog_cc_stdc=no
2664ac_save_CC=$CC
2665cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002666/* confdefs.h. */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h. */
2671#include <stdarg.h>
2672#include <stdio.h>
2673#include <sys/types.h>
2674#include <sys/stat.h>
2675/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2676struct buf { int x; };
2677FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678static char *e (p, i)
2679 char **p;
2680 int i;
2681{
2682 return p[i];
2683}
2684static char *f (char * (*g) (char **, int), char **p, ...)
2685{
2686 char *s;
2687 va_list v;
2688 va_start (v,p);
2689 s = g (p, va_arg (v,int));
2690 va_end (v);
2691 return s;
2692}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002693
2694/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2695 function prototypes and stuff, but not '\xHH' hex character constants.
2696 These don't provoke an error unfortunately, instead are silently treated
2697 as 'x'. The following induces an error, until -std1 is added to get
2698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2699 array size at least. It's necessary to write '\x00'==0 to get something
2700 that's true only with -std1. */
2701int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2702
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002703int test (int i, double x);
2704struct s1 {int (*f) (int a);};
2705struct s2 {int (*f) (double a);};
2706int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2707int argc;
2708char **argv;
2709int
2710main ()
2711{
2712return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717# Don't try gcc -ansi; that turns off useful extensions and
2718# breaks some systems' header files.
2719# AIX -qlanglvl=ansi
2720# Ultrix and OSF/1 -std1
2721# HP-UX 10.20 and later -Ae
2722# HP-UX older versions -Aa -D_HPUX_SOURCE
2723# SVR4 -Xc -D__EXTENSIONS__
2724for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725do
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002729 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002730 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002736 { ac_try='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 ac_cv_prog_cc_stdc=$ac_arg
2750break
2751else
2752 echo "$as_me: failed program was:" >&5
2753sed 's/^/| /' conftest.$ac_ext >&5
2754
2755fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002756rm -f conftest.err conftest.$ac_objext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002757done
2758rm -f conftest.$ac_ext conftest.$ac_objext
2759CC=$ac_save_CC
2760
2761fi
2762
2763case "x$ac_cv_prog_cc_stdc" in
2764 x|xno)
2765 echo "$as_me:$LINENO: result: none needed" >&5
2766echo "${ECHO_T}none needed" >&6 ;;
2767 *)
2768 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2769echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2770 CC="$CC $ac_cv_prog_cc_stdc" ;;
2771esac
2772
2773# Some people use a C++ compiler to compile C. Since we use `exit',
2774# in C++ we need to declare it. In case someone uses the same compiler
2775# for both compiling C and C++ we need to have the C++ compiler decide
2776# the declaration of exit, since it's the most demanding environment.
2777cat >conftest.$ac_ext <<_ACEOF
2778#ifndef __cplusplus
2779 choke me
2780#endif
2781_ACEOF
2782rm -f conftest.$ac_objext
2783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002784 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002785 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002791 { ac_try='test -z "$ac_c_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 for ac_declaration in \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002805 '' \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002806 'extern "C" void std::exit (int) throw (); using std::exit;' \
2807 'extern "C" void std::exit (int); using std::exit;' \
2808 'extern "C" void exit (int) throw ();' \
2809 'extern "C" void exit (int);' \
2810 'void exit (int);'
2811do
2812 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002813/* confdefs.h. */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002818$ac_declaration
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002819#include <stdlib.h>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002820int
2821main ()
2822{
2823exit (42);
2824 ;
2825 return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext
2829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002830 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002831 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002837 { ac_try='test -z "$ac_c_werror_flag"
2838 || test ! -s conftest.err'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 :
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855continue
2856fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002858 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864$ac_declaration
2865int
2866main ()
2867{
2868exit (42);
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873rm -f conftest.$ac_objext
2874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002875 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002876 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002882 { ac_try='test -z "$ac_c_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2895 break
2896else
2897 echo "$as_me: failed program was:" >&5
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
2900fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002902done
2903rm -f conftest*
2904if test -n "$ac_declaration"; then
2905 echo '#ifdef __cplusplus' >>confdefs.h
2906 echo $ac_declaration >>confdefs.h
2907 echo '#endif' >>confdefs.h
2908fi
2909
2910else
2911 echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002916ac_ext=c
2917ac_cpp='$CPP $CPPFLAGS'
2918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002921DEPDIR="${am__leading_dot}deps"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002922
2923 ac_config_commands="$ac_config_commands depfiles"
2924
2925
2926am_make=${MAKE-make}
2927cat > confinc << 'END'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002928am__doit:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002929 @echo done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002930.PHONY: am__doit
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002931END
2932# If we don't find an include directive, just comment out the code.
2933echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2934echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2935am__include="#"
2936am__quote=
2937_am_result=none
2938# First try GNU make style include.
2939echo "include confinc" > confmf
2940# We grep out `Entering directory' and `Leaving directory'
2941# messages which can occur if `w' ends up in MAKEFLAGS.
2942# In particular we don't look at `^make:' because GNU make might
2943# be invoked under some other name (usually "gmake"), in which
2944# case it prints its new name instead of `make'.
2945if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2946 am__include=include
2947 am__quote=
2948 _am_result=GNU
2949fi
2950# Now try BSD make style include.
2951if test "$am__include" = "#"; then
2952 echo '.include "confinc"' > confmf
2953 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2954 am__include=.include
2955 am__quote="\""
2956 _am_result=BSD
2957 fi
2958fi
2959
2960
2961echo "$as_me:$LINENO: result: $_am_result" >&5
2962echo "${ECHO_T}$_am_result" >&6
2963rm -f confinc confmf
2964
2965# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2966if test "${enable_dependency_tracking+set}" = set; then
2967 enableval="$enable_dependency_tracking"
2968
2969fi;
2970if test "x$enable_dependency_tracking" != xno; then
2971 am_depcomp="$ac_aux_dir/depcomp"
2972 AMDEPBACKSLASH='\'
2973fi
2974
2975
2976if test "x$enable_dependency_tracking" != xno; then
2977 AMDEP_TRUE=
2978 AMDEP_FALSE='#'
2979else
2980 AMDEP_TRUE='#'
2981 AMDEP_FALSE=
2982fi
2983
2984
2985
2986
2987depcc="$CC" am_compiler_list=
2988
2989echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2990echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2991if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2995 # We make a subdir and do the tests there. Otherwise we can end up
2996 # making bogus files that we don't know about and never remove. For
2997 # instance it was reported that on HP-UX the gcc test will end up
2998 # making a dummy file named `D' -- because `-MD' means `put the output
2999 # in D'.
3000 mkdir conftest.dir
3001 # Copy depcomp to subdir because otherwise we won't find it if we're
3002 # using a relative directory.
3003 cp "$am_depcomp" conftest.dir
3004 cd conftest.dir
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003005 # We will build objects and dependencies in a subdirectory because
3006 # it helps to detect inapplicable dependency modes. For instance
3007 # both Tru64's cc and ICC support -MD to output dependencies as a
3008 # side effect of compilation, but ICC will put the dependencies in
3009 # the current directory while Tru64 will put them in the object
3010 # directory.
3011 mkdir sub
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003012
3013 am_cv_CC_dependencies_compiler_type=none
3014 if test "$am_compiler_list" = ""; then
3015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3016 fi
3017 for depmode in $am_compiler_list; do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003018 # Setup a source with many dependencies, because some compilers
3019 # like to wrap large dependency lists on column 80 (with \), and
3020 # we should not choose a depcomp mode which is confused by this.
3021 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003022 # We need to recreate these files for each test, as the compiler may
3023 # overwrite some of them when testing with obscure command lines.
3024 # This happens at least with the AIX C compiler.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003025 : > sub/conftest.c
3026 for i in 1 2 3 4 5 6; do
3027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3029 # Solaris 8's {/usr,}/bin/sh.
3030 touch sub/conftst$i.h
3031 done
3032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003033
3034 case $depmode in
3035 nosideeffect)
3036 # after this tag, mechanisms are not by side-effect, so they'll
3037 # only be used when explicitly requested
3038 if test "x$enable_dependency_tracking" = xyes; then
3039 continue
3040 else
3041 break
3042 fi
3043 ;;
3044 none) break ;;
3045 esac
3046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3047 # mode. It turns out that the SunPro C++ compiler does not properly
3048 # handle `-M -o', and we need to detect this.
3049 if depmode=$depmode \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003050 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3052 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3053 >/dev/null 2>conftest.err &&
3054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3055 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003057 # icc doesn't choke on unknown options, it will just issue warnings
3058 # or remarks (even with -Werror). So we grep stderr for any message
3059 # that says an option was ignored or not supported.
3060 # When given -MP, icc 7.0 and 7.1 complain thusly:
3061 # icc: Command line warning: ignoring option '-M'; no argument required
3062 # The diagnosis changed in icc 8.0:
3063 # icc: Command line remark: option '-MP' not supported
3064 if (grep 'ignoring option' conftest.err ||
3065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3066 am_cv_CC_dependencies_compiler_type=$depmode
3067 break
3068 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003069 fi
3070 done
3071
3072 cd ..
3073 rm -rf conftest.dir
3074else
3075 am_cv_CC_dependencies_compiler_type=none
3076fi
3077
3078fi
3079echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3080echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3081CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3082
3083
3084
3085if
3086 test "x$enable_dependency_tracking" != xno \
3087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3088 am__fastdepCC_TRUE=
3089 am__fastdepCC_FALSE='#'
3090else
3091 am__fastdepCC_TRUE='#'
3092 am__fastdepCC_FALSE=
3093fi
3094
3095
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003096# Find a good install program. We prefer a C program (faster),
3097# so one script is as good as another. But avoid the broken or
3098# incompatible versions:
3099# SysV /etc/install, /usr/sbin/install
3100# SunOS /usr/etc/install
3101# IRIX /sbin/install
3102# AIX /bin/install
3103# AmigaOS /C/install, which installs bootblocks on floppy discs
3104# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3105# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3106# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3107# OS/2's system install, which has a completely different semantic
3108# ./install, which can be erroneously created by make from ./install.sh.
3109echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3110echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3111if test -z "$INSTALL"; then
3112if test "${ac_cv_path_install+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 # Account for people who put trailing slashes in PATH elements.
3121case $as_dir/ in
3122 ./ | .// | /cC/* | \
3123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3124 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3125 /usr/ucb/* ) ;;
3126 *)
3127 # OSF1 and SCO ODT 3.0 have their own names for install.
3128 # Don't use installbsd from OSF since it installs stuff as root
3129 # by default.
3130 for ac_prog in ginstall scoinst install; do
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3133 if test $ac_prog = install &&
3134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3135 # AIX install. It has an incompatible calling convention.
3136 :
3137 elif test $ac_prog = install &&
3138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3139 # program-specific install script used by HP pwplus--don't use.
3140 :
3141 else
3142 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3143 break 3
3144 fi
3145 fi
3146 done
3147 done
3148 ;;
3149esac
3150done
3151
3152
3153fi
3154 if test "${ac_cv_path_install+set}" = set; then
3155 INSTALL=$ac_cv_path_install
3156 else
3157 # As a last resort, use the slow shell script. We don't cache a
3158 # path for INSTALL within a source directory, because that will
3159 # break other packages using the cache if that directory is
3160 # removed, or if the path is relative.
3161 INSTALL=$ac_install_sh
3162 fi
3163fi
3164echo "$as_me:$LINENO: result: $INSTALL" >&5
3165echo "${ECHO_T}$INSTALL" >&6
3166
3167# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3168# It thinks the first close brace ends the variable substitution.
3169test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3170
3171test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3172
3173test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3174
3175echo "$as_me:$LINENO: checking whether ln -s works" >&5
3176echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3177LN_S=$as_ln_s
3178if test "$LN_S" = "ln -s"; then
3179 echo "$as_me:$LINENO: result: yes" >&5
3180echo "${ECHO_T}yes" >&6
3181else
3182 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3183echo "${ECHO_T}no, using $LN_S" >&6
3184fi
3185
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003186echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3187echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003188set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003189if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191else
3192 cat >conftest.make <<\_ACEOF
3193all:
3194 @echo 'ac_maketemp="$(MAKE)"'
3195_ACEOF
3196# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3197eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3198if test -n "$ac_maketemp"; then
3199 eval ac_cv_prog_make_${ac_make}_set=yes
3200else
3201 eval ac_cv_prog_make_${ac_make}_set=no
3202fi
3203rm -f conftest.make
3204fi
3205if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3206 echo "$as_me:$LINENO: result: yes" >&5
3207echo "${ECHO_T}yes" >&6
3208 SET_MAKE=
3209else
3210 echo "$as_me:$LINENO: result: no" >&5
3211echo "${ECHO_T}no" >&6
3212 SET_MAKE="MAKE=${MAKE-make}"
3213fi
3214
3215# Check whether --enable-shared or --disable-shared was given.
3216if test "${enable_shared+set}" = set; then
3217 enableval="$enable_shared"
3218 p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003219 case $enableval in
3220 yes) enable_shared=yes ;;
3221 no) enable_shared=no ;;
3222 *)
3223 enable_shared=no
3224 # Look at the argument we got. We use all the common list separators.
3225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3226 for pkg in $enableval; do
3227 IFS="$lt_save_ifs"
3228 if test "X$pkg" = "X$p"; then
3229 enable_shared=yes
3230 fi
3231 done
3232 IFS="$lt_save_ifs"
3233 ;;
3234 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003235else
3236 enable_shared=yes
3237fi;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003238
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003239# Check whether --enable-static or --disable-static was given.
3240if test "${enable_static+set}" = set; then
3241 enableval="$enable_static"
3242 p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003243 case $enableval in
3244 yes) enable_static=yes ;;
3245 no) enable_static=no ;;
3246 *)
3247 enable_static=no
3248 # Look at the argument we got. We use all the common list separators.
3249 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3250 for pkg in $enableval; do
3251 IFS="$lt_save_ifs"
3252 if test "X$pkg" = "X$p"; then
3253 enable_static=yes
3254 fi
3255 done
3256 IFS="$lt_save_ifs"
3257 ;;
3258 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003259else
3260 enable_static=yes
3261fi;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003262
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003263# Check whether --enable-fast-install or --disable-fast-install was given.
3264if test "${enable_fast_install+set}" = set; then
3265 enableval="$enable_fast_install"
3266 p=${PACKAGE-default}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003267 case $enableval in
3268 yes) enable_fast_install=yes ;;
3269 no) enable_fast_install=no ;;
3270 *)
3271 enable_fast_install=no
3272 # Look at the argument we got. We use all the common list separators.
3273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3274 for pkg in $enableval; do
3275 IFS="$lt_save_ifs"
3276 if test "X$pkg" = "X$p"; then
3277 enable_fast_install=yes
3278 fi
3279 done
3280 IFS="$lt_save_ifs"
3281 ;;
3282 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003283else
3284 enable_fast_install=yes
3285fi;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003286
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003287# Make sure we can run config.sub.
3288$ac_config_sub sun4 >/dev/null 2>&1 ||
3289 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3290echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3291 { (exit 1); exit 1; }; }
3292
3293echo "$as_me:$LINENO: checking build system type" >&5
3294echo $ECHO_N "checking build system type... $ECHO_C" >&6
3295if test "${ac_cv_build+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3297else
3298 ac_cv_build_alias=$build_alias
3299test -z "$ac_cv_build_alias" &&
3300 ac_cv_build_alias=`$ac_config_guess`
3301test -z "$ac_cv_build_alias" &&
3302 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3303echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3304 { (exit 1); exit 1; }; }
3305ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3306 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3307echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3308 { (exit 1); exit 1; }; }
3309
3310fi
3311echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3312echo "${ECHO_T}$ac_cv_build" >&6
3313build=$ac_cv_build
3314build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3315build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3316build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3317
3318
3319echo "$as_me:$LINENO: checking host system type" >&5
3320echo $ECHO_N "checking host system type... $ECHO_C" >&6
3321if test "${ac_cv_host+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324 ac_cv_host_alias=$host_alias
3325test -z "$ac_cv_host_alias" &&
3326 ac_cv_host_alias=$ac_cv_build_alias
3327ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3329echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3330 { (exit 1); exit 1; }; }
3331
3332fi
3333echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3334echo "${ECHO_T}$ac_cv_host" >&6
3335host=$ac_cv_host
3336host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3337host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3338host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3339
3340
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003341echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3342echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3343if test "${lt_cv_path_SED+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345else
3346 # Loop through the user's path and test for sed and gsed.
3347# Then use that list of sed's as ones to test for truncation.
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for lt_ac_prog in sed gsed; do
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3356 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3357 fi
3358 done
3359 done
3360done
3361lt_ac_max=0
3362lt_ac_count=0
3363# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3364# along with /bin/sed that truncates output.
3365for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3366 test ! -f $lt_ac_sed && continue
3367 cat /dev/null > conftest.in
3368 lt_ac_count=0
3369 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3370 # Check for GNU sed and select it if it is found.
3371 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3372 lt_cv_path_SED=$lt_ac_sed
3373 break
3374 fi
3375 while true; do
3376 cat conftest.in conftest.in >conftest.tmp
3377 mv conftest.tmp conftest.in
3378 cp conftest.in conftest.nl
3379 echo >>conftest.nl
3380 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3381 cmp -s conftest.out conftest.nl || break
3382 # 10000 chars as input seems more than enough
3383 test $lt_ac_count -gt 10 && break
3384 lt_ac_count=`expr $lt_ac_count + 1`
3385 if test $lt_ac_count -gt $lt_ac_max; then
3386 lt_ac_max=$lt_ac_count
3387 lt_cv_path_SED=$lt_ac_sed
3388 fi
3389 done
3390done
3391
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003392fi
3393
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003394SED=$lt_cv_path_SED
3395echo "$as_me:$LINENO: result: $SED" >&5
3396echo "${ECHO_T}$SED" >&6
3397
3398echo "$as_me:$LINENO: checking for egrep" >&5
3399echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3400if test "${ac_cv_prog_egrep+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3404 then ac_cv_prog_egrep='grep -E'
3405 else ac_cv_prog_egrep='egrep'
3406 fi
3407fi
3408echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3409echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3410 EGREP=$ac_cv_prog_egrep
3411
3412
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003413
3414# Check whether --with-gnu-ld or --without-gnu-ld was given.
3415if test "${with_gnu_ld+set}" = set; then
3416 withval="$with_gnu_ld"
3417 test "$withval" = no || with_gnu_ld=yes
3418else
3419 with_gnu_ld=no
3420fi;
3421ac_prog=ld
3422if test "$GCC" = yes; then
3423 # Check if gcc -print-prog-name=ld gives a path.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003424 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3425echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003426 case $host in
3427 *-*-mingw*)
3428 # gcc leaves a trailing carriage return which upsets mingw
3429 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3430 *)
3431 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3432 esac
3433 case $ac_prog in
3434 # Accept absolute paths.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003435 [\\/]* | ?:[\\/]*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003436 re_direlt='/[^/][^/]*/\.\./'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003437 # Canonicalize the pathname of ld
3438 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003439 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003440 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003441 done
3442 test -z "$LD" && LD="$ac_prog"
3443 ;;
3444 "")
3445 # If it fails, then pretend we aren't using GCC.
3446 ac_prog=ld
3447 ;;
3448 *)
3449 # If it is relative, then search for the first ld in PATH.
3450 with_gnu_ld=unknown
3451 ;;
3452 esac
3453elif test "$with_gnu_ld" = yes; then
3454 echo "$as_me:$LINENO: checking for GNU ld" >&5
3455echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3456else
3457 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3458echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3459fi
3460if test "${lt_cv_path_LD+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463 if test -z "$LD"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003465 for ac_dir in $PATH; do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003466 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003467 test -z "$ac_dir" && ac_dir=.
3468 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3469 lt_cv_path_LD="$ac_dir/$ac_prog"
3470 # Check to see if the program is GNU ld. I'd rather use --version,
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003471 # but apparently some variants of GNU ld only accept -v.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003472 # Break only if it was the GNU/non-GNU ld that we prefer.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003473 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3474 *GNU* | *'with BFD'*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003475 test "$with_gnu_ld" != no && break
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003476 ;;
3477 *)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003478 test "$with_gnu_ld" != yes && break
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003479 ;;
3480 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003481 fi
3482 done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003483 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003484else
3485 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3486fi
3487fi
3488
3489LD="$lt_cv_path_LD"
3490if test -n "$LD"; then
3491 echo "$as_me:$LINENO: result: $LD" >&5
3492echo "${ECHO_T}$LD" >&6
3493else
3494 echo "$as_me:$LINENO: result: no" >&5
3495echo "${ECHO_T}no" >&6
3496fi
3497test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3498echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3499 { (exit 1); exit 1; }; }
3500echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3501echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3502if test "${lt_cv_prog_gnu_ld+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003505 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3506case `$LD -v 2>&1 </dev/null` in
3507*GNU* | *'with BFD'*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003508 lt_cv_prog_gnu_ld=yes
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003509 ;;
3510*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003511 lt_cv_prog_gnu_ld=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003512 ;;
3513esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003514fi
3515echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3516echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3517with_gnu_ld=$lt_cv_prog_gnu_ld
3518
3519
3520echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3521echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3522if test "${lt_cv_ld_reload_flag+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525 lt_cv_ld_reload_flag='-r'
3526fi
3527echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3528echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3529reload_flag=$lt_cv_ld_reload_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003530case $reload_flag in
3531"" | " "*) ;;
3532*) reload_flag=" $reload_flag" ;;
3533esac
3534reload_cmds='$LD$reload_flag -o $output$reload_objs'
3535case $host_os in
3536 darwin*)
3537 if test "$GCC" = yes; then
3538 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3539 else
3540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3541 fi
3542 ;;
3543esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003544
3545echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3546echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3547if test "${lt_cv_path_NM+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 if test -n "$NM"; then
3551 # Let the user override the test.
3552 lt_cv_path_NM="$NM"
3553else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003554 lt_nm_to_check="${ac_tool_prefix}nm"
3555 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3556 lt_nm_to_check="$lt_nm_to_check nm"
3557 fi
3558 for lt_tmp_nm in $lt_nm_to_check; do
3559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3560 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3561 IFS="$lt_save_ifs"
3562 test -z "$ac_dir" && ac_dir=.
3563 tmp_nm="$ac_dir/$lt_tmp_nm"
3564 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3565 # Check to see if the nm accepts a BSD-compat flag.
3566 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3567 # nm: unknown option "B" ignored
3568 # Tru64's nm complains that /dev/null is an invalid object file
3569 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3570 */dev/null* | *'Invalid file or object type'*)
3571 lt_cv_path_NM="$tmp_nm -B"
3572 break
3573 ;;
3574 *)
3575 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3576 */dev/null*)
3577 lt_cv_path_NM="$tmp_nm -p"
3578 break
3579 ;;
3580 *)
3581 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3582 continue # so that we can try to find one that supports BSD flags
3583 ;;
3584 esac
3585 ;;
3586 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003587 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003588 done
3589 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003590 done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003591 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3592fi
3593fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003594echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3595echo "${ECHO_T}$lt_cv_path_NM" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003596NM="$lt_cv_path_NM"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003597
3598echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3599echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3600if test "${lt_cv_deplibs_check_method+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602else
3603 lt_cv_file_magic_cmd='$MAGIC_CMD'
3604lt_cv_file_magic_test_file=
3605lt_cv_deplibs_check_method='unknown'
3606# Need to set the preceding variable on all platforms that support
3607# interlibrary dependencies.
3608# 'none' -- dependencies not supported.
3609# `unknown' -- same as none, but documents that we really don't know.
3610# 'pass_all' -- all dependencies passed with no checks.
3611# 'test_compile' -- check by making test program.
3612# 'file_magic [[regex]]' -- check by looking for files in library path
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003613# which responds to the $file_magic_cmd with a given extended regex.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003614# If you have `file' or equivalent on your system and you're not sure
3615# whether `pass_all' will *always* work, you probably want this one.
3616
3617case $host_os in
3618aix4* | aix5*)
3619 lt_cv_deplibs_check_method=pass_all
3620 ;;
3621
3622beos*)
3623 lt_cv_deplibs_check_method=pass_all
3624 ;;
3625
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003626bsdi[45]*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3628 lt_cv_file_magic_cmd='/usr/bin/file -L'
3629 lt_cv_file_magic_test_file=/shlib/libc.so
3630 ;;
3631
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003632cygwin*)
3633 # func_win32_libid is a shell function defined in ltmain.sh
3634 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3635 lt_cv_file_magic_cmd='func_win32_libid'
3636 ;;
3637
3638mingw* | pw32*)
3639 # Base MSYS/MinGW do not provide the 'file' command needed by
3640 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003641 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3642 lt_cv_file_magic_cmd='$OBJDUMP -f'
3643 ;;
3644
3645darwin* | rhapsody*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003646 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003647 ;;
3648
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003649freebsd* | kfreebsd*-gnu | dragonfly*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003650 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3651 case $host_cpu in
3652 i*86 )
3653 # Not sure whether the presence of OpenBSD here was a mistake.
3654 # Let's accept both of them until this is cleared up.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003655 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 -06003656 lt_cv_file_magic_cmd=/usr/bin/file
3657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3658 ;;
3659 esac
3660 else
3661 lt_cv_deplibs_check_method=pass_all
3662 fi
3663 ;;
3664
3665gnu*)
3666 lt_cv_deplibs_check_method=pass_all
3667 ;;
3668
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003669hpux10.20* | hpux11*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003670 lt_cv_file_magic_cmd=/usr/bin/file
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003671 case $host_cpu in
3672 ia64*)
3673 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3674 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3675 ;;
3676 hppa*64*)
3677 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]'
3678 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3679 ;;
3680 *)
3681 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3682 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3683 ;;
3684 esac
3685 ;;
3686
3687interix3*)
3688 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003690 ;;
3691
3692irix5* | irix6* | nonstopux*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003693 case $LD in
3694 *-32|*"-32 ") libmagic=32-bit;;
3695 *-n32|*"-n32 ") libmagic=N32;;
3696 *-64|*"-64 ") libmagic=64-bit;;
3697 *) libmagic=never-match;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003698 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003699 lt_cv_deplibs_check_method=pass_all
3700 ;;
3701
3702# This must be Linux ELF.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003703linux*)
3704 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003705 ;;
3706
3707netbsd*)
3708 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003710 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003712 fi
3713 ;;
3714
3715newos6*)
3716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3717 lt_cv_file_magic_cmd=/usr/bin/file
3718 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3719 ;;
3720
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003721nto-qnx*)
3722 lt_cv_deplibs_check_method=unknown
3723 ;;
3724
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003725openbsd*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003726 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 -06003727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003728 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003730 fi
3731 ;;
3732
3733osf3* | osf4* | osf5*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003734 lt_cv_deplibs_check_method=pass_all
3735 ;;
3736
3737solaris*)
3738 lt_cv_deplibs_check_method=pass_all
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003739 ;;
3740
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003741sysv4 | sysv4.3*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003742 case $host_vendor in
3743 motorola)
3744 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]'
3745 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3746 ;;
3747 ncr)
3748 lt_cv_deplibs_check_method=pass_all
3749 ;;
3750 sequent)
3751 lt_cv_file_magic_cmd='/bin/file'
3752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3753 ;;
3754 sni)
3755 lt_cv_file_magic_cmd='/bin/file'
3756 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3757 lt_cv_file_magic_test_file=/lib/libc.so
3758 ;;
3759 siemens)
3760 lt_cv_deplibs_check_method=pass_all
3761 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003762 pc)
3763 lt_cv_deplibs_check_method=pass_all
3764 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003765 esac
3766 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003767
3768sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3769 lt_cv_deplibs_check_method=pass_all
3770 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003771esac
3772
3773fi
3774echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3775echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3776file_magic_cmd=$lt_cv_file_magic_cmd
3777deplibs_check_method=$lt_cv_deplibs_check_method
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003778test -z "$deplibs_check_method" && deplibs_check_method=unknown
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003779
3780
3781
3782
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003783# If no C compiler was specified, use CC.
3784LTCC=${LTCC-"$CC"}
3785
3786# If no C compiler flags were specified, use CFLAGS.
3787LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3788
3789# Allow CC to be a program name with arguments.
3790compiler=$CC
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003791
3792
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003793# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3794if test "${enable_libtool_lock+set}" = set; then
3795 enableval="$enable_libtool_lock"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003796
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003797fi;
3798test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003799
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003800# Some flags need to be propagated to the compiler or linker for good
3801# libtool support.
3802case $host in
3803ia64-*-hpux*)
3804 # Find out which ABI we are using.
3805 echo 'int i;' > conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003811 case `/usr/bin/file conftest.$ac_objext` in
3812 *ELF-32*)
3813 HPUX_IA64_MODE="32"
3814 ;;
3815 *ELF-64*)
3816 HPUX_IA64_MODE="64"
3817 ;;
3818 esac
3819 fi
3820 rm -rf conftest*
3821 ;;
3822*-*-irix6*)
3823 # Find out which ABI we are using.
3824 echo '#line 3824 "configure"' > conftest.$ac_ext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826 (eval $ac_compile) 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003829 (exit $ac_status); }; then
3830 if test "$lt_cv_prog_gnu_ld" = yes; then
3831 case `/usr/bin/file conftest.$ac_objext` in
3832 *32-bit*)
3833 LD="${LD-ld} -melf32bsmip"
3834 ;;
3835 *N32*)
3836 LD="${LD-ld} -melf32bmipn32"
3837 ;;
3838 *64-bit*)
3839 LD="${LD-ld} -melf64bmip"
3840 ;;
3841 esac
3842 else
3843 case `/usr/bin/file conftest.$ac_objext` in
3844 *32-bit*)
3845 LD="${LD-ld} -32"
3846 ;;
3847 *N32*)
3848 LD="${LD-ld} -n32"
3849 ;;
3850 *64-bit*)
3851 LD="${LD-ld} -64"
3852 ;;
3853 esac
3854 fi
3855 fi
3856 rm -rf conftest*
3857 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003858
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003859x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3860 # Find out which ABI we are using.
3861 echo 'int i;' > conftest.$ac_ext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; then
3867 case `/usr/bin/file conftest.o` in
3868 *32-bit*)
3869 case $host in
3870 x86_64-*linux*)
3871 LD="${LD-ld} -m elf_i386"
3872 ;;
3873 ppc64-*linux*|powerpc64-*linux*)
3874 LD="${LD-ld} -m elf32ppclinux"
3875 ;;
3876 s390x-*linux*)
3877 LD="${LD-ld} -m elf_s390"
3878 ;;
3879 sparc64-*linux*)
3880 LD="${LD-ld} -m elf32_sparc"
3881 ;;
3882 esac
3883 ;;
3884 *64-bit*)
3885 case $host in
3886 x86_64-*linux*)
3887 LD="${LD-ld} -m elf_x86_64"
3888 ;;
3889 ppc*-*linux*|powerpc*-*linux*)
3890 LD="${LD-ld} -m elf64ppc"
3891 ;;
3892 s390*-*linux*)
3893 LD="${LD-ld} -m elf64_s390"
3894 ;;
3895 sparc*-*linux*)
3896 LD="${LD-ld} -m elf64_sparc"
3897 ;;
3898 esac
3899 ;;
3900 esac
3901 fi
3902 rm -rf conftest*
3903 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003904
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003905*-*-sco3.2v5*)
3906 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3907 SAVE_CFLAGS="$CFLAGS"
3908 CFLAGS="$CFLAGS -belf"
3909 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3910echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3911if test "${lt_cv_cc_needs_belf+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 ac_ext=c
3915ac_cpp='$CPP $CPPFLAGS'
3916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003919
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003920 cat >conftest.$ac_ext <<_ACEOF
3921/* confdefs.h. */
3922_ACEOF
3923cat confdefs.h >>conftest.$ac_ext
3924cat >>conftest.$ac_ext <<_ACEOF
3925/* end confdefs.h. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003926
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003927int
3928main ()
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003929{
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003930
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003931 ;
3932 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003933}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003934_ACEOF
3935rm -f conftest.$ac_objext conftest$ac_exeext
3936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3937 (eval $ac_link) 2>conftest.er1
3938 ac_status=$?
3939 grep -v '^ *+' conftest.er1 >conftest.err
3940 rm -f conftest.er1
3941 cat conftest.err >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } &&
3944 { ac_try='test -z "$ac_c_werror_flag"
3945 || test ! -s conftest.err'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003950 (exit $ac_status); }; } &&
3951 { ac_try='test -s conftest$ac_exeext'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3957 lt_cv_cc_needs_belf=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003958else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003959 echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962lt_cv_cc_needs_belf=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003963fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003964rm -f conftest.err conftest.$ac_objext \
3965 conftest$ac_exeext conftest.$ac_ext
3966 ac_ext=c
3967ac_cpp='$CPP $CPPFLAGS'
3968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003972fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003973echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3974echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3975 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3976 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3977 CFLAGS="$SAVE_CFLAGS"
3978 fi
3979 ;;
3980sparc*-*solaris*)
3981 # Find out which ABI we are using.
3982 echo 'int i;' > conftest.$ac_ext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; then
3988 case `/usr/bin/file conftest.o` in
3989 *64-bit*)
3990 case $lt_cv_prog_gnu_ld in
3991 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3992 *) LD="${LD-ld} -64" ;;
3993 esac
3994 ;;
3995 esac
3996 fi
3997 rm -rf conftest*
3998 ;;
3999
4000
4001esac
4002
4003need_locks="$enable_libtool_lock"
4004
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004005
4006ac_ext=c
4007ac_cpp='$CPP $CPPFLAGS'
4008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4012echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4013# On Suns, sometimes $CPP names a directory.
4014if test -n "$CPP" && test -d "$CPP"; then
4015 CPP=
4016fi
4017if test -z "$CPP"; then
4018 if test "${ac_cv_prog_CPP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 # Double quotes because CPP needs to be expanded
4022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4023 do
4024 ac_preproc_ok=false
4025for ac_c_preproc_warn_flag in '' yes
4026do
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039#ifdef __STDC__
4040# include <limits.h>
4041#else
4042# include <assert.h>
4043#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004044 Syntax error
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004045_ACEOF
4046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } >/dev/null; then
4054 if test -s conftest.err; then
4055 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004057 else
4058 ac_cpp_err=
4059 fi
4060else
4061 ac_cpp_err=yes
4062fi
4063if test -z "$ac_cpp_err"; then
4064 :
4065else
4066 echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
4068
4069 # Broken: fails on valid input.
4070continue
4071fi
4072rm -f conftest.err conftest.$ac_ext
4073
4074 # OK, works on sane cases. Now check whether non-existent headers
4075 # can be detected and how.
4076 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082#include <ac_nonexistent.h>
4083_ACEOF
4084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null; then
4092 if test -s conftest.err; then
4093 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004095 else
4096 ac_cpp_err=
4097 fi
4098else
4099 ac_cpp_err=yes
4100fi
4101if test -z "$ac_cpp_err"; then
4102 # Broken: success on invalid input.
4103continue
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 # Passes both tests.
4109ac_preproc_ok=:
4110break
4111fi
4112rm -f conftest.err conftest.$ac_ext
4113
4114done
4115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116rm -f conftest.err conftest.$ac_ext
4117if $ac_preproc_ok; then
4118 break
4119fi
4120
4121 done
4122 ac_cv_prog_CPP=$CPP
4123
4124fi
4125 CPP=$ac_cv_prog_CPP
4126else
4127 ac_cv_prog_CPP=$CPP
4128fi
4129echo "$as_me:$LINENO: result: $CPP" >&5
4130echo "${ECHO_T}$CPP" >&6
4131ac_preproc_ok=false
4132for ac_c_preproc_warn_flag in '' yes
4133do
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146#ifdef __STDC__
4147# include <limits.h>
4148#else
4149# include <assert.h>
4150#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004151 Syntax error
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004152_ACEOF
4153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } >/dev/null; then
4161 if test -s conftest.err; then
4162 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004164 else
4165 ac_cpp_err=
4166 fi
4167else
4168 ac_cpp_err=yes
4169fi
4170if test -z "$ac_cpp_err"; then
4171 :
4172else
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
4175
4176 # Broken: fails on valid input.
4177continue
4178fi
4179rm -f conftest.err conftest.$ac_ext
4180
4181 # OK, works on sane cases. Now check whether non-existent headers
4182 # can be detected and how.
4183 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h. */
4189#include <ac_nonexistent.h>
4190_ACEOF
4191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev/null; then
4199 if test -s conftest.err; then
4200 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004202 else
4203 ac_cpp_err=
4204 fi
4205else
4206 ac_cpp_err=yes
4207fi
4208if test -z "$ac_cpp_err"; then
4209 # Broken: success on invalid input.
4210continue
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 # Passes both tests.
4216ac_preproc_ok=:
4217break
4218fi
4219rm -f conftest.err conftest.$ac_ext
4220
4221done
4222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223rm -f conftest.err conftest.$ac_ext
4224if $ac_preproc_ok; then
4225 :
4226else
4227 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4228See \`config.log' for more details." >&5
4229echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4230See \`config.log' for more details." >&2;}
4231 { (exit 1); exit 1; }; }
4232fi
4233
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004241echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4242echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4243if test "${ac_cv_header_stdc+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252#include <stdlib.h>
4253#include <stdarg.h>
4254#include <string.h>
4255#include <float.h>
4256
4257int
4258main ()
4259{
4260
4261 ;
4262 return 0;
4263}
4264_ACEOF
4265rm -f conftest.$ac_objext
4266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004267 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004268 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004274 { ac_try='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_header_stdc=yes
4288else
4289 echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292ac_cv_header_stdc=no
4293fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004295
4296if test $ac_cv_header_stdc = yes; then
4297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4298 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004299/* confdefs.h. */
4300_ACEOF
4301cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */
4304#include <string.h>
4305
4306_ACEOF
4307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "memchr" >/dev/null 2>&1; then
4309 :
4310else
4311 ac_cv_header_stdc=no
4312fi
4313rm -f conftest*
4314
4315fi
4316
4317if test $ac_cv_header_stdc = yes; then
4318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
4325#include <stdlib.h>
4326
4327_ACEOF
4328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "free" >/dev/null 2>&1; then
4330 :
4331else
4332 ac_cv_header_stdc=no
4333fi
4334rm -f conftest*
4335
4336fi
4337
4338if test $ac_cv_header_stdc = yes; then
4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340 if test "$cross_compiling" = yes; then
4341 :
4342else
4343 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004344/* confdefs.h. */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h. */
4349#include <ctype.h>
4350#if ((' ' & 0x0FF) == 0x020)
4351# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4352# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4353#else
4354# define ISLOWER(c) \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004355 (('a' <= (c) && (c) <= 'i') \
4356 || ('j' <= (c) && (c) <= 'r') \
4357 || ('s' <= (c) && (c) <= 'z'))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004358# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4359#endif
4360
4361#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4362int
4363main ()
4364{
4365 int i;
4366 for (i = 0; i < 256; i++)
4367 if (XOR (islower (i), ISLOWER (i))
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004368 || toupper (i) != TOUPPER (i))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004369 exit(2);
4370 exit (0);
4371}
4372_ACEOF
4373rm -f conftest$ac_exeext
4374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4375 (eval $ac_link) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 :
4385else
4386 echo "$as_me: program exited with status $ac_status" >&5
4387echo "$as_me: failed program was:" >&5
4388sed 's/^/| /' conftest.$ac_ext >&5
4389
4390( exit $ac_status )
4391ac_cv_header_stdc=no
4392fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004394fi
4395fi
4396fi
4397echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4398echo "${ECHO_T}$ac_cv_header_stdc" >&6
4399if test $ac_cv_header_stdc = yes; then
4400
4401cat >>confdefs.h <<\_ACEOF
4402#define STDC_HEADERS 1
4403_ACEOF
4404
4405fi
4406
4407# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417for 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 -06004418 inttypes.h stdint.h unistd.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004419do
4420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4421echo "$as_me:$LINENO: checking for $ac_header" >&5
4422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4423if eval "test \"\${$as_ac_Header+set}\" = set"; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004427/* confdefs.h. */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h. */
4432$ac_includes_default
4433
4434#include <$ac_header>
4435_ACEOF
4436rm -f conftest.$ac_objext
4437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004438 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004439 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004440 grep -v '^ *+' conftest.er1 >conftest.err
4441 rm -f conftest.er1
4442 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004445 { ac_try='test -z "$ac_c_werror_flag"
4446 || test ! -s conftest.err'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 eval "$as_ac_Header=yes"
4459else
4460 echo "$as_me: failed program was:" >&5
4461sed 's/^/| /' conftest.$ac_ext >&5
4462
4463eval "$as_ac_Header=no"
4464fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004466fi
4467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4469if test `eval echo '${'$as_ac_Header'}'` = yes; then
4470 cat >>confdefs.h <<_ACEOF
4471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4472_ACEOF
4473
4474fi
4475
4476done
4477
4478
4479
4480for ac_header in dlfcn.h
4481do
4482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4483if eval "test \"\${$as_ac_Header+set}\" = set"; then
4484 echo "$as_me:$LINENO: checking for $ac_header" >&5
4485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4486if eval "test \"\${$as_ac_Header+set}\" = set"; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488fi
4489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4491else
4492 # Is the header compilable?
4493echo "$as_me:$LINENO: checking $ac_header usability" >&5
4494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4495cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004496/* confdefs.h. */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h. */
4501$ac_includes_default
4502#include <$ac_header>
4503_ACEOF
4504rm -f conftest.$ac_objext
4505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004506 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004507 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004513 { ac_try='test -z "$ac_c_werror_flag"
4514 || test ! -s conftest.err'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; } &&
4520 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_header_compiler=yes
4527else
4528 echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
4531ac_header_compiler=no
4532fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4535echo "${ECHO_T}$ac_header_compiler" >&6
4536
4537# Is the header present?
4538echo "$as_me:$LINENO: checking $ac_header presence" >&5
4539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4540cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004541/* confdefs.h. */
4542_ACEOF
4543cat confdefs.h >>conftest.$ac_ext
4544cat >>conftest.$ac_ext <<_ACEOF
4545/* end confdefs.h. */
4546#include <$ac_header>
4547_ACEOF
4548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } >/dev/null; then
4556 if test -s conftest.err; then
4557 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004559 else
4560 ac_cpp_err=
4561 fi
4562else
4563 ac_cpp_err=yes
4564fi
4565if test -z "$ac_cpp_err"; then
4566 ac_header_preproc=yes
4567else
4568 echo "$as_me: failed program was:" >&5
4569sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 ac_header_preproc=no
4572fi
4573rm -f conftest.err conftest.$ac_ext
4574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4575echo "${ECHO_T}$ac_header_preproc" >&6
4576
4577# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4579 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4583echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4584 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004585 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004586 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4590echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4592echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4594echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4598echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004599 (
4600 cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004601## ------------------------------------------------------ ##
4602## Report this to png-mng-implement@lists.sourceforge.net ##
4603## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004604_ASBOX
4605 ) |
4606 sed "s/^/$as_me: WARNING: /" >&2
4607 ;;
4608esac
4609echo "$as_me:$LINENO: checking for $ac_header" >&5
4610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4611if eval "test \"\${$as_ac_Header+set}\" = set"; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004614 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004615fi
4616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4618
4619fi
4620if test `eval echo '${'$as_ac_Header'}'` = yes; then
4621 cat >>confdefs.h <<_ACEOF
4622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4623_ACEOF
4624
4625fi
4626
4627done
4628
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004629ac_ext=cc
4630ac_cpp='$CXXCPP $CPPFLAGS'
4631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4634if test -n "$ac_tool_prefix"; then
4635 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4636 do
4637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4638set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4639echo "$as_me:$LINENO: checking for $ac_word" >&5
4640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641if test "${ac_cv_prog_CXX+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004644 if test -n "$CXX"; then
4645 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658done
4659done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004660
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004661fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004662fi
4663CXX=$ac_cv_prog_CXX
4664if test -n "$CXX"; then
4665 echo "$as_me:$LINENO: result: $CXX" >&5
4666echo "${ECHO_T}$CXX" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004667else
4668 echo "$as_me:$LINENO: result: no" >&5
4669echo "${ECHO_T}no" >&6
4670fi
4671
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004672 test -n "$CXX" && break
4673 done
4674fi
4675if test -z "$CXX"; then
4676 ac_ct_CXX=$CXX
4677 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4678do
4679 # Extract the first word of "$ac_prog", so it can be a program name with args.
4680set dummy $ac_prog; ac_word=$2
4681echo "$as_me:$LINENO: checking for $ac_word" >&5
4682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4683if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004686 if test -n "$ac_ct_CXX"; then
4687 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696 ac_cv_prog_ac_ct_CXX="$ac_prog"
4697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700done
4701done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004702
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004703fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004704fi
4705ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4706if test -n "$ac_ct_CXX"; then
4707 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4708echo "${ECHO_T}$ac_ct_CXX" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004709else
4710 echo "$as_me:$LINENO: result: no" >&5
4711echo "${ECHO_T}no" >&6
4712fi
4713
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004714 test -n "$ac_ct_CXX" && break
4715done
4716test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4717
4718 CXX=$ac_ct_CXX
4719fi
4720
4721
4722# Provide some information about the compiler.
4723echo "$as_me:$LINENO:" \
4724 "checking for C++ compiler version" >&5
4725ac_compiler=`set X $ac_compile; echo $2`
4726{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4727 (eval $ac_compiler --version </dev/null >&5) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }
4731{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4732 (eval $ac_compiler -v </dev/null >&5) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }
4736{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4737 (eval $ac_compiler -V </dev/null >&5) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }
4741
4742echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4743echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4744if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746else
4747 cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h. */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h. */
4753
4754int
4755main ()
4756{
4757#ifndef __GNUC__
4758 choke me
4759#endif
4760
4761 ;
4762 return 0;
4763}
4764_ACEOF
4765rm -f conftest.$ac_objext
4766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_cxx_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 (eval $ac_try) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_compiler_gnu=yes
4788else
4789 echo "$as_me: failed program was:" >&5
4790sed 's/^/| /' conftest.$ac_ext >&5
4791
4792ac_compiler_gnu=no
4793fi
4794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4796
4797fi
4798echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4799echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4800GXX=`test $ac_compiler_gnu = yes && echo yes`
4801ac_test_CXXFLAGS=${CXXFLAGS+set}
4802ac_save_CXXFLAGS=$CXXFLAGS
4803CXXFLAGS="-g"
4804echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4805echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4806if test "${ac_cv_prog_cxx_g+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809 cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h. */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h. */
4815
4816int
4817main ()
4818{
4819
4820 ;
4821 return 0;
4822}
4823_ACEOF
4824rm -f conftest.$ac_objext
4825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826 (eval $ac_compile) 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try='test -z "$ac_cxx_werror_flag"
4834 || test ! -s conftest.err'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 (eval $ac_try) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; } &&
4840 { ac_try='test -s conftest.$ac_objext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 ac_cv_prog_cxx_g=yes
4847else
4848 echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851ac_cv_prog_cxx_g=no
4852fi
4853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854fi
4855echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4856echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4857if test "$ac_test_CXXFLAGS" = set; then
4858 CXXFLAGS=$ac_save_CXXFLAGS
4859elif test $ac_cv_prog_cxx_g = yes; then
4860 if test "$GXX" = yes; then
4861 CXXFLAGS="-g -O2"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004862 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004863 CXXFLAGS="-g"
4864 fi
4865else
4866 if test "$GXX" = yes; then
4867 CXXFLAGS="-O2"
4868 else
4869 CXXFLAGS=
4870 fi
4871fi
4872for ac_declaration in \
4873 '' \
4874 'extern "C" void std::exit (int) throw (); using std::exit;' \
4875 'extern "C" void std::exit (int); using std::exit;' \
4876 'extern "C" void exit (int) throw ();' \
4877 'extern "C" void exit (int);' \
4878 'void exit (int);'
4879do
4880 cat >conftest.$ac_ext <<_ACEOF
4881/* confdefs.h. */
4882_ACEOF
4883cat confdefs.h >>conftest.$ac_ext
4884cat >>conftest.$ac_ext <<_ACEOF
4885/* end confdefs.h. */
4886$ac_declaration
4887#include <stdlib.h>
4888int
4889main ()
4890{
4891exit (42);
4892 ;
4893 return 0;
4894}
4895_ACEOF
4896rm -f conftest.$ac_objext
4897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -z "$ac_cxx_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 :
4919else
4920 echo "$as_me: failed program was:" >&5
4921sed 's/^/| /' conftest.$ac_ext >&5
4922
4923continue
4924fi
4925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4926 cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h. */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h. */
4932$ac_declaration
4933int
4934main ()
4935{
4936exit (42);
4937 ;
4938 return 0;
4939}
4940_ACEOF
4941rm -f conftest.$ac_objext
4942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943 (eval $ac_compile) 2>conftest.er1
4944 ac_status=$?
4945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try='test -z "$ac_cxx_werror_flag"
4951 || test ! -s conftest.err'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; } &&
4957 { ac_try='test -s conftest.$ac_objext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 break
4964else
4965 echo "$as_me: failed program was:" >&5
4966sed 's/^/| /' conftest.$ac_ext >&5
4967
4968fi
4969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4970done
4971rm -f conftest*
4972if test -n "$ac_declaration"; then
4973 echo '#ifdef __cplusplus' >>confdefs.h
4974 echo $ac_declaration >>confdefs.h
4975 echo '#endif' >>confdefs.h
4976fi
4977
4978ac_ext=cc
4979ac_cpp='$CXXCPP $CPPFLAGS'
4980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4983
4984depcc="$CXX" am_compiler_list=
4985
4986echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4987echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4988if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990else
4991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4992 # We make a subdir and do the tests there. Otherwise we can end up
4993 # making bogus files that we don't know about and never remove. For
4994 # instance it was reported that on HP-UX the gcc test will end up
4995 # making a dummy file named `D' -- because `-MD' means `put the output
4996 # in D'.
4997 mkdir conftest.dir
4998 # Copy depcomp to subdir because otherwise we won't find it if we're
4999 # using a relative directory.
5000 cp "$am_depcomp" conftest.dir
5001 cd conftest.dir
5002 # We will build objects and dependencies in a subdirectory because
5003 # it helps to detect inapplicable dependency modes. For instance
5004 # both Tru64's cc and ICC support -MD to output dependencies as a
5005 # side effect of compilation, but ICC will put the dependencies in
5006 # the current directory while Tru64 will put them in the object
5007 # directory.
5008 mkdir sub
5009
5010 am_cv_CXX_dependencies_compiler_type=none
5011 if test "$am_compiler_list" = ""; then
5012 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5013 fi
5014 for depmode in $am_compiler_list; do
5015 # Setup a source with many dependencies, because some compilers
5016 # like to wrap large dependency lists on column 80 (with \), and
5017 # we should not choose a depcomp mode which is confused by this.
5018 #
5019 # We need to recreate these files for each test, as the compiler may
5020 # overwrite some of them when testing with obscure command lines.
5021 # This happens at least with the AIX C compiler.
5022 : > sub/conftest.c
5023 for i in 1 2 3 4 5 6; do
5024 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5025 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5026 # Solaris 8's {/usr,}/bin/sh.
5027 touch sub/conftst$i.h
5028 done
5029 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5030
5031 case $depmode in
5032 nosideeffect)
5033 # after this tag, mechanisms are not by side-effect, so they'll
5034 # only be used when explicitly requested
5035 if test "x$enable_dependency_tracking" = xyes; then
5036 continue
5037 else
5038 break
5039 fi
5040 ;;
5041 none) break ;;
5042 esac
5043 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5044 # mode. It turns out that the SunPro C++ compiler does not properly
5045 # handle `-M -o', and we need to detect this.
5046 if depmode=$depmode \
5047 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5048 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5049 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5050 >/dev/null 2>conftest.err &&
5051 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5052 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5053 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5054 # icc doesn't choke on unknown options, it will just issue warnings
5055 # or remarks (even with -Werror). So we grep stderr for any message
5056 # that says an option was ignored or not supported.
5057 # When given -MP, icc 7.0 and 7.1 complain thusly:
5058 # icc: Command line warning: ignoring option '-M'; no argument required
5059 # The diagnosis changed in icc 8.0:
5060 # icc: Command line remark: option '-MP' not supported
5061 if (grep 'ignoring option' conftest.err ||
5062 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5063 am_cv_CXX_dependencies_compiler_type=$depmode
5064 break
5065 fi
5066 fi
5067 done
5068
5069 cd ..
5070 rm -rf conftest.dir
5071else
5072 am_cv_CXX_dependencies_compiler_type=none
5073fi
5074
5075fi
5076echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5077echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5078CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5079
5080
5081
5082if
5083 test "x$enable_dependency_tracking" != xno \
5084 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5085 am__fastdepCXX_TRUE=
5086 am__fastdepCXX_FALSE='#'
5087else
5088 am__fastdepCXX_TRUE='#'
5089 am__fastdepCXX_FALSE=
5090fi
5091
5092
5093
5094
5095if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5096 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5097 (test "X$CXX" != "Xg++"))) ; then
5098 ac_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
5103echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5104echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5105if test -z "$CXXCPP"; then
5106 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109 # Double quotes because CXXCPP needs to be expanded
5110 for CXXCPP in "$CXX -E" "/lib/cpp"
5111 do
5112 ac_preproc_ok=false
5113for ac_cxx_preproc_warn_flag in '' yes
5114do
5115 # Use a header file that comes with gcc, so configuring glibc
5116 # with a fresh cross-compiler works.
5117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5118 # <limits.h> exists even on freestanding compilers.
5119 # On the NeXT, cc -E runs the code through the compiler's parser,
5120 # not just through cpp. "Syntax error" is here to catch this case.
5121 cat >conftest.$ac_ext <<_ACEOF
5122/* confdefs.h. */
5123_ACEOF
5124cat confdefs.h >>conftest.$ac_ext
5125cat >>conftest.$ac_ext <<_ACEOF
5126/* end confdefs.h. */
5127#ifdef __STDC__
5128# include <limits.h>
5129#else
5130# include <assert.h>
5131#endif
5132 Syntax error
5133_ACEOF
5134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev/null; then
5142 if test -s conftest.err; then
5143 ac_cpp_err=$ac_cxx_preproc_warn_flag
5144 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5145 else
5146 ac_cpp_err=
5147 fi
5148else
5149 ac_cpp_err=yes
5150fi
5151if test -z "$ac_cpp_err"; then
5152 :
5153else
5154 echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 # Broken: fails on valid input.
5158continue
5159fi
5160rm -f conftest.err conftest.$ac_ext
5161
5162 # OK, works on sane cases. Now check whether non-existent headers
5163 # can be detected and how.
5164 cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h. */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h. */
5170#include <ac_nonexistent.h>
5171_ACEOF
5172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } >/dev/null; then
5180 if test -s conftest.err; then
5181 ac_cpp_err=$ac_cxx_preproc_warn_flag
5182 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5183 else
5184 ac_cpp_err=
5185 fi
5186else
5187 ac_cpp_err=yes
5188fi
5189if test -z "$ac_cpp_err"; then
5190 # Broken: success on invalid input.
5191continue
5192else
5193 echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196 # Passes both tests.
5197ac_preproc_ok=:
5198break
5199fi
5200rm -f conftest.err conftest.$ac_ext
5201
5202done
5203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204rm -f conftest.err conftest.$ac_ext
5205if $ac_preproc_ok; then
5206 break
5207fi
5208
5209 done
5210 ac_cv_prog_CXXCPP=$CXXCPP
5211
5212fi
5213 CXXCPP=$ac_cv_prog_CXXCPP
5214else
5215 ac_cv_prog_CXXCPP=$CXXCPP
5216fi
5217echo "$as_me:$LINENO: result: $CXXCPP" >&5
5218echo "${ECHO_T}$CXXCPP" >&6
5219ac_preproc_ok=false
5220for ac_cxx_preproc_warn_flag in '' yes
5221do
5222 # Use a header file that comes with gcc, so configuring glibc
5223 # with a fresh cross-compiler works.
5224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 # <limits.h> exists even on freestanding compilers.
5226 # On the NeXT, cc -E runs the code through the compiler's parser,
5227 # not just through cpp. "Syntax error" is here to catch this case.
5228 cat >conftest.$ac_ext <<_ACEOF
5229/* confdefs.h. */
5230_ACEOF
5231cat confdefs.h >>conftest.$ac_ext
5232cat >>conftest.$ac_ext <<_ACEOF
5233/* end confdefs.h. */
5234#ifdef __STDC__
5235# include <limits.h>
5236#else
5237# include <assert.h>
5238#endif
5239 Syntax error
5240_ACEOF
5241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } >/dev/null; then
5249 if test -s conftest.err; then
5250 ac_cpp_err=$ac_cxx_preproc_warn_flag
5251 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5252 else
5253 ac_cpp_err=
5254 fi
5255else
5256 ac_cpp_err=yes
5257fi
5258if test -z "$ac_cpp_err"; then
5259 :
5260else
5261 echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264 # Broken: fails on valid input.
5265continue
5266fi
5267rm -f conftest.err conftest.$ac_ext
5268
5269 # OK, works on sane cases. Now check whether non-existent headers
5270 # can be detected and how.
5271 cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h. */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h. */
5277#include <ac_nonexistent.h>
5278_ACEOF
5279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } >/dev/null; then
5287 if test -s conftest.err; then
5288 ac_cpp_err=$ac_cxx_preproc_warn_flag
5289 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5290 else
5291 ac_cpp_err=
5292 fi
5293else
5294 ac_cpp_err=yes
5295fi
5296if test -z "$ac_cpp_err"; then
5297 # Broken: success on invalid input.
5298continue
5299else
5300 echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
5303 # Passes both tests.
5304ac_preproc_ok=:
5305break
5306fi
5307rm -f conftest.err conftest.$ac_ext
5308
5309done
5310# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5311rm -f conftest.err conftest.$ac_ext
5312if $ac_preproc_ok; then
5313 :
5314else
5315 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5316See \`config.log' for more details." >&5
5317echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5318See \`config.log' for more details." >&2;}
5319 { (exit 1); exit 1; }; }
5320fi
5321
5322ac_ext=cc
5323ac_cpp='$CXXCPP $CPPFLAGS'
5324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5327
5328fi
5329
5330
5331ac_ext=f
5332ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5333ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5335if test -n "$ac_tool_prefix"; then
5336 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5337 do
5338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5340echo "$as_me:$LINENO: checking for $ac_word" >&5
5341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342if test "${ac_cv_prog_F77+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345 if test -n "$F77"; then
5346 ac_cv_prog_F77="$F77" # Let the user override the test.
5347else
5348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359done
5360done
5361
5362fi
5363fi
5364F77=$ac_cv_prog_F77
5365if test -n "$F77"; then
5366 echo "$as_me:$LINENO: result: $F77" >&5
5367echo "${ECHO_T}$F77" >&6
5368else
5369 echo "$as_me:$LINENO: result: no" >&5
5370echo "${ECHO_T}no" >&6
5371fi
5372
5373 test -n "$F77" && break
5374 done
5375fi
5376if test -z "$F77"; then
5377 ac_ct_F77=$F77
5378 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5379do
5380 # Extract the first word of "$ac_prog", so it can be a program name with args.
5381set dummy $ac_prog; ac_word=$2
5382echo "$as_me:$LINENO: checking for $ac_word" >&5
5383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 if test -n "$ac_ct_F77"; then
5388 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_ac_ct_F77="$ac_prog"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402done
5403
5404fi
5405fi
5406ac_ct_F77=$ac_cv_prog_ac_ct_F77
5407if test -n "$ac_ct_F77"; then
5408 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5409echo "${ECHO_T}$ac_ct_F77" >&6
5410else
5411 echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
5413fi
5414
5415 test -n "$ac_ct_F77" && break
5416done
5417
5418 F77=$ac_ct_F77
5419fi
5420
5421
5422# Provide some information about the compiler.
5423echo "$as_me:5423:" \
5424 "checking for Fortran 77 compiler version" >&5
5425ac_compiler=`set X $ac_compile; echo $2`
5426{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5427 (eval $ac_compiler --version </dev/null >&5) 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }
5431{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5432 (eval $ac_compiler -v </dev/null >&5) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }
5436{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5437 (eval $ac_compiler -V </dev/null >&5) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }
5441rm -f a.out
5442
5443# If we don't use `.F' as extension, the preprocessor is not run on the
5444# input file. (Note that this only needs to work for GNU compilers.)
5445ac_save_ext=$ac_ext
5446ac_ext=F
5447echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5448echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5449if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452 cat >conftest.$ac_ext <<_ACEOF
5453 program main
5454#ifndef __GNUC__
5455 choke me
5456#endif
5457
5458 end
5459_ACEOF
5460rm -f conftest.$ac_objext
5461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -z "$ac_f77_werror_flag"
5470 || test ! -s conftest.err'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; } &&
5476 { ac_try='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 ac_compiler_gnu=yes
5483else
5484 echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487ac_compiler_gnu=no
5488fi
5489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5490ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5491
5492fi
5493echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5494echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5495ac_ext=$ac_save_ext
5496ac_test_FFLAGS=${FFLAGS+set}
5497ac_save_FFLAGS=$FFLAGS
5498FFLAGS=
5499echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5500echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5501if test "${ac_cv_prog_f77_g+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504 FFLAGS=-g
5505cat >conftest.$ac_ext <<_ACEOF
5506 program main
5507
5508 end
5509_ACEOF
5510rm -f conftest.$ac_objext
5511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5512 (eval $ac_compile) 2>conftest.er1
5513 ac_status=$?
5514 grep -v '^ *+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try='test -z "$ac_f77_werror_flag"
5520 || test ! -s conftest.err'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 (eval $ac_try) 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; } &&
5526 { ac_try='test -s conftest.$ac_objext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_cv_prog_f77_g=yes
5533else
5534 echo "$as_me: failed program was:" >&5
5535sed 's/^/| /' conftest.$ac_ext >&5
5536
5537ac_cv_prog_f77_g=no
5538fi
5539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5540
5541fi
5542echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5543echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5544if test "$ac_test_FFLAGS" = set; then
5545 FFLAGS=$ac_save_FFLAGS
5546elif test $ac_cv_prog_f77_g = yes; then
5547 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5548 FFLAGS="-g -O2"
5549 else
5550 FFLAGS="-g"
5551 fi
5552else
5553 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5554 FFLAGS="-O2"
5555 else
5556 FFLAGS=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005557 fi
5558fi
5559
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005560G77=`test $ac_compiler_gnu = yes && echo yes`
5561ac_ext=c
5562ac_cpp='$CPP $CPPFLAGS'
5563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566
5567
5568
5569# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5570
5571# find the maximum length of command line arguments
5572echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5573echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5574if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577 i=0
5578 teststring="ABCD"
5579
5580 case $build_os in
5581 msdosdjgpp*)
5582 # On DJGPP, this test can blow up pretty badly due to problems in libc
5583 # (any single argument exceeding 2000 bytes causes a buffer overrun
5584 # during glob expansion). Even if it were fixed, the result of this
5585 # check would be larger than it should be.
5586 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5587 ;;
5588
5589 gnu*)
5590 # Under GNU Hurd, this test is not required because there is
5591 # no limit to the length of command line arguments.
5592 # Libtool will interpret -1 as no limit whatsoever
5593 lt_cv_sys_max_cmd_len=-1;
5594 ;;
5595
5596 cygwin* | mingw*)
5597 # On Win9x/ME, this test blows up -- it succeeds, but takes
5598 # about 5 minutes as the teststring grows exponentially.
5599 # Worse, since 9x/ME are not pre-emptively multitasking,
5600 # you end up with a "frozen" computer, even though with patience
5601 # the test eventually succeeds (with a max line length of 256k).
5602 # Instead, let's just punt: use the minimum linelength reported by
5603 # all of the supported platforms: 8192 (on NT/2K/XP).
5604 lt_cv_sys_max_cmd_len=8192;
5605 ;;
5606
5607 amigaos*)
5608 # On AmigaOS with pdksh, this test takes hours, literally.
5609 # So we just punt and use a minimum line length of 8192.
5610 lt_cv_sys_max_cmd_len=8192;
5611 ;;
5612
5613 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5614 # This has been around since 386BSD, at least. Likely further.
5615 if test -x /sbin/sysctl; then
5616 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5617 elif test -x /usr/sbin/sysctl; then
5618 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5619 else
5620 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5621 fi
5622 # And add a safety zone
5623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5625 ;;
5626
5627 interix*)
5628 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5629 lt_cv_sys_max_cmd_len=196608
5630 ;;
5631
5632 osf*)
5633 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5634 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5635 # nice to cause kernel panics so lets avoid the loop below.
5636 # First set a reasonable default.
5637 lt_cv_sys_max_cmd_len=16384
5638 #
5639 if test -x /sbin/sysconfig; then
5640 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5641 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5642 esac
5643 fi
5644 ;;
5645 sco3.2v5*)
5646 lt_cv_sys_max_cmd_len=102400
5647 ;;
5648 sysv5* | sco5v6* | sysv4.2uw2*)
5649 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5650 if test -n "$kargmax"; then
5651 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5652 else
5653 lt_cv_sys_max_cmd_len=32768
5654 fi
5655 ;;
5656 *)
5657 # If test is not a shell built-in, we'll probably end up computing a
5658 # maximum length that is only half of the actual maximum length, but
5659 # we can't tell.
5660 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5661 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5662 = "XX$teststring") >/dev/null 2>&1 &&
5663 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5664 lt_cv_sys_max_cmd_len=$new_result &&
5665 test $i != 17 # 1/2 MB should be enough
5666 do
5667 i=`expr $i + 1`
5668 teststring=$teststring$teststring
5669 done
5670 teststring=
5671 # Add a significant safety factor because C++ compilers can tack on massive
5672 # amounts of additional arguments before passing them to the linker.
5673 # It appears as though 1/2 is a usable value.
5674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5675 ;;
5676 esac
5677
5678fi
5679
5680if test -n $lt_cv_sys_max_cmd_len ; then
5681 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5682echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5683else
5684 echo "$as_me:$LINENO: result: none" >&5
5685echo "${ECHO_T}none" >&6
5686fi
5687
5688
5689
5690
5691# Check for command to grab the raw symbol name followed by C symbol from nm.
5692echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5693echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5694if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697
5698# These are sane defaults that work on at least a few old systems.
5699# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5700
5701# Character class describing NM global symbol codes.
5702symcode='[BCDEGRST]'
5703
5704# Regexp to match symbols that can be accessed directly from C.
5705sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5706
5707# Transform an extracted symbol line into a proper C declaration
5708lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5709
5710# Transform an extracted symbol line into symbol name and symbol address
5711lt_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'"
5712
5713# Define system-specific variables.
5714case $host_os in
5715aix*)
5716 symcode='[BCDT]'
5717 ;;
5718cygwin* | mingw* | pw32*)
5719 symcode='[ABCDGISTW]'
5720 ;;
5721hpux*) # Its linker distinguishes data from code symbols
5722 if test "$host_cpu" = ia64; then
5723 symcode='[ABCDEGRST]'
5724 fi
5725 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5726 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'"
5727 ;;
5728linux*)
5729 if test "$host_cpu" = ia64; then
5730 symcode='[ABCDGIRSTW]'
5731 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5732 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'"
5733 fi
5734 ;;
5735irix* | nonstopux*)
5736 symcode='[BCDEGRST]'
5737 ;;
5738osf*)
5739 symcode='[BCDEGQRST]'
5740 ;;
5741solaris*)
5742 symcode='[BDRT]'
5743 ;;
5744sco3.2v5*)
5745 symcode='[DT]'
5746 ;;
5747sysv4.2uw2*)
5748 symcode='[DT]'
5749 ;;
5750sysv5* | sco5v6* | unixware* | OpenUNIX*)
5751 symcode='[ABDT]'
5752 ;;
5753sysv4)
5754 symcode='[DFNSTU]'
5755 ;;
5756esac
5757
5758# Handle CRLF in mingw tool chain
5759opt_cr=
5760case $build_os in
5761mingw*)
5762 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5763 ;;
5764esac
5765
5766# If we're using GNU nm, then use its standard symbol codes.
5767case `$NM -V 2>&1` in
5768*GNU* | *'with BFD'*)
5769 symcode='[ABCDGIRSTW]' ;;
5770esac
5771
5772# Try without a prefix undercore, then with it.
5773for ac_symprfx in "" "_"; do
5774
5775 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5776 symxfrm="\\1 $ac_symprfx\\2 \\2"
5777
5778 # Write the raw and C identifiers.
5779 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5780
5781 # Check to see that the pipe works correctly.
5782 pipe_works=no
5783
5784 rm -f conftest*
5785 cat > conftest.$ac_ext <<EOF
5786#ifdef __cplusplus
5787extern "C" {
5788#endif
5789char nm_test_var;
5790void nm_test_func(){}
5791#ifdef __cplusplus
5792}
5793#endif
5794int main(){nm_test_var='a';nm_test_func();return(0);}
5795EOF
5796
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; then
5802 # Now try to grab the symbols.
5803 nlist=conftest.nm
5804 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5805 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && test -s "$nlist"; then
5809 # Try sorting and uniquifying the output.
5810 if sort "$nlist" | uniq > "$nlist"T; then
5811 mv -f "$nlist"T "$nlist"
5812 else
5813 rm -f "$nlist"T
5814 fi
5815
5816 # Make sure that we snagged all the symbols we need.
5817 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5818 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5819 cat <<EOF > conftest.$ac_ext
5820#ifdef __cplusplus
5821extern "C" {
5822#endif
5823
5824EOF
5825 # Now generate the symbol file.
5826 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5827
5828 cat <<EOF >> conftest.$ac_ext
5829#if defined (__STDC__) && __STDC__
5830# define lt_ptr_t void *
5831#else
5832# define lt_ptr_t char *
5833# define const
5834#endif
5835
5836/* The mapping between symbol names and symbols. */
5837const struct {
5838 const char *name;
5839 lt_ptr_t address;
5840}
5841lt_preloaded_symbols[] =
5842{
5843EOF
5844 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5845 cat <<\EOF >> conftest.$ac_ext
5846 {0, (lt_ptr_t) 0}
5847};
5848
5849#ifdef __cplusplus
5850}
5851#endif
5852EOF
5853 # Now try linking the two files.
5854 mv conftest.$ac_objext conftstm.$ac_objext
5855 lt_save_LIBS="$LIBS"
5856 lt_save_CFLAGS="$CFLAGS"
5857 LIBS="conftstm.$ac_objext"
5858 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5864 pipe_works=yes
5865 fi
5866 LIBS="$lt_save_LIBS"
5867 CFLAGS="$lt_save_CFLAGS"
5868 else
5869 echo "cannot find nm_test_func in $nlist" >&5
5870 fi
5871 else
5872 echo "cannot find nm_test_var in $nlist" >&5
5873 fi
5874 else
5875 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5876 fi
5877 else
5878 echo "$progname: failed program was:" >&5
5879 cat conftest.$ac_ext >&5
5880 fi
5881 rm -f conftest* conftst*
5882
5883 # Do not use the global_symbol_pipe unless it works.
5884 if test "$pipe_works" = yes; then
5885 break
5886 else
5887 lt_cv_sys_global_symbol_pipe=
5888 fi
5889done
5890
5891fi
5892
5893if test -z "$lt_cv_sys_global_symbol_pipe"; then
5894 lt_cv_sys_global_symbol_to_cdecl=
5895fi
5896if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5897 echo "$as_me:$LINENO: result: failed" >&5
5898echo "${ECHO_T}failed" >&6
5899else
5900 echo "$as_me:$LINENO: result: ok" >&5
5901echo "${ECHO_T}ok" >&6
5902fi
5903
5904echo "$as_me:$LINENO: checking for objdir" >&5
5905echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5906if test "${lt_cv_objdir+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
5909 rm -f .libs 2>/dev/null
5910mkdir .libs 2>/dev/null
5911if test -d .libs; then
5912 lt_cv_objdir=.libs
5913else
5914 # MS-DOS does not allow filenames that begin with a dot.
5915 lt_cv_objdir=_libs
5916fi
5917rmdir .libs 2>/dev/null
5918fi
5919echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5920echo "${ECHO_T}$lt_cv_objdir" >&6
5921objdir=$lt_cv_objdir
5922
5923
5924
5925
5926
5927case $host_os in
5928aix3*)
5929 # AIX sometimes has problems with the GCC collect2 program. For some
5930 # reason, if we set the COLLECT_NAMES environment variable, the problems
5931 # vanish in a puff of smoke.
5932 if test "X${COLLECT_NAMES+set}" != Xset; then
5933 COLLECT_NAMES=
5934 export COLLECT_NAMES
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005935 fi
5936 ;;
5937esac
5938
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005939# Sed substitution that helps us do robust quoting. It backslashifies
5940# metacharacters that are still active within double-quoted strings.
5941Xsed='sed -e 1s/^X//'
5942sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5943
5944# Same as above, but do not quote variable references.
5945double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5946
5947# Sed substitution to delay expansion of an escaped shell variable in a
5948# double_quote_subst'ed string.
5949delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5950
5951# Sed substitution to avoid accidental globbing in evaled expressions
5952no_glob_subst='s/\*/\\\*/g'
5953
5954# Constants:
5955rm="rm -f"
5956
5957# Global variables:
5958default_ofile=libtool
5959can_build_shared=yes
5960
5961# All known linkers require a `.a' archive for static linking (except MSVC,
5962# which needs '.lib').
5963libext=a
5964ltmain="$ac_aux_dir/ltmain.sh"
5965ofile="$default_ofile"
5966with_gnu_ld="$lt_cv_prog_gnu_ld"
5967
5968if test -n "$ac_tool_prefix"; then
5969 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5970set dummy ${ac_tool_prefix}ar; ac_word=$2
5971echo "$as_me:$LINENO: checking for $ac_word" >&5
5972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973if test "${ac_cv_prog_AR+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976 if test -n "$AR"; then
5977 ac_cv_prog_AR="$AR" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_AR="${ac_tool_prefix}ar"
5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990done
5991done
5992
5993fi
5994fi
5995AR=$ac_cv_prog_AR
5996if test -n "$AR"; then
5997 echo "$as_me:$LINENO: result: $AR" >&5
5998echo "${ECHO_T}$AR" >&6
5999else
6000 echo "$as_me:$LINENO: result: no" >&5
6001echo "${ECHO_T}no" >&6
6002fi
6003
6004fi
6005if test -z "$ac_cv_prog_AR"; then
6006 ac_ct_AR=$AR
6007 # Extract the first word of "ar", so it can be a program name with args.
6008set dummy ar; ac_word=$2
6009echo "$as_me:$LINENO: checking for $ac_word" >&5
6010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013else
6014 if test -n "$ac_ct_AR"; then
6015 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_ac_ct_AR="ar"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028done
6029done
6030
6031 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6032fi
6033fi
6034ac_ct_AR=$ac_cv_prog_ac_ct_AR
6035if test -n "$ac_ct_AR"; then
6036 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6037echo "${ECHO_T}$ac_ct_AR" >&6
6038else
6039 echo "$as_me:$LINENO: result: no" >&5
6040echo "${ECHO_T}no" >&6
6041fi
6042
6043 AR=$ac_ct_AR
6044else
6045 AR="$ac_cv_prog_AR"
6046fi
6047
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006048if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6050set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6051echo "$as_me:$LINENO: checking for $ac_word" >&5
6052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053if test "${ac_cv_prog_RANLIB+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056 if test -n "$RANLIB"; then
6057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070done
6071done
6072
6073fi
6074fi
6075RANLIB=$ac_cv_prog_RANLIB
6076if test -n "$RANLIB"; then
6077 echo "$as_me:$LINENO: result: $RANLIB" >&5
6078echo "${ECHO_T}$RANLIB" >&6
6079else
6080 echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
6082fi
6083
6084fi
6085if test -z "$ac_cv_prog_RANLIB"; then
6086 ac_ct_RANLIB=$RANLIB
6087 # Extract the first word of "ranlib", so it can be a program name with args.
6088set dummy ranlib; ac_word=$2
6089echo "$as_me:$LINENO: checking for $ac_word" >&5
6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6091if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 if test -n "$ac_ct_RANLIB"; then
6095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104 ac_cv_prog_ac_ct_RANLIB="ranlib"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 break 2
6107 fi
6108done
6109done
6110
6111 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6112fi
6113fi
6114ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6115if test -n "$ac_ct_RANLIB"; then
6116 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6117echo "${ECHO_T}$ac_ct_RANLIB" >&6
6118else
6119 echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6
6121fi
6122
6123 RANLIB=$ac_ct_RANLIB
6124else
6125 RANLIB="$ac_cv_prog_RANLIB"
6126fi
6127
6128if test -n "$ac_tool_prefix"; then
6129 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6130set dummy ${ac_tool_prefix}strip; ac_word=$2
6131echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6133if test "${ac_cv_prog_STRIP+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135else
6136 if test -n "$STRIP"; then
6137 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150done
6151done
6152
6153fi
6154fi
6155STRIP=$ac_cv_prog_STRIP
6156if test -n "$STRIP"; then
6157 echo "$as_me:$LINENO: result: $STRIP" >&5
6158echo "${ECHO_T}$STRIP" >&6
6159else
6160 echo "$as_me:$LINENO: result: no" >&5
6161echo "${ECHO_T}no" >&6
6162fi
6163
6164fi
6165if test -z "$ac_cv_prog_STRIP"; then
6166 ac_ct_STRIP=$STRIP
6167 # Extract the first word of "strip", so it can be a program name with args.
6168set dummy strip; ac_word=$2
6169echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6171if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174 if test -n "$ac_ct_STRIP"; then
6175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184 ac_cv_prog_ac_ct_STRIP="strip"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188done
6189done
6190
6191 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6192fi
6193fi
6194ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6195if test -n "$ac_ct_STRIP"; then
6196 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6197echo "${ECHO_T}$ac_ct_STRIP" >&6
6198else
6199 echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6
6201fi
6202
6203 STRIP=$ac_ct_STRIP
6204else
6205 STRIP="$ac_cv_prog_STRIP"
6206fi
6207
6208
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006209old_CC="$CC"
6210old_CFLAGS="$CFLAGS"
6211
6212# Set sane defaults for various variables
6213test -z "$AR" && AR=ar
6214test -z "$AR_FLAGS" && AR_FLAGS=cru
6215test -z "$AS" && AS=as
6216test -z "$CC" && CC=cc
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006217test -z "$LTCC" && LTCC=$CC
6218test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006219test -z "$DLLTOOL" && DLLTOOL=dlltool
6220test -z "$LD" && LD=ld
6221test -z "$LN_S" && LN_S="ln -s"
6222test -z "$MAGIC_CMD" && MAGIC_CMD=file
6223test -z "$NM" && NM=nm
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006224test -z "$SED" && SED=sed
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006225test -z "$OBJDUMP" && OBJDUMP=objdump
6226test -z "$RANLIB" && RANLIB=:
6227test -z "$STRIP" && STRIP=:
6228test -z "$ac_objext" && ac_objext=o
6229
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006230# Determine commands to create old-style static archives.
6231old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6232old_postinstall_cmds='chmod 644 $oldlib'
6233old_postuninstall_cmds=
6234
6235if test -n "$RANLIB"; then
6236 case $host_os in
6237 openbsd*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006238 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006239 ;;
6240 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006241 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006242 ;;
6243 esac
6244 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6245fi
6246
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006247for cc_temp in $compiler""; do
6248 case $cc_temp in
6249 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6250 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6251 \-*) ;;
6252 *) break;;
6253 esac
6254done
6255cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006256
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006257
6258# Only perform the check for file, if the check method requires it
6259case $deplibs_check_method in
6260file_magic*)
6261 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6262 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6263echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6264if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006266else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006267 case $MAGIC_CMD in
6268[\\/*] | ?:[\\/]*)
6269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6270 ;;
6271*)
6272 lt_save_MAGIC_CMD="$MAGIC_CMD"
6273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6275 for ac_dir in $ac_dummy; do
6276 IFS="$lt_save_ifs"
6277 test -z "$ac_dir" && ac_dir=.
6278 if test -f $ac_dir/${ac_tool_prefix}file; then
6279 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6280 if test -n "$file_magic_test_file"; then
6281 case $deplibs_check_method in
6282 "file_magic "*)
6283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6286 $EGREP "$file_magic_regex" > /dev/null; then
6287 :
6288 else
6289 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006290
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006291*** Warning: the command libtool uses to detect shared libraries,
6292*** $file_magic_cmd, produces output that libtool cannot recognize.
6293*** The result is that libtool may fail to recognize shared libraries
6294*** as such. This will affect the creation of libtool libraries that
6295*** depend on shared libraries, but programs linked with such libtool
6296*** libraries will work regardless of this problem. Nevertheless, you
6297*** may want to report the problem to your system manager and/or to
6298*** bug-libtool@gnu.org
6299
6300EOF
6301 fi ;;
6302 esac
6303 fi
6304 break
6305 fi
6306 done
6307 IFS="$lt_save_ifs"
6308 MAGIC_CMD="$lt_save_MAGIC_CMD"
6309 ;;
6310esac
6311fi
6312
6313MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6314if test -n "$MAGIC_CMD"; then
6315 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6316echo "${ECHO_T}$MAGIC_CMD" >&6
6317else
6318 echo "$as_me:$LINENO: result: no" >&5
6319echo "${ECHO_T}no" >&6
6320fi
6321
6322if test -z "$lt_cv_path_MAGIC_CMD"; then
6323 if test -n "$ac_tool_prefix"; then
6324 echo "$as_me:$LINENO: checking for file" >&5
6325echo $ECHO_N "checking for file... $ECHO_C" >&6
6326if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329 case $MAGIC_CMD in
6330[\\/*] | ?:[\\/]*)
6331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6332 ;;
6333*)
6334 lt_save_MAGIC_CMD="$MAGIC_CMD"
6335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6336 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6337 for ac_dir in $ac_dummy; do
6338 IFS="$lt_save_ifs"
6339 test -z "$ac_dir" && ac_dir=.
6340 if test -f $ac_dir/file; then
6341 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6342 if test -n "$file_magic_test_file"; then
6343 case $deplibs_check_method in
6344 "file_magic "*)
6345 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6347 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6348 $EGREP "$file_magic_regex" > /dev/null; then
6349 :
6350 else
6351 cat <<EOF 1>&2
6352
6353*** Warning: the command libtool uses to detect shared libraries,
6354*** $file_magic_cmd, produces output that libtool cannot recognize.
6355*** The result is that libtool may fail to recognize shared libraries
6356*** as such. This will affect the creation of libtool libraries that
6357*** depend on shared libraries, but programs linked with such libtool
6358*** libraries will work regardless of this problem. Nevertheless, you
6359*** may want to report the problem to your system manager and/or to
6360*** bug-libtool@gnu.org
6361
6362EOF
6363 fi ;;
6364 esac
6365 fi
6366 break
6367 fi
6368 done
6369 IFS="$lt_save_ifs"
6370 MAGIC_CMD="$lt_save_MAGIC_CMD"
6371 ;;
6372esac
6373fi
6374
6375MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6376if test -n "$MAGIC_CMD"; then
6377 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6378echo "${ECHO_T}$MAGIC_CMD" >&6
6379else
6380 echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
6382fi
6383
6384 else
6385 MAGIC_CMD=:
6386 fi
6387fi
6388
6389 fi
6390 ;;
6391esac
6392
6393enable_dlopen=no
6394enable_win32_dll=no
6395
6396# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6397if test "${enable_libtool_lock+set}" = set; then
6398 enableval="$enable_libtool_lock"
6399
6400fi;
6401test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006402
6403
6404# Check whether --with-pic or --without-pic was given.
6405if test "${with_pic+set}" = set; then
6406 withval="$with_pic"
6407 pic_mode="$withval"
6408else
6409 pic_mode=default
6410fi;
6411test -z "$pic_mode" && pic_mode=default
6412
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006413# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6414#
6415# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6416# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6417# calls AC_LIBTOOL_CONFIG and creates libtool.
6418#
6419echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6420echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
6421if test "x$ltmain" = "x" ; then
6422 echo "$as_me:$LINENO: result: no" >&5
6423echo "${ECHO_T}no" >&6
6424 { { echo "$as_me:$LINENO: error:
6425
6426*** [Gentoo] sanity check failed! ***
6427*** \$ltmain is not defined, please check the patch for consistency! ***
6428" >&5
6429echo "$as_me: error:
6430
6431*** [Gentoo] sanity check failed! ***
6432*** \$ltmain is not defined, please check the patch for consistency! ***
6433" >&2;}
6434 { (exit 1); exit 1; }; }
6435fi
6436gentoo_lt_version="1.5.22"
6437gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6438if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6439 echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6
6441 { { echo "$as_me:$LINENO: error:
6442
6443*** [Gentoo] sanity check failed! ***
6444*** libtool.m4 and ltmain.sh have a version mismatch! ***
6445*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6446
6447Please run:
6448
6449 libtoolize --copy --force
6450
6451if appropriate, please contact the maintainer of this
6452package (or your distribution) for help.
6453" >&5
6454echo "$as_me: error:
6455
6456*** [Gentoo] sanity check failed! ***
6457*** libtool.m4 and ltmain.sh have a version mismatch! ***
6458*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6459
6460Please run:
6461
6462 libtoolize --copy --force
6463
6464if appropriate, please contact the maintainer of this
6465package (or your distribution) for help.
6466" >&2;}
6467 { (exit 1); exit 1; }; }
6468else
6469 echo "$as_me:$LINENO: result: yes" >&5
6470echo "${ECHO_T}yes" >&6
6471fi
6472
6473
6474# Use C for the default configuration in the libtool script
6475tagname=
6476lt_save_CC="$CC"
6477ac_ext=c
6478ac_cpp='$CPP $CPPFLAGS'
6479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481ac_compiler_gnu=$ac_cv_c_compiler_gnu
6482
6483
6484# Source file extension for C test sources.
6485ac_ext=c
6486
6487# Object file extension for compiled C test sources.
6488objext=o
6489objext=$objext
6490
6491# Code to be used in simple compile tests
6492lt_simple_compile_test_code="int some_variable = 0;\n"
6493
6494# Code to be used in simple link tests
6495lt_simple_link_test_code='int main(){return(0);}\n'
6496
6497
6498# If no C compiler was specified, use CC.
6499LTCC=${LTCC-"$CC"}
6500
6501# If no C compiler flags were specified, use CFLAGS.
6502LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6503
6504# Allow CC to be a program name with arguments.
6505compiler=$CC
6506
6507
6508# save warnings/boilerplate of simple test code
6509ac_outfile=conftest.$ac_objext
6510printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6511eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6512_lt_compiler_boilerplate=`cat conftest.err`
6513$rm conftest*
6514
6515ac_outfile=conftest.$ac_objext
6516printf "$lt_simple_link_test_code" >conftest.$ac_ext
6517eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6518_lt_linker_boilerplate=`cat conftest.err`
6519$rm conftest*
6520
6521
6522
6523lt_prog_compiler_no_builtin_flag=
6524
6525if test "$GCC" = yes; then
6526 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6527
6528
6529echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6530echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6531if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006534 lt_cv_prog_compiler_rtti_exceptions=no
6535 ac_outfile=conftest.$ac_objext
6536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6537 lt_compiler_flag="-fno-rtti -fno-exceptions"
6538 # Insert the option either (1) after the last *FLAGS variable, or
6539 # (2) before a word containing "conftest.", or (3) at the end.
6540 # Note that $ac_compile itself does not contain backslashes and begins
6541 # with a dollar sign (not a hyphen), so the echo should work correctly.
6542 # The option is referenced via a variable to avoid confusing sed.
6543 lt_compile=`echo "$ac_compile" | $SED \
6544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6546 -e 's:$: $lt_compiler_flag:'`
6547 (eval echo "\"\$as_me:6547: $lt_compile\"" >&5)
6548 (eval "$lt_compile" 2>conftest.err)
6549 ac_status=$?
6550 cat conftest.err >&5
6551 echo "$as_me:6551: \$? = $ac_status" >&5
6552 if (exit $ac_status) && test -s "$ac_outfile"; then
6553 # The compiler can only warn and ignore the option if not recognized
6554 # So say no if there are warnings other than the usual output.
6555 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6558 lt_cv_prog_compiler_rtti_exceptions=yes
6559 fi
6560 fi
6561 $rm conftest*
6562
6563fi
6564echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6565echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6566
6567if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6568 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6569else
6570 :
6571fi
6572
6573fi
6574
6575lt_prog_compiler_wl=
6576lt_prog_compiler_pic=
6577lt_prog_compiler_static=
6578
6579echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6580echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006581
6582 if test "$GCC" = yes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006583 lt_prog_compiler_wl='-Wl,'
6584 lt_prog_compiler_static='-static'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006585
6586 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006587 aix*)
6588 # All AIX code is PIC.
6589 if test "$host_cpu" = ia64; then
6590 # AIX 5 now supports IA64 processor
6591 lt_prog_compiler_static='-Bstatic'
6592 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006593 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006594
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006595 amigaos*)
6596 # FIXME: we need at least 68020 code to build shared libraries, but
6597 # adding the `-m68020' flag to GCC prevents building anything better,
6598 # like `-m68040'.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006599 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006600 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006601
6602 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006603 # PIC is the default for these OSes.
6604 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006605
6606 mingw* | pw32* | os2*)
6607 # This hack is so that the source file can tell whether it is being
6608 # built for inclusion in a dll (and should export symbols for example).
6609 lt_prog_compiler_pic='-DDLL_EXPORT'
6610 ;;
6611
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006612 darwin* | rhapsody*)
6613 # PIC is the default on this platform
6614 # Common symbols not allowed in MH_DYLIB files
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006615 lt_prog_compiler_pic='-fno-common'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006616 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006617
6618 interix3*)
6619 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6620 # Instead, we relocate shared libraries at runtime.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006621 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006622
6623 msdosdjgpp*)
6624 # Just because we use GCC doesn't mean we suddenly get shared libraries
6625 # on systems that don't support them.
6626 lt_prog_compiler_can_build_shared=no
6627 enable_shared=no
6628 ;;
6629
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006630 sysv4*MP*)
6631 if test -d /usr/nec; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006632 lt_prog_compiler_pic=-Kconform_pic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006633 fi
6634 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006635
6636 hpux*)
6637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6638 # not for PA HP-UX.
6639 case $host_cpu in
6640 hppa*64*|ia64*)
6641 # +Z the default
6642 ;;
6643 *)
6644 lt_prog_compiler_pic='-fPIC'
6645 ;;
6646 esac
6647 ;;
6648
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006649 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006650 lt_prog_compiler_pic='-fPIC'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006651 ;;
6652 esac
6653 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006654 # PORTME Check for flag to pass linker flags through the system compiler.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006655 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006656 aix*)
6657 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006658 if test "$host_cpu" = ia64; then
6659 # AIX 5 now supports IA64 processor
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006660 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006661 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006662 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006663 fi
6664 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006665 darwin*)
6666 # PIC is the default on this platform
6667 # Common symbols not allowed in MH_DYLIB files
6668 case $cc_basename in
6669 xlc*)
6670 lt_prog_compiler_pic='-qnocommon'
6671 lt_prog_compiler_wl='-Wl,'
6672 ;;
6673 esac
6674 ;;
6675
6676 mingw* | pw32* | os2*)
6677 # This hack is so that the source file can tell whether it is being
6678 # built for inclusion in a dll (and should export symbols for example).
6679 lt_prog_compiler_pic='-DDLL_EXPORT'
6680 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006681
6682 hpux9* | hpux10* | hpux11*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006683 lt_prog_compiler_wl='-Wl,'
6684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6685 # not for PA HP-UX.
6686 case $host_cpu in
6687 hppa*64*|ia64*)
6688 # +Z the default
6689 ;;
6690 *)
6691 lt_prog_compiler_pic='+Z'
6692 ;;
6693 esac
6694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6695 lt_prog_compiler_static='${wl}-a ${wl}archive'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006696 ;;
6697
6698 irix5* | irix6* | nonstopux*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006699 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006700 # PIC (with -KPIC) is the default.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006701 lt_prog_compiler_static='-non_shared'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006702 ;;
6703
6704 newsos6)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006705 lt_prog_compiler_pic='-KPIC'
6706 lt_prog_compiler_static='-Bstatic'
6707 ;;
6708
6709 linux*)
6710 case $cc_basename in
6711 icc* | ecc*)
6712 lt_prog_compiler_wl='-Wl,'
6713 lt_prog_compiler_pic='-KPIC'
6714 lt_prog_compiler_static='-static'
6715 ;;
6716 pgcc* | pgf77* | pgf90* | pgf95*)
6717 # Portland Group compilers (*not* the Pentium gcc compiler,
6718 # which looks to be a dead project)
6719 lt_prog_compiler_wl='-Wl,'
6720 lt_prog_compiler_pic='-fpic'
6721 lt_prog_compiler_static='-Bstatic'
6722 ;;
6723 ccc*)
6724 lt_prog_compiler_wl='-Wl,'
6725 # All Alpha code is PIC.
6726 lt_prog_compiler_static='-non_shared'
6727 ;;
6728 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006729 ;;
6730
6731 osf3* | osf4* | osf5*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006732 lt_prog_compiler_wl='-Wl,'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006733 # All OSF/1 code is PIC.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006734 lt_prog_compiler_static='-non_shared'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006735 ;;
6736
6737 solaris*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006738 lt_prog_compiler_pic='-KPIC'
6739 lt_prog_compiler_static='-Bstatic'
6740 case $cc_basename in
6741 f77* | f90* | f95*)
6742 lt_prog_compiler_wl='-Qoption ld ';;
6743 *)
6744 lt_prog_compiler_wl='-Wl,';;
6745 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006746 ;;
6747
6748 sunos4*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006749 lt_prog_compiler_wl='-Qoption ld '
6750 lt_prog_compiler_pic='-PIC'
6751 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006752 ;;
6753
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006754 sysv4 | sysv4.2uw2* | sysv4.3*)
6755 lt_prog_compiler_wl='-Wl,'
6756 lt_prog_compiler_pic='-KPIC'
6757 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006758 ;;
6759
6760 sysv4*MP*)
6761 if test -d /usr/nec ;then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006762 lt_prog_compiler_pic='-Kconform_pic'
6763 lt_prog_compiler_static='-Bstatic'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006764 fi
6765 ;;
6766
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006767 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6768 lt_prog_compiler_wl='-Wl,'
6769 lt_prog_compiler_pic='-KPIC'
6770 lt_prog_compiler_static='-Bstatic'
6771 ;;
6772
6773 unicos*)
6774 lt_prog_compiler_wl='-Wl,'
6775 lt_prog_compiler_can_build_shared=no
6776 ;;
6777
6778 uts4*)
6779 lt_prog_compiler_pic='-pic'
6780 lt_prog_compiler_static='-Bstatic'
6781 ;;
6782
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006783 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006784 lt_prog_compiler_can_build_shared=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006785 ;;
6786 esac
6787 fi
6788
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006789echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6790echo "${ECHO_T}$lt_prog_compiler_pic" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006791
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006792#
6793# Check to make sure the PIC flag actually works.
6794#
6795if test -n "$lt_prog_compiler_pic"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006796
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006797echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6798echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6799if test "${lt_prog_compiler_pic_works+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006802 lt_prog_compiler_pic_works=no
6803 ac_outfile=conftest.$ac_objext
6804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6806 # Insert the option either (1) after the last *FLAGS variable, or
6807 # (2) before a word containing "conftest.", or (3) at the end.
6808 # Note that $ac_compile itself does not contain backslashes and begins
6809 # with a dollar sign (not a hyphen), so the echo should work correctly.
6810 # The option is referenced via a variable to avoid confusing sed.
6811 lt_compile=`echo "$ac_compile" | $SED \
6812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6814 -e 's:$: $lt_compiler_flag:'`
6815 (eval echo "\"\$as_me:6815: $lt_compile\"" >&5)
6816 (eval "$lt_compile" 2>conftest.err)
6817 ac_status=$?
6818 cat conftest.err >&5
6819 echo "$as_me:6819: \$? = $ac_status" >&5
6820 if (exit $ac_status) && test -s "$ac_outfile"; then
6821 # The compiler can only warn and ignore the option if not recognized
6822 # So say no if there are warnings other than the usual output.
6823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6826 lt_prog_compiler_pic_works=yes
6827 fi
6828 fi
6829 $rm conftest*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006830
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006831fi
6832echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6833echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006834
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006835if test x"$lt_prog_compiler_pic_works" = xyes; then
6836 case $lt_prog_compiler_pic in
6837 "" | " "*) ;;
6838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6839 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006840else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006841 lt_prog_compiler_pic=
6842 lt_prog_compiler_can_build_shared=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006843fi
6844
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006845fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006846case $host_os in
6847 # For platforms which do not support PIC, -DPIC is meaningless:
6848 *djgpp*)
6849 lt_prog_compiler_pic=
6850 ;;
6851 *)
6852 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6853 ;;
6854esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006855
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006856#
6857# Check to make sure the static flag actually works.
6858#
6859wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6860echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6861echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6862if test "${lt_prog_compiler_static_works+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006865 lt_prog_compiler_static_works=no
6866 save_LDFLAGS="$LDFLAGS"
6867 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6868 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6870 # The linker can only warn and ignore the option if not recognized
6871 # So say no if there are warnings
6872 if test -s conftest.err; then
6873 # Append any errors to the config.log.
6874 cat conftest.err 1>&5
6875 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6877 if diff conftest.exp conftest.er2 >/dev/null; then
6878 lt_prog_compiler_static_works=yes
6879 fi
6880 else
6881 lt_prog_compiler_static_works=yes
6882 fi
6883 fi
6884 $rm conftest*
6885 LDFLAGS="$save_LDFLAGS"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006886
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006887fi
6888echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6889echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006890
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006891if test x"$lt_prog_compiler_static_works" = xyes; then
6892 :
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006893else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006894 lt_prog_compiler_static=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006895fi
6896
6897
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006898echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6899echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006900if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006903 lt_cv_prog_compiler_c_o=no
6904 $rm -r conftest 2>/dev/null
6905 mkdir conftest
6906 cd conftest
6907 mkdir out
6908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006909
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006910 lt_compiler_flag="-o out/conftest2.$ac_objext"
6911 # Insert the option either (1) after the last *FLAGS variable, or
6912 # (2) before a word containing "conftest.", or (3) at the end.
6913 # Note that $ac_compile itself does not contain backslashes and begins
6914 # with a dollar sign (not a hyphen), so the echo should work correctly.
6915 lt_compile=`echo "$ac_compile" | $SED \
6916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6918 -e 's:$: $lt_compiler_flag:'`
6919 (eval echo "\"\$as_me:6919: $lt_compile\"" >&5)
6920 (eval "$lt_compile" 2>out/conftest.err)
6921 ac_status=$?
6922 cat out/conftest.err >&5
6923 echo "$as_me:6923: \$? = $ac_status" >&5
6924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6925 then
6926 # The compiler can only warn and ignore the option if not recognized
6927 # So say no if there are warnings
6928 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6931 lt_cv_prog_compiler_c_o=yes
6932 fi
6933 fi
6934 chmod u+w . 2>&5
6935 $rm conftest*
6936 # SGI C++ compiler will create directory out/ii_files/ for
6937 # template instantiation
6938 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6939 $rm out/* && rmdir out
6940 cd ..
6941 rmdir conftest
6942 $rm conftest*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006943
6944fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006945echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6946echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006947
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006948
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006949hard_links="nottested"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006950if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006951 # do not overwrite the value of need_locks provided by the user
6952 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6953echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6954 hard_links=yes
6955 $rm conftest*
6956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6957 touch conftest.a
6958 ln conftest.a conftest.b 2>&5 || hard_links=no
6959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6960 echo "$as_me:$LINENO: result: $hard_links" >&5
6961echo "${ECHO_T}$hard_links" >&6
6962 if test "$hard_links" = no; then
6963 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6964echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6965 need_locks=warn
6966 fi
6967else
6968 need_locks=no
6969fi
6970
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006971echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6972echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006973
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006974 runpath_var=
6975 allow_undefined_flag=
6976 enable_shared_with_static_runtimes=no
6977 archive_cmds=
6978 archive_expsym_cmds=
6979 old_archive_From_new_cmds=
6980 old_archive_from_expsyms_cmds=
6981 export_dynamic_flag_spec=
6982 whole_archive_flag_spec=
6983 thread_safe_flag_spec=
6984 hardcode_libdir_flag_spec=
6985 hardcode_libdir_flag_spec_ld=
6986 hardcode_libdir_separator=
6987 hardcode_direct=no
6988 hardcode_minus_L=no
6989 hardcode_shlibpath_var=unsupported
6990 link_all_deplibs=unknown
6991 hardcode_automatic=no
6992 module_cmds=
6993 module_expsym_cmds=
6994 always_export_symbols=no
6995 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6996 # include_expsyms should be a list of space-separated symbols to be *always*
6997 # included in the symbol list
6998 include_expsyms=
6999 # exclude_expsyms can be an extended regexp of symbols to exclude
7000 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7001 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7002 # as well as any symbol that contains `d'.
7003 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7004 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7005 # platforms (ab)use it in PIC code, but their linkers get confused if
7006 # the symbol is explicitly referenced. Since portable code cannot
7007 # rely on this symbol name, it's probably fine to never include it in
7008 # preloaded symbol tables.
7009 extract_expsyms_cmds=
7010 # Just being paranoid about ensuring that cc_basename is set.
7011 for cc_temp in $compiler""; do
7012 case $cc_temp in
7013 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7014 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7015 \-*) ;;
7016 *) break;;
7017 esac
7018done
7019cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007020
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007021 case $host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007022 cygwin* | mingw* | pw32*)
7023 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7024 # When not using gcc, we currently assume that we are using
7025 # Microsoft Visual C++.
7026 if test "$GCC" != yes; then
7027 with_gnu_ld=no
7028 fi
7029 ;;
7030 interix*)
7031 # we just hope/assume this is gcc and not c89 (= MSVC++)
7032 with_gnu_ld=yes
7033 ;;
7034 openbsd*)
7035 with_gnu_ld=no
7036 ;;
7037 esac
7038
7039 ld_shlibs=yes
7040 if test "$with_gnu_ld" = yes; then
7041 # If archive_cmds runs LD, not CC, wlarc should be empty
7042 wlarc='${wl}'
7043
7044 # Set some defaults for GNU ld with shared library support. These
7045 # are reset later if shared libraries are not supported. Putting them
7046 # here allows them to be overridden if necessary.
7047 runpath_var=LD_RUN_PATH
7048 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7049 export_dynamic_flag_spec='${wl}--export-dynamic'
7050 # ancient GNU ld didn't support --whole-archive et. al.
7051 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7052 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7053 else
7054 whole_archive_flag_spec=
7055 fi
7056 supports_anon_versioning=no
7057 case `$LD -v 2>/dev/null` in
7058 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7059 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7060 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7061 *\ 2.11.*) ;; # other 2.11 versions
7062 *) supports_anon_versioning=yes ;;
7063 esac
7064
7065 # See if GNU ld supports shared libraries.
7066 case $host_os in
7067 aix3* | aix4* | aix5*)
7068 # On AIX/PPC, the GNU linker is very broken
7069 if test "$host_cpu" != ia64; then
7070 ld_shlibs=no
7071 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007072
7073*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7074*** to be unable to reliably create shared libraries on AIX.
7075*** Therefore, libtool is disabling shared libraries support. If you
7076*** really care for shared libraries, you may want to modify your PATH
7077*** so that a non-GNU linker is found, and then restart.
7078
7079EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007080 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007081 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007082
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007083 amigaos*)
7084 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)'
7085 hardcode_libdir_flag_spec='-L$libdir'
7086 hardcode_minus_L=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007087
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007088 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7089 # that the semantics of dynamic libraries on AmigaOS, at least up
7090 # to version 4, is to share data among multiple programs linked
7091 # with the same dynamic library. Since this doesn't match the
7092 # behavior of shared libraries on other platforms, we can't use
7093 # them.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007094 ld_shlibs=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007095 ;;
7096
7097 beos*)
7098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7099 allow_undefined_flag=unsupported
7100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7101 # support --undefined. This deserves some investigation. FIXME
7102 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7103 else
7104 ld_shlibs=no
7105 fi
7106 ;;
7107
7108 cygwin* | mingw* | pw32*)
7109 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7110 # as there is no search path for DLLs.
7111 hardcode_libdir_flag_spec='-L$libdir'
7112 allow_undefined_flag=unsupported
7113 always_export_symbols=no
7114 enable_shared_with_static_runtimes=yes
7115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7116
7117 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7119 # If the export-symbols file already is a .def file (1st line
7120 # is EXPORTS), use it as is; otherwise, prepend...
7121 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7122 cp $export_symbols $output_objdir/$soname.def;
7123 else
7124 echo EXPORTS > $output_objdir/$soname.def;
7125 cat $export_symbols >> $output_objdir/$soname.def;
7126 fi~
7127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7128 else
7129 ld_shlibs=no
7130 fi
7131 ;;
7132
7133 interix3*)
7134 hardcode_direct=no
7135 hardcode_shlibpath_var=no
7136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7137 export_dynamic_flag_spec='${wl}-E'
7138 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7139 # Instead, shared libraries are loaded at an image base (0x10000000 by
7140 # default) and relocated if they conflict, which is a slow very memory
7141 # consuming and fragmenting process. To avoid this, we pick a random,
7142 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7143 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7145 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'
7146 ;;
7147
7148 linux*)
7149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7150 tmp_addflag=
7151 case $cc_basename,$host_cpu in
7152 pgcc*) # Portland Group C compiler
7153 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'
7154 tmp_addflag=' $pic_flag'
7155 ;;
7156 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7157 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'
7158 tmp_addflag=' $pic_flag -Mnomain' ;;
7159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7160 tmp_addflag=' -i_dynamic' ;;
7161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7162 tmp_addflag=' -i_dynamic -nofor_main' ;;
7163 ifc* | ifort*) # Intel Fortran compiler
7164 tmp_addflag=' -nofor_main' ;;
7165 esac
7166 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7167
7168 if test $supports_anon_versioning = yes; then
7169 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7171 $echo "local: *; };" >> $output_objdir/$libname.ver~
7172 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7173 fi
7174 else
7175 ld_shlibs=no
7176 fi
7177 ;;
7178
7179 netbsd*)
7180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7181 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7182 wlarc=
7183 else
7184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7186 fi
7187 ;;
7188
7189 solaris*)
7190 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7191 ld_shlibs=no
7192 cat <<EOF 1>&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007193
7194*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7195*** create shared libraries on Solaris systems. Therefore, libtool
7196*** is disabling shared libraries support. We urge you to upgrade GNU
7197*** binutils to release 2.9.1 or newer. Another option is to modify
7198*** your PATH or compiler configuration so that the native linker is
7199*** used, and then restart.
7200
7201EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007202 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7204 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 -06007205 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007206 ld_shlibs=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007207 fi
7208 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007209
7210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7211 case `$LD -v 2>&1` in
7212 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7213 ld_shlibs=no
7214 cat <<_LT_EOF 1>&2
7215
7216*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7217*** reliably create shared libraries on SCO systems. Therefore, libtool
7218*** is disabling shared libraries support. We urge you to upgrade GNU
7219*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7220*** your PATH or compiler configuration so that the native linker is
7221*** used, and then restart.
7222
7223_LT_EOF
7224 ;;
7225 *)
7226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7227 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7229 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7230 else
7231 ld_shlibs=no
7232 fi
7233 ;;
7234 esac
7235 ;;
7236
7237 sunos4*)
7238 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7239 wlarc=
7240 hardcode_direct=yes
7241 hardcode_shlibpath_var=no
7242 ;;
7243
7244 *)
7245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7248 else
7249 ld_shlibs=no
7250 fi
7251 ;;
7252 esac
7253
7254 if test "$ld_shlibs" = no; then
7255 runpath_var=
7256 hardcode_libdir_flag_spec=
7257 export_dynamic_flag_spec=
7258 whole_archive_flag_spec=
7259 fi
7260 else
7261 # PORTME fill in a description of your system's linker (not GNU ld)
7262 case $host_os in
7263 aix3*)
7264 allow_undefined_flag=unsupported
7265 always_export_symbols=yes
7266 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'
7267 # Note: this linker hardcodes the directories in LIBPATH if there
7268 # are no directories specified by -L.
7269 hardcode_minus_L=yes
7270 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7271 # Neither direct hardcoding nor static linking is supported with a
7272 # broken collect2.
7273 hardcode_direct=unsupported
7274 fi
7275 ;;
7276
7277 aix4* | aix5*)
7278 if test "$host_cpu" = ia64; then
7279 # On IA64, the linker does run time linking by default, so we don't
7280 # have to do anything special.
7281 aix_use_runtimelinking=no
7282 exp_sym_flag='-Bexport'
7283 no_entry_flag=""
7284 else
7285 # If we're using GNU nm, then we don't want the "-C" option.
7286 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7287 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7288 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'
7289 else
7290 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'
7291 fi
7292 aix_use_runtimelinking=no
7293
7294 # Test if we are trying to use run time linking or normal
7295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7296 # need to do runtime linking.
7297 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7298 for ld_flag in $LDFLAGS; do
7299 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7300 aix_use_runtimelinking=yes
7301 break
7302 fi
7303 done
7304 ;;
7305 esac
7306
7307 exp_sym_flag='-bexport'
7308 no_entry_flag='-bnoentry'
7309 fi
7310
7311 # When large executables or shared objects are built, AIX ld can
7312 # have problems creating the table of contents. If linking a library
7313 # or program results in "error TOC overflow" add -mminimal-toc to
7314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7316
7317 archive_cmds=''
7318 hardcode_direct=yes
7319 hardcode_libdir_separator=':'
7320 link_all_deplibs=yes
7321
7322 if test "$GCC" = yes; then
7323 case $host_os in aix4.[012]|aix4.[012].*)
7324 # We only want to do this on AIX 4.2 and lower, the check
7325 # below for broken collect2 doesn't work under 4.3+
7326 collect2name=`${CC} -print-prog-name=collect2`
7327 if test -f "$collect2name" && \
7328 strings "$collect2name" | grep resolve_lib_name >/dev/null
7329 then
7330 # We have reworked collect2
7331 hardcode_direct=yes
7332 else
7333 # We have old collect2
7334 hardcode_direct=unsupported
7335 # It fails to find uninstalled libraries when the uninstalled
7336 # path is not listed in the libpath. Setting hardcode_minus_L
7337 # to unsupported forces relinking
7338 hardcode_minus_L=yes
7339 hardcode_libdir_flag_spec='-L$libdir'
7340 hardcode_libdir_separator=
7341 fi
7342 ;;
7343 esac
7344 shared_flag='-shared'
7345 if test "$aix_use_runtimelinking" = yes; then
7346 shared_flag="$shared_flag "'${wl}-G'
7347 fi
7348 else
7349 # not using gcc
7350 if test "$host_cpu" = ia64; then
7351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7352 # chokes on -Wl,-G. The following line is correct:
7353 shared_flag='-G'
7354 else
7355 if test "$aix_use_runtimelinking" = yes; then
7356 shared_flag='${wl}-G'
7357 else
7358 shared_flag='${wl}-bM:SRE'
7359 fi
7360 fi
7361 fi
7362
7363 # It seems that -bexpall does not export symbols beginning with
7364 # underscore (_), so it is better to generate a list of symbols to export.
7365 always_export_symbols=yes
7366 if test "$aix_use_runtimelinking" = yes; then
7367 # Warning - without using the other runtime loading flags (-brtl),
7368 # -berok will link without error, but may produce a broken library.
7369 allow_undefined_flag='-berok'
7370 # Determine the default libpath from the value encoded in an empty executable.
7371 cat >conftest.$ac_ext <<_ACEOF
7372/* confdefs.h. */
7373_ACEOF
7374cat confdefs.h >>conftest.$ac_ext
7375cat >>conftest.$ac_ext <<_ACEOF
7376/* end confdefs.h. */
7377
7378int
7379main ()
7380{
7381
7382 ;
7383 return 0;
7384}
7385_ACEOF
7386rm -f conftest.$ac_objext conftest$ac_exeext
7387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7388 (eval $ac_link) 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } &&
7395 { ac_try='test -z "$ac_c_werror_flag"
7396 || test ! -s conftest.err'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 (eval $ac_try) 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; } &&
7402 { ac_try='test -s conftest$ac_exeext'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 (eval $ac_try) 2>&5
7405 ac_status=$?
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; }; then
7408
7409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7410}'`
7411# Check for a 64-bit object if we didn't find anything.
7412if 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; }
7413}'`; fi
7414else
7415 echo "$as_me: failed program was:" >&5
7416sed 's/^/| /' conftest.$ac_ext >&5
7417
7418fi
7419rm -f conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
7421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7422
7423 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7424 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"
7425 else
7426 if test "$host_cpu" = ia64; then
7427 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7428 allow_undefined_flag="-z nodefs"
7429 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"
7430 else
7431 # Determine the default libpath from the value encoded in an empty executable.
7432 cat >conftest.$ac_ext <<_ACEOF
7433/* confdefs.h. */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h. */
7438
7439int
7440main ()
7441{
7442
7443 ;
7444 return 0;
7445}
7446_ACEOF
7447rm -f conftest.$ac_objext conftest$ac_exeext
7448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try='test -s conftest$ac_exeext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 (eval $ac_try) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469
7470aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7471}'`
7472# Check for a 64-bit object if we didn't find anything.
7473if 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; }
7474}'`; fi
7475else
7476 echo "$as_me: failed program was:" >&5
7477sed 's/^/| /' conftest.$ac_ext >&5
7478
7479fi
7480rm -f conftest.err conftest.$ac_objext \
7481 conftest$ac_exeext conftest.$ac_ext
7482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7483
7484 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7485 # Warning - without using the other run time loading flags,
7486 # -berok will link without error, but may produce a broken library.
7487 no_undefined_flag=' ${wl}-bernotok'
7488 allow_undefined_flag=' ${wl}-berok'
7489 # Exported symbols can be pulled into shared objects from archives
7490 whole_archive_flag_spec='$convenience'
7491 archive_cmds_need_lc=yes
7492 # This is similar to how AIX traditionally builds its shared libraries.
7493 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'
7494 fi
7495 fi
7496 ;;
7497
7498 amigaos*)
7499 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)'
7500 hardcode_libdir_flag_spec='-L$libdir'
7501 hardcode_minus_L=yes
7502 # see comment about different semantics on the GNU ld section
7503 ld_shlibs=no
7504 ;;
7505
7506 bsdi[45]*)
7507 export_dynamic_flag_spec=-rdynamic
7508 ;;
7509
7510 cygwin* | mingw* | pw32*)
7511 # When not using gcc, we currently assume that we are using
7512 # Microsoft Visual C++.
7513 # hardcode_libdir_flag_spec is actually meaningless, as there is
7514 # no search path for DLLs.
7515 hardcode_libdir_flag_spec=' '
7516 allow_undefined_flag=unsupported
7517 # Tell ltmain to make .lib files, not .a files.
7518 libext=lib
7519 # Tell ltmain to make .dll files, not .so files.
7520 shrext_cmds=".dll"
7521 # FIXME: Setting linknames here is a bad hack.
7522 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7523 # The linker will automatically build a .lib file if we build a DLL.
7524 old_archive_From_new_cmds='true'
7525 # FIXME: Should let the user specify the lib program.
7526 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7527 fix_srcfile_path='`cygpath -w "$srcfile"`'
7528 enable_shared_with_static_runtimes=yes
7529 ;;
7530
7531 darwin* | rhapsody*)
7532 case $host_os in
7533 rhapsody* | darwin1.[012])
7534 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7535 ;;
7536 *) # Darwin 1.3 on
7537 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7538 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7539 else
7540 case ${MACOSX_DEPLOYMENT_TARGET} in
7541 10.[012])
7542 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7543 ;;
7544 10.*)
7545 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7546 ;;
7547 esac
7548 fi
7549 ;;
7550 esac
7551 archive_cmds_need_lc=no
7552 hardcode_direct=no
7553 hardcode_automatic=yes
7554 hardcode_shlibpath_var=unsupported
7555 whole_archive_flag_spec=''
7556 link_all_deplibs=yes
7557 if test "$GCC" = yes ; then
7558 output_verbose_link_cmd='echo'
7559 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7560 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7562 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}'
7563 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}'
7564 else
7565 case $cc_basename in
7566 xlc*)
7567 output_verbose_link_cmd='echo'
7568 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7569 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7570 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7571 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}'
7572 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}'
7573 ;;
7574 *)
7575 ld_shlibs=no
7576 ;;
7577 esac
7578 fi
7579 ;;
7580
7581 dgux*)
7582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7583 hardcode_libdir_flag_spec='-L$libdir'
7584 hardcode_shlibpath_var=no
7585 ;;
7586
7587 freebsd1*)
7588 ld_shlibs=no
7589 ;;
7590
7591 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7592 # support. Future versions do this automatically, but an explicit c++rt0.o
7593 # does not break anything, and helps significantly (at the cost of a little
7594 # extra space).
7595 freebsd2.2*)
7596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7597 hardcode_libdir_flag_spec='-R$libdir'
7598 hardcode_direct=yes
7599 hardcode_shlibpath_var=no
7600 ;;
7601
7602 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7603 freebsd2*)
7604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7605 hardcode_direct=yes
7606 hardcode_minus_L=yes
7607 hardcode_shlibpath_var=no
7608 ;;
7609
7610 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7611 freebsd* | kfreebsd*-gnu | dragonfly*)
7612 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7613 hardcode_libdir_flag_spec='-R$libdir'
7614 hardcode_direct=yes
7615 hardcode_shlibpath_var=no
7616 ;;
7617
7618 hpux9*)
7619 if test "$GCC" = yes; then
7620 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'
7621 else
7622 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'
7623 fi
7624 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7625 hardcode_libdir_separator=:
7626 hardcode_direct=yes
7627
7628 # hardcode_minus_L: Not really in the search PATH,
7629 # but as the default location of the library.
7630 hardcode_minus_L=yes
7631 export_dynamic_flag_spec='${wl}-E'
7632 ;;
7633
7634 hpux10*)
7635 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7637 else
7638 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7639 fi
7640 if test "$with_gnu_ld" = no; then
7641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7642 hardcode_libdir_separator=:
7643
7644 hardcode_direct=yes
7645 export_dynamic_flag_spec='${wl}-E'
7646
7647 # hardcode_minus_L: Not really in the search PATH,
7648 # but as the default location of the library.
7649 hardcode_minus_L=yes
7650 fi
7651 ;;
7652
7653 hpux11*)
7654 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7655 case $host_cpu in
7656 hppa*64*)
7657 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7658 ;;
7659 ia64*)
7660 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7661 ;;
7662 *)
7663 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7664 ;;
7665 esac
7666 else
7667 case $host_cpu in
7668 hppa*64*)
7669 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7670 ;;
7671 ia64*)
7672 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7673 ;;
7674 *)
7675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7676 ;;
7677 esac
7678 fi
7679 if test "$with_gnu_ld" = no; then
7680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7681 hardcode_libdir_separator=:
7682
7683 case $host_cpu in
7684 hppa*64*|ia64*)
7685 hardcode_libdir_flag_spec_ld='+b $libdir'
7686 hardcode_direct=no
7687 hardcode_shlibpath_var=no
7688 ;;
7689 *)
7690 hardcode_direct=yes
7691 export_dynamic_flag_spec='${wl}-E'
7692
7693 # hardcode_minus_L: Not really in the search PATH,
7694 # but as the default location of the library.
7695 hardcode_minus_L=yes
7696 ;;
7697 esac
7698 fi
7699 ;;
7700
7701 irix5* | irix6* | nonstopux*)
7702 if test "$GCC" = yes; then
7703 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'
7704 else
7705 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'
7706 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7707 fi
7708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7709 hardcode_libdir_separator=:
7710 link_all_deplibs=yes
7711 ;;
7712
7713 netbsd*)
7714 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7716 else
7717 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7718 fi
7719 hardcode_libdir_flag_spec='-R$libdir'
7720 hardcode_direct=yes
7721 hardcode_shlibpath_var=no
7722 ;;
7723
7724 newsos6)
7725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7726 hardcode_direct=yes
7727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7728 hardcode_libdir_separator=:
7729 hardcode_shlibpath_var=no
7730 ;;
7731
7732 openbsd*)
7733 hardcode_direct=yes
7734 hardcode_shlibpath_var=no
7735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7737 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7738 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7739 export_dynamic_flag_spec='${wl}-E'
7740 else
7741 case $host_os in
7742 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7744 hardcode_libdir_flag_spec='-R$libdir'
7745 ;;
7746 *)
7747 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7748 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7749 ;;
7750 esac
7751 fi
7752 ;;
7753
7754 os2*)
7755 hardcode_libdir_flag_spec='-L$libdir'
7756 hardcode_minus_L=yes
7757 allow_undefined_flag=unsupported
7758 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'
7759 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7760 ;;
7761
7762 osf3*)
7763 if test "$GCC" = yes; then
7764 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7765 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'
7766 else
7767 allow_undefined_flag=' -expect_unresolved \*'
7768 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'
7769 fi
7770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7771 hardcode_libdir_separator=:
7772 ;;
7773
7774 osf4* | osf5*) # as osf3* with the addition of -msym flag
7775 if test "$GCC" = yes; then
7776 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7777 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'
7778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7779 else
7780 allow_undefined_flag=' -expect_unresolved \*'
7781 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'
7782 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7783 $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'
7784
7785 # Both c and cxx compiler support -rpath directly
7786 hardcode_libdir_flag_spec='-rpath $libdir'
7787 fi
7788 hardcode_libdir_separator=:
7789 ;;
7790
7791 solaris*)
7792 no_undefined_flag=' -z text'
7793 if test "$GCC" = yes; then
7794 wlarc='${wl}'
7795 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7796 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7797 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7798 else
7799 wlarc=''
7800 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7801 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7803 fi
7804 hardcode_libdir_flag_spec='-R$libdir'
7805 hardcode_shlibpath_var=no
7806 case $host_os in
7807 solaris2.[0-5] | solaris2.[0-5].*) ;;
7808 *)
7809 # The compiler driver will combine linker options so we
7810 # cannot just pass the convience library names through
7811 # without $wl, iff we do not link with $LD.
7812 # Luckily, gcc supports the same syntax we need for Sun Studio.
7813 # Supported since Solaris 2.6 (maybe 2.5.1?)
7814 case $wlarc in
7815 '')
7816 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7817 *)
7818 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' ;;
7819 esac ;;
7820 esac
7821 link_all_deplibs=yes
7822 ;;
7823
7824 sunos4*)
7825 if test "x$host_vendor" = xsequent; then
7826 # Use $CC to link under sequent, because it throws in some extra .o
7827 # files that make .init and .fini sections work.
7828 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7829 else
7830 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7831 fi
7832 hardcode_libdir_flag_spec='-L$libdir'
7833 hardcode_direct=yes
7834 hardcode_minus_L=yes
7835 hardcode_shlibpath_var=no
7836 ;;
7837
7838 sysv4)
7839 case $host_vendor in
7840 sni)
7841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7842 hardcode_direct=yes # is this really true???
7843 ;;
7844 siemens)
7845 ## LD is ld it makes a PLAMLIB
7846 ## CC just makes a GrossModule.
7847 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7848 reload_cmds='$CC -r -o $output$reload_objs'
7849 hardcode_direct=no
7850 ;;
7851 motorola)
7852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7853 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7854 ;;
7855 esac
7856 runpath_var='LD_RUN_PATH'
7857 hardcode_shlibpath_var=no
7858 ;;
7859
7860 sysv4.3*)
7861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7862 hardcode_shlibpath_var=no
7863 export_dynamic_flag_spec='-Bexport'
7864 ;;
7865
7866 sysv4*MP*)
7867 if test -d /usr/nec; then
7868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7869 hardcode_shlibpath_var=no
7870 runpath_var=LD_RUN_PATH
7871 hardcode_runpath_var=yes
7872 ld_shlibs=yes
7873 fi
7874 ;;
7875
7876 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7877 no_undefined_flag='${wl}-z,text'
7878 archive_cmds_need_lc=no
7879 hardcode_shlibpath_var=no
7880 runpath_var='LD_RUN_PATH'
7881
7882 if test "$GCC" = yes; then
7883 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7884 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7885 else
7886 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7887 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7888 fi
7889 ;;
7890
7891 sysv5* | sco3.2v5* | sco5v6*)
7892 # Note: We can NOT use -z defs as we might desire, because we do not
7893 # link with -lc, and that would cause any symbols used from libc to
7894 # always be unresolved, which means just about no library would
7895 # ever link correctly. If we're not using GNU ld we use -z text
7896 # though, which does catch some bad symbols but isn't as heavy-handed
7897 # as -z defs.
7898 no_undefined_flag='${wl}-z,text'
7899 allow_undefined_flag='${wl}-z,nodefs'
7900 archive_cmds_need_lc=no
7901 hardcode_shlibpath_var=no
7902 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7903 hardcode_libdir_separator=':'
7904 link_all_deplibs=yes
7905 export_dynamic_flag_spec='${wl}-Bexport'
7906 runpath_var='LD_RUN_PATH'
7907
7908 if test "$GCC" = yes; then
7909 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7910 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7911 else
7912 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7913 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7914 fi
7915 ;;
7916
7917 uts4*)
7918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7919 hardcode_libdir_flag_spec='-L$libdir'
7920 hardcode_shlibpath_var=no
7921 ;;
7922
7923 *)
7924 ld_shlibs=no
7925 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007926 esac
7927 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007928
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007929echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7930echo "${ECHO_T}$ld_shlibs" >&6
7931test "$ld_shlibs" = no && can_build_shared=no
7932
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007933#
7934# Do we need to explicitly link libc?
7935#
7936case "x$archive_cmds_need_lc" in
7937x|xyes)
7938 # Assume -lc should be added
7939 archive_cmds_need_lc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007940
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007941 if test "$enable_shared" = yes && test "$GCC" = yes; then
7942 case $archive_cmds in
7943 *'~'*)
7944 # FIXME: we may have to deal with multi-command sequences.
7945 ;;
7946 '$CC '*)
7947 # Test whether the compiler implicitly links with -lc since on some
7948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7949 # to ld, don't add -lc before -lgcc.
7950 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7951echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7952 $rm conftest*
7953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7954
7955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7956 (eval $ac_compile) 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } 2>conftest.err; then
7960 soname=conftest
7961 lib=conftest
7962 libobjs=conftest.$ac_objext
7963 deplibs=
7964 wl=$lt_prog_compiler_wl
7965 pic_flag=$lt_prog_compiler_pic
7966 compiler_flags=-v
7967 linker_flags=-v
7968 verstring=
7969 output_objdir=.
7970 libname=conftest
7971 lt_save_allow_undefined_flag=$allow_undefined_flag
7972 allow_undefined_flag=
7973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7974 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }
7978 then
7979 archive_cmds_need_lc=no
7980 else
7981 archive_cmds_need_lc=yes
7982 fi
7983 allow_undefined_flag=$lt_save_allow_undefined_flag
7984 else
7985 cat conftest.err 1>&5
7986 fi
7987 $rm conftest*
7988 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7989echo "${ECHO_T}$archive_cmds_need_lc" >&6
7990 ;;
7991 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007992 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007993 ;;
7994esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007995
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007996echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7997echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7998library_names_spec=
7999libname_spec='lib$name'
8000soname_spec=
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008001shrext_cmds=".so"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008002postinstall_cmds=
8003postuninstall_cmds=
8004finish_cmds=
8005finish_eval=
8006shlibpath_var=
8007shlibpath_overrides_runpath=unknown
8008version_type=none
8009dynamic_linker="$host_os ld.so"
8010sys_lib_dlsearch_path_spec="/lib /usr/lib"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008011if test "$GCC" = yes; then
8012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8013 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8014 # if the path contains ";" then we assume it to be the separator
8015 # otherwise default to the standard path separator (i.e. ":") - it is
8016 # assumed that no part of a normal pathname contains ";" but that should
8017 # okay in the real world where ";" in dirpaths is itself problematic.
8018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8019 else
8020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8021 fi
8022else
8023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8024fi
8025need_lib_prefix=unknown
8026hardcode_into_libs=no
8027
8028# when you set need_version to no, make sure it does not cause -set_version
8029# flags to be left without arguments
8030need_version=unknown
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008031
8032case $host_os in
8033aix3*)
8034 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008036 shlibpath_var=LIBPATH
8037
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008038 # AIX 3 has no versioning support, so we append a major version to the name.
8039 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008040 ;;
8041
8042aix4* | aix5*)
8043 version_type=linux
8044 need_lib_prefix=no
8045 need_version=no
8046 hardcode_into_libs=yes
8047 if test "$host_cpu" = ia64; then
8048 # AIX 5 supports IA64
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008050 shlibpath_var=LD_LIBRARY_PATH
8051 else
8052 # With GCC up to 2.95.x, collect2 would create an import file
8053 # for dependence libraries. The import file would start with
8054 # the line `#! .'. This would cause the generated library to
8055 # depend on `.', always an invalid library. This was fixed in
8056 # development snapshots of GCC prior to 3.0.
8057 case $host_os in
8058 aix4 | aix4.[01] | aix4.[01].*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8060 echo ' yes '
8061 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8062 :
8063 else
8064 can_build_shared=no
8065 fi
8066 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008067 esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8069 # soname into executable. Probably we can add versioning support to
8070 # collect2, so additional links can be useful in future.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008071 if test "$aix_use_runtimelinking" = yes; then
8072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8073 # instead of lib<name>.a to let people know that these are not
8074 # typical AIX shared libraries.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008076 else
8077 # We preserve .a as extension for shared libraries through AIX4.2
8078 # and later when we are not doing run time linking.
8079 library_names_spec='${libname}${release}.a $libname.a'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008080 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008081 fi
8082 shlibpath_var=LIBPATH
8083 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008084 ;;
8085
8086amigaos*)
8087 library_names_spec='$libname.ixlibrary $libname.a'
8088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008089 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 -06008090 ;;
8091
8092beos*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008093 library_names_spec='${libname}${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008094 dynamic_linker="$host_os ld.so"
8095 shlibpath_var=LIBRARY_PATH
8096 ;;
8097
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008098bsdi[45]*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008099 version_type=linux
8100 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8102 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8104 shlibpath_var=LD_LIBRARY_PATH
8105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008107 # the default ld.so.conf also contains /usr/contrib/lib and
8108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8109 # libtool to hard-code these into programs
8110 ;;
8111
8112cygwin* | mingw* | pw32*)
8113 version_type=windows
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008114 shrext_cmds=".dll"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008115 need_version=no
8116 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008117
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008118 case $GCC,$host_os in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008119 yes,cygwin* | yes,mingw* | yes,pw32*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008120 library_names_spec='$libname.dll.a'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008121 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8122 postinstall_cmds='base_file=`basename \${file}`~
8123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008124 dldir=$destdir/`dirname \$dlpath`~
8125 test -d \$dldir || mkdir -p \$dldir~
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008126 $install_prog $dir/$dlname \$dldir/$dlname~
8127 chmod a+x \$dldir/$dlname'
8128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008129 dlpath=$dir/\$dldll~
8130 $rm \$dlpath'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008131 shlibpath_overrides_runpath=yes
8132
8133 case $host_os in
8134 cygwin*)
8135 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8136 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8137 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8138 ;;
8139 mingw*)
8140 # MinGW DLLs use traditional 'lib' prefix
8141 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8142 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8143 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8144 # It is most probably a Windows format PATH printed by
8145 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8146 # path with ; separators, and with drive letters. We can handle the
8147 # drive letters (cygwin fileutils understands them), so leave them,
8148 # especially as we might pass files found there to a mingw objdump,
8149 # which wouldn't understand a cygwinified path. Ahh.
8150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8151 else
8152 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8153 fi
8154 ;;
8155 pw32*)
8156 # pw32 DLLs use 'pw' prefix rather than 'lib'
8157 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8158 ;;
8159 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008160 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008161
8162 linux*)
8163 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8165 supports_anon_versioning=no
8166 case `$LD -v 2>/dev/null` in
8167 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8168 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8169 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8170 *\ 2.11.*) ;; # other 2.11 versions
8171 *) supports_anon_versioning=yes ;;
8172 esac
8173 if test $supports_anon_versioning = yes; then
8174 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8175cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8176$echo "local: *; };" >> $output_objdir/$libname.ver~
8177 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8178 else
8179 $archive_expsym_cmds="$archive_cmds"
8180 fi
8181 else
8182 ld_shlibs=no
8183 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008184 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008185
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008186 *)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008187 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008188 ;;
8189 esac
8190 dynamic_linker='Win32 ld.exe'
8191 # FIXME: first we should search . and the directory the executable is in
8192 shlibpath_var=PATH
8193 ;;
8194
8195darwin* | rhapsody*)
8196 dynamic_linker="$host_os dyld"
8197 version_type=darwin
8198 need_lib_prefix=no
8199 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008200 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8201 soname_spec='${libname}${release}${major}$shared_ext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008202 shlibpath_overrides_runpath=yes
8203 shlibpath_var=DYLD_LIBRARY_PATH
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008204 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8205 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8206 if test "$GCC" = yes; then
8207 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"`
8208 else
8209 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8210 fi
8211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8212 ;;
8213
8214dgux*)
8215 version_type=linux
8216 need_lib_prefix=no
8217 need_version=no
8218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8219 soname_spec='${libname}${release}${shared_ext}$major'
8220 shlibpath_var=LD_LIBRARY_PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008221 ;;
8222
8223freebsd1*)
8224 dynamic_linker=no
8225 ;;
8226
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008227kfreebsd*-gnu)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008228 version_type=linux
8229 need_lib_prefix=no
8230 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8232 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008233 shlibpath_var=LD_LIBRARY_PATH
8234 shlibpath_overrides_runpath=no
8235 hardcode_into_libs=yes
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008236 dynamic_linker='GNU ld.so'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008237 ;;
8238
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008239freebsd* | dragonfly*)
8240 # DragonFly does not have aout. When/if they implement a new
8241 # versioning mechanism, adjust this.
8242 if test -x /usr/bin/objformat; then
8243 objformat=`/usr/bin/objformat`
8244 else
8245 case $host_os in
8246 freebsd[123]*) objformat=aout ;;
8247 *) objformat=elf ;;
8248 esac
8249 fi
8250 # Handle Gentoo/FreeBSD as it was Linux
8251 case $host_vendor in
8252 gentoo)
8253 version_type=linux ;;
8254 *)
8255 version_type=freebsd-$objformat ;;
8256 esac
8257
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008258 case $version_type in
8259 freebsd-elf*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008261 need_version=no
8262 need_lib_prefix=no
8263 ;;
8264 freebsd-*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008266 need_version=yes
8267 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008268 linux)
8269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8270 soname_spec='${libname}${release}${shared_ext}$major'
8271 need_lib_prefix=no
8272 need_version=no
8273 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008274 esac
8275 shlibpath_var=LD_LIBRARY_PATH
8276 case $host_os in
8277 freebsd2*)
8278 shlibpath_overrides_runpath=yes
8279 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008280 freebsd3.[01]* | freebsdelf3.[01]*)
8281 shlibpath_overrides_runpath=yes
8282 hardcode_into_libs=yes
8283 ;;
8284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008286 shlibpath_overrides_runpath=no
8287 hardcode_into_libs=yes
8288 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008289 freebsd*) # from 4.6 on
8290 shlibpath_overrides_runpath=yes
8291 hardcode_into_libs=yes
8292 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008293 esac
8294 ;;
8295
8296gnu*)
8297 version_type=linux
8298 need_lib_prefix=no
8299 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8301 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008302 shlibpath_var=LD_LIBRARY_PATH
8303 hardcode_into_libs=yes
8304 ;;
8305
8306hpux9* | hpux10* | hpux11*)
8307 # Give a soname corresponding to the major version so that dld.sl refuses to
8308 # link against other versions.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008309 version_type=sunos
8310 need_lib_prefix=no
8311 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008312 case $host_cpu in
8313 ia64*)
8314 shrext_cmds='.so'
8315 hardcode_into_libs=yes
8316 dynamic_linker="$host_os dld.so"
8317 shlibpath_var=LD_LIBRARY_PATH
8318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8320 soname_spec='${libname}${release}${shared_ext}$major'
8321 if test "X$HPUX_IA64_MODE" = X32; then
8322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8323 else
8324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8325 fi
8326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8327 ;;
8328 hppa*64*)
8329 shrext_cmds='.sl'
8330 hardcode_into_libs=yes
8331 dynamic_linker="$host_os dld.sl"
8332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8335 soname_spec='${libname}${release}${shared_ext}$major'
8336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8338 ;;
8339 *)
8340 shrext_cmds='.sl'
8341 dynamic_linker="$host_os dld.sl"
8342 shlibpath_var=SHLIB_PATH
8343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8345 soname_spec='${libname}${release}${shared_ext}$major'
8346 ;;
8347 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008348 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8349 postinstall_cmds='chmod 555 $lib'
8350 ;;
8351
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008352interix3*)
8353 version_type=linux
8354 need_lib_prefix=no
8355 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8359 shlibpath_var=LD_LIBRARY_PATH
8360 shlibpath_overrides_runpath=no
8361 hardcode_into_libs=yes
8362 ;;
8363
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008364irix5* | irix6* | nonstopux*)
8365 case $host_os in
8366 nonstopux*) version_type=nonstopux ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008367 *)
8368 if test "$lt_cv_prog_gnu_ld" = yes; then
8369 version_type=linux
8370 else
8371 version_type=irix
8372 fi ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008373 esac
8374 need_lib_prefix=no
8375 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008376 soname_spec='${libname}${release}${shared_ext}$major'
8377 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 -06008378 case $host_os in
8379 irix5* | nonstopux*)
8380 libsuff= shlibsuff=
8381 ;;
8382 *)
8383 case $LD in # libtool.m4 will add one of these switches to LD
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8385 libsuff= shlibsuff= libmagic=32-bit;;
8386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8387 libsuff=32 shlibsuff=N32 libmagic=N32;;
8388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008390 *) libsuff= shlibsuff= libmagic=never-match;;
8391 esac
8392 ;;
8393 esac
8394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8395 shlibpath_overrides_runpath=no
8396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008398 hardcode_into_libs=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008399 ;;
8400
8401# No shared lib support for Linux oldld, aout, or coff.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008402linux*oldld* | linux*aout* | linux*coff*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008403 dynamic_linker=no
8404 ;;
8405
8406# This must be Linux ELF.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008407linux*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008408 version_type=linux
8409 need_lib_prefix=no
8410 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8414 shlibpath_var=LD_LIBRARY_PATH
8415 shlibpath_overrides_runpath=no
8416 # This implies no fast_install, which is unacceptable.
8417 # Some rework will be needed to allow for fast_install
8418 # before this can be enabled.
8419 hardcode_into_libs=yes
8420
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008421 # Append ld.so.conf contents to the search path
8422 if test -f /etc/ld.so.conf; then
8423 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' ' '`
8424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8425 fi
8426
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008427 # We used to test for /lib/ld.so.1 and disable shared libraries on
8428 # powerpc, because MkLinux only supported shared libraries with the
8429 # GNU dynamic linker. Since this was broken with cross compilers,
8430 # most powerpc-linux boxes support dynamic linking these days and
8431 # people can always --disable-shared, the test was removed, and we
8432 # assume the GNU/Linux dynamic linker is in use.
8433 dynamic_linker='GNU/Linux ld.so'
8434 ;;
8435
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008436knetbsd*-gnu)
8437 version_type=linux
8438 need_lib_prefix=no
8439 need_version=no
8440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8441 soname_spec='${libname}${release}${shared_ext}$major'
8442 shlibpath_var=LD_LIBRARY_PATH
8443 shlibpath_overrides_runpath=no
8444 hardcode_into_libs=yes
8445 dynamic_linker='GNU ld.so'
8446 ;;
8447
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008448netbsd*)
8449 version_type=sunos
8450 need_lib_prefix=no
8451 need_version=no
8452 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8455 dynamic_linker='NetBSD (a.out) ld.so'
8456 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8458 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008459 dynamic_linker='NetBSD ld.elf_so'
8460 fi
8461 shlibpath_var=LD_LIBRARY_PATH
8462 shlibpath_overrides_runpath=yes
8463 hardcode_into_libs=yes
8464 ;;
8465
8466newsos6)
8467 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8469 shlibpath_var=LD_LIBRARY_PATH
8470 shlibpath_overrides_runpath=yes
8471 ;;
8472
8473nto-qnx*)
8474 version_type=linux
8475 need_lib_prefix=no
8476 need_version=no
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008479 shlibpath_var=LD_LIBRARY_PATH
8480 shlibpath_overrides_runpath=yes
8481 ;;
8482
8483openbsd*)
8484 version_type=sunos
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008485 sys_lib_dlsearch_path_spec="/usr/lib"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008486 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8488 case $host_os in
8489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8490 *) need_version=no ;;
8491 esac
8492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8494 shlibpath_var=LD_LIBRARY_PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008495 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 -06008496 case $host_os in
8497 openbsd2.[89] | openbsd2.[89].*)
8498 shlibpath_overrides_runpath=no
8499 ;;
8500 *)
8501 shlibpath_overrides_runpath=yes
8502 ;;
8503 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008504 else
8505 shlibpath_overrides_runpath=yes
8506 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008507 ;;
8508
8509os2*)
8510 libname_spec='$name'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008511 shrext_cmds=".dll"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008512 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008513 library_names_spec='$libname${shared_ext} $libname.a'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008514 dynamic_linker='OS/2 ld.exe'
8515 shlibpath_var=LIBPATH
8516 ;;
8517
8518osf3* | osf4* | osf5*)
8519 version_type=osf
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008520 need_lib_prefix=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008521 need_version=no
8522 soname_spec='${libname}${release}${shared_ext}$major'
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008524 shlibpath_var=LD_LIBRARY_PATH
8525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008527 ;;
8528
8529solaris*)
8530 version_type=linux
8531 need_lib_prefix=no
8532 need_version=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8534 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008535 shlibpath_var=LD_LIBRARY_PATH
8536 shlibpath_overrides_runpath=yes
8537 hardcode_into_libs=yes
8538 # ldd complains unless libraries are executable
8539 postinstall_cmds='chmod +x $lib'
8540 ;;
8541
8542sunos4*)
8543 version_type=sunos
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8546 shlibpath_var=LD_LIBRARY_PATH
8547 shlibpath_overrides_runpath=yes
8548 if test "$with_gnu_ld" = yes; then
8549 need_lib_prefix=no
8550 fi
8551 need_version=yes
8552 ;;
8553
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008554sysv4 | sysv4.3*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008555 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8557 soname_spec='${libname}${release}${shared_ext}$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008558 shlibpath_var=LD_LIBRARY_PATH
8559 case $host_vendor in
8560 sni)
8561 shlibpath_overrides_runpath=no
8562 need_lib_prefix=no
8563 export_dynamic_flag_spec='${wl}-Blargedynsym'
8564 runpath_var=LD_RUN_PATH
8565 ;;
8566 siemens)
8567 need_lib_prefix=no
8568 ;;
8569 motorola)
8570 need_lib_prefix=no
8571 need_version=no
8572 shlibpath_overrides_runpath=no
8573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8574 ;;
8575 esac
8576 ;;
8577
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008578sysv4*MP*)
8579 if test -d /usr/nec ;then
8580 version_type=linux
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8582 soname_spec='$libname${shared_ext}.$major'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008583 shlibpath_var=LD_LIBRARY_PATH
8584 fi
8585 ;;
8586
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8588 version_type=freebsd-elf
8589 need_lib_prefix=no
8590 need_version=no
8591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8592 soname_spec='${libname}${release}${shared_ext}$major'
8593 shlibpath_var=LD_LIBRARY_PATH
8594 hardcode_into_libs=yes
8595 if test "$with_gnu_ld" = yes; then
8596 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8597 shlibpath_overrides_runpath=no
8598 else
8599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8600 shlibpath_overrides_runpath=yes
8601 case $host_os in
8602 sco3.2v5*)
8603 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8604 ;;
8605 esac
8606 fi
8607 sys_lib_dlsearch_path_spec='/usr/lib'
8608 ;;
8609
8610uts4*)
8611 version_type=linux
8612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8613 soname_spec='${libname}${release}${shared_ext}$major'
8614 shlibpath_var=LD_LIBRARY_PATH
8615 ;;
8616
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008617*)
8618 dynamic_linker=no
8619 ;;
8620esac
8621echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8622echo "${ECHO_T}$dynamic_linker" >&6
8623test "$dynamic_linker" = no && can_build_shared=no
8624
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008625variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8626if test "$GCC" = yes; then
8627 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8628fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008629
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008630echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8631echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8632hardcode_action=
8633if test -n "$hardcode_libdir_flag_spec" || \
8634 test -n "$runpath_var" || \
8635 test "X$hardcode_automatic" = "Xyes" ; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008636
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008637 # We can hardcode non-existant directories.
8638 if test "$hardcode_direct" != no &&
8639 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8640 # have to relink, otherwise we might link with an installed library
8641 # when we should be linking with a yet-to-be-installed one
8642 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8643 test "$hardcode_minus_L" != no; then
8644 # Linking always hardcodes the temporary library directory.
8645 hardcode_action=relink
8646 else
8647 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8648 hardcode_action=immediate
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008649 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008650else
8651 # We cannot hardcode anything, or else we can only hardcode existing
8652 # directories.
8653 hardcode_action=unsupported
8654fi
8655echo "$as_me:$LINENO: result: $hardcode_action" >&5
8656echo "${ECHO_T}$hardcode_action" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008657
8658if test "$hardcode_action" = relink; then
8659 # Fast installation is not supported
8660 enable_fast_install=no
8661elif test "$shlibpath_overrides_runpath" = yes ||
8662 test "$enable_shared" = no; then
8663 # Fast installation is not necessary
8664 enable_fast_install=needless
8665fi
8666
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008667striplib=
8668old_striplib=
8669echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8670echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8671if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8672 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8673 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8674 echo "$as_me:$LINENO: result: yes" >&5
8675echo "${ECHO_T}yes" >&6
8676else
8677# FIXME - insert some real tests, host_os isn't really good enough
8678 case $host_os in
8679 darwin*)
8680 if test -n "$STRIP" ; then
8681 striplib="$STRIP -x"
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687fi
8688 ;;
8689 *)
8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
8692 ;;
8693 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008694fi
8695
8696if test "x$enable_dlopen" != xyes; then
8697 enable_dlopen=unknown
8698 enable_dlopen_self=unknown
8699 enable_dlopen_self_static=unknown
8700else
8701 lt_cv_dlopen=no
8702 lt_cv_dlopen_libs=
8703
8704 case $host_os in
8705 beos*)
8706 lt_cv_dlopen="load_add_on"
8707 lt_cv_dlopen_libs=
8708 lt_cv_dlopen_self=yes
8709 ;;
8710
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008711 mingw* | pw32*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008712 lt_cv_dlopen="LoadLibrary"
8713 lt_cv_dlopen_libs=
8714 ;;
8715
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008716 cygwin*)
8717 lt_cv_dlopen="dlopen"
8718 lt_cv_dlopen_libs=
8719 ;;
8720
8721 darwin*)
8722 # if libdl is installed we need to link against it
8723 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8724echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8725if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
8728 ac_check_lib_save_LIBS=$LIBS
8729LIBS="-ldl $LIBS"
8730cat >conftest.$ac_ext <<_ACEOF
8731/* confdefs.h. */
8732_ACEOF
8733cat confdefs.h >>conftest.$ac_ext
8734cat >>conftest.$ac_ext <<_ACEOF
8735/* end confdefs.h. */
8736
8737/* Override any gcc2 internal prototype to avoid an error. */
8738#ifdef __cplusplus
8739extern "C"
8740#endif
8741/* We use char because int might match the return type of a gcc2
8742 builtin and then its argument prototype would still apply. */
8743char dlopen ();
8744int
8745main ()
8746{
8747dlopen ();
8748 ;
8749 return 0;
8750}
8751_ACEOF
8752rm -f conftest.$ac_objext conftest$ac_exeext
8753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8754 (eval $ac_link) 2>conftest.er1
8755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -z "$ac_c_werror_flag"
8762 || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_cv_lib_dl_dlopen=yes
8775else
8776 echo "$as_me: failed program was:" >&5
8777sed 's/^/| /' conftest.$ac_ext >&5
8778
8779ac_cv_lib_dl_dlopen=no
8780fi
8781rm -f conftest.err conftest.$ac_objext \
8782 conftest$ac_exeext conftest.$ac_ext
8783LIBS=$ac_check_lib_save_LIBS
8784fi
8785echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8786echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8787if test $ac_cv_lib_dl_dlopen = yes; then
8788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8789else
8790
8791 lt_cv_dlopen="dyld"
8792 lt_cv_dlopen_libs=
8793 lt_cv_dlopen_self=yes
8794
8795fi
8796
8797 ;;
8798
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008799 *)
8800 echo "$as_me:$LINENO: checking for shl_load" >&5
8801echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8802if test "${ac_cv_func_shl_load+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804else
8805 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008806/* confdefs.h. */
8807_ACEOF
8808cat confdefs.h >>conftest.$ac_ext
8809cat >>conftest.$ac_ext <<_ACEOF
8810/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008811/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8813#define shl_load innocuous_shl_load
8814
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008815/* System header to define __stub macros and hopefully few prototypes,
8816 which can conflict with char shl_load (); below.
8817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8818 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008819
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008820#ifdef __STDC__
8821# include <limits.h>
8822#else
8823# include <assert.h>
8824#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008825
8826#undef shl_load
8827
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008828/* Override any gcc2 internal prototype to avoid an error. */
8829#ifdef __cplusplus
8830extern "C"
8831{
8832#endif
8833/* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8835char shl_load ();
8836/* The GNU C library defines this for functions which it implements
8837 to always fail with ENOSYS. Some functions are actually named
8838 something starting with __ and the normal name is an alias. */
8839#if defined (__stub_shl_load) || defined (__stub___shl_load)
8840choke me
8841#else
8842char (*f) () = shl_load;
8843#endif
8844#ifdef __cplusplus
8845}
8846#endif
8847
8848int
8849main ()
8850{
8851return f != shl_load;
8852 ;
8853 return 0;
8854}
8855_ACEOF
8856rm -f conftest.$ac_objext conftest$ac_exeext
8857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008858 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008859 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008865 { ac_try='test -z "$ac_c_werror_flag"
8866 || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_cv_func_shl_load=yes
8879else
8880 echo "$as_me: failed program was:" >&5
8881sed 's/^/| /' conftest.$ac_ext >&5
8882
8883ac_cv_func_shl_load=no
8884fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008885rm -f conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008887fi
8888echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8889echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8890if test $ac_cv_func_shl_load = yes; then
8891 lt_cv_dlopen="shl_load"
8892else
8893 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8894echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8895if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897else
8898 ac_check_lib_save_LIBS=$LIBS
8899LIBS="-ldld $LIBS"
8900cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008901/* confdefs.h. */
8902_ACEOF
8903cat confdefs.h >>conftest.$ac_ext
8904cat >>conftest.$ac_ext <<_ACEOF
8905/* end confdefs.h. */
8906
8907/* Override any gcc2 internal prototype to avoid an error. */
8908#ifdef __cplusplus
8909extern "C"
8910#endif
8911/* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */
8913char shl_load ();
8914int
8915main ()
8916{
8917shl_load ();
8918 ;
8919 return 0;
8920}
8921_ACEOF
8922rm -f conftest.$ac_objext conftest$ac_exeext
8923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008924 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008925 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008931 { ac_try='test -z "$ac_c_werror_flag"
8932 || test ! -s conftest.err'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; } &&
8938 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 ac_cv_lib_dld_shl_load=yes
8945else
8946 echo "$as_me: failed program was:" >&5
8947sed 's/^/| /' conftest.$ac_ext >&5
8948
8949ac_cv_lib_dld_shl_load=no
8950fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008951rm -f conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008953LIBS=$ac_check_lib_save_LIBS
8954fi
8955echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8956echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8957if test $ac_cv_lib_dld_shl_load = yes; then
8958 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8959else
8960 echo "$as_me:$LINENO: checking for dlopen" >&5
8961echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8962if test "${ac_cv_func_dlopen+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964else
8965 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008966/* confdefs.h. */
8967_ACEOF
8968cat confdefs.h >>conftest.$ac_ext
8969cat >>conftest.$ac_ext <<_ACEOF
8970/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008971/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8973#define dlopen innocuous_dlopen
8974
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008975/* System header to define __stub macros and hopefully few prototypes,
8976 which can conflict with char dlopen (); below.
8977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8978 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008979
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008980#ifdef __STDC__
8981# include <limits.h>
8982#else
8983# include <assert.h>
8984#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06008985
8986#undef dlopen
8987
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06008988/* Override any gcc2 internal prototype to avoid an error. */
8989#ifdef __cplusplus
8990extern "C"
8991{
8992#endif
8993/* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */
8995char dlopen ();
8996/* The GNU C library defines this for functions which it implements
8997 to always fail with ENOSYS. Some functions are actually named
8998 something starting with __ and the normal name is an alias. */
8999#if defined (__stub_dlopen) || defined (__stub___dlopen)
9000choke me
9001#else
9002char (*f) () = dlopen;
9003#endif
9004#ifdef __cplusplus
9005}
9006#endif
9007
9008int
9009main ()
9010{
9011return f != dlopen;
9012 ;
9013 return 0;
9014}
9015_ACEOF
9016rm -f conftest.$ac_objext conftest$ac_exeext
9017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009018 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009019 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009020 grep -v '^ *+' conftest.er1 >conftest.err
9021 rm -f conftest.er1
9022 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009025 { ac_try='test -z "$ac_c_werror_flag"
9026 || test ! -s conftest.err'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; } &&
9032 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 ac_cv_func_dlopen=yes
9039else
9040 echo "$as_me: failed program was:" >&5
9041sed 's/^/| /' conftest.$ac_ext >&5
9042
9043ac_cv_func_dlopen=no
9044fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009045rm -f conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009047fi
9048echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9049echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9050if test $ac_cv_func_dlopen = yes; then
9051 lt_cv_dlopen="dlopen"
9052else
9053 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9054echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9055if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057else
9058 ac_check_lib_save_LIBS=$LIBS
9059LIBS="-ldl $LIBS"
9060cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009061/* confdefs.h. */
9062_ACEOF
9063cat confdefs.h >>conftest.$ac_ext
9064cat >>conftest.$ac_ext <<_ACEOF
9065/* end confdefs.h. */
9066
9067/* Override any gcc2 internal prototype to avoid an error. */
9068#ifdef __cplusplus
9069extern "C"
9070#endif
9071/* We use char because int might match the return type of a gcc2
9072 builtin and then its argument prototype would still apply. */
9073char dlopen ();
9074int
9075main ()
9076{
9077dlopen ();
9078 ;
9079 return 0;
9080}
9081_ACEOF
9082rm -f conftest.$ac_objext conftest$ac_exeext
9083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009084 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009085 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009091 { ac_try='test -z "$ac_c_werror_flag"
9092 || test ! -s conftest.err'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; } &&
9098 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 ac_cv_lib_dl_dlopen=yes
9105else
9106 echo "$as_me: failed program was:" >&5
9107sed 's/^/| /' conftest.$ac_ext >&5
9108
9109ac_cv_lib_dl_dlopen=no
9110fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009111rm -f conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009113LIBS=$ac_check_lib_save_LIBS
9114fi
9115echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9116echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9117if test $ac_cv_lib_dl_dlopen = yes; then
9118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9119else
9120 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9121echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9122if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125 ac_check_lib_save_LIBS=$LIBS
9126LIBS="-lsvld $LIBS"
9127cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009128/* confdefs.h. */
9129_ACEOF
9130cat confdefs.h >>conftest.$ac_ext
9131cat >>conftest.$ac_ext <<_ACEOF
9132/* end confdefs.h. */
9133
9134/* Override any gcc2 internal prototype to avoid an error. */
9135#ifdef __cplusplus
9136extern "C"
9137#endif
9138/* We use char because int might match the return type of a gcc2
9139 builtin and then its argument prototype would still apply. */
9140char dlopen ();
9141int
9142main ()
9143{
9144dlopen ();
9145 ;
9146 return 0;
9147}
9148_ACEOF
9149rm -f conftest.$ac_objext conftest$ac_exeext
9150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009151 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009152 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009158 { ac_try='test -z "$ac_c_werror_flag"
9159 || test ! -s conftest.err'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; } &&
9165 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_lib_svld_dlopen=yes
9172else
9173 echo "$as_me: failed program was:" >&5
9174sed 's/^/| /' conftest.$ac_ext >&5
9175
9176ac_cv_lib_svld_dlopen=no
9177fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009178rm -f conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009180LIBS=$ac_check_lib_save_LIBS
9181fi
9182echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9183echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9184if test $ac_cv_lib_svld_dlopen = yes; then
9185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9186else
9187 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9188echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9189if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192 ac_check_lib_save_LIBS=$LIBS
9193LIBS="-ldld $LIBS"
9194cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
9200
9201/* Override any gcc2 internal prototype to avoid an error. */
9202#ifdef __cplusplus
9203extern "C"
9204#endif
9205/* We use char because int might match the return type of a gcc2
9206 builtin and then its argument prototype would still apply. */
9207char dld_link ();
9208int
9209main ()
9210{
9211dld_link ();
9212 ;
9213 return 0;
9214}
9215_ACEOF
9216rm -f conftest.$ac_objext conftest$ac_exeext
9217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009218 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009219 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009225 { ac_try='test -z "$ac_c_werror_flag"
9226 || test ! -s conftest.err'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_cv_lib_dld_dld_link=yes
9239else
9240 echo "$as_me: failed program was:" >&5
9241sed 's/^/| /' conftest.$ac_ext >&5
9242
9243ac_cv_lib_dld_dld_link=no
9244fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009245rm -f conftest.err conftest.$ac_objext \
9246 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009247LIBS=$ac_check_lib_save_LIBS
9248fi
9249echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9250echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9251if test $ac_cv_lib_dld_dld_link = yes; then
9252 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9253fi
9254
9255
9256fi
9257
9258
9259fi
9260
9261
9262fi
9263
9264
9265fi
9266
9267
9268fi
9269
9270 ;;
9271 esac
9272
9273 if test "x$lt_cv_dlopen" != xno; then
9274 enable_dlopen=yes
9275 else
9276 enable_dlopen=no
9277 fi
9278
9279 case $lt_cv_dlopen in
9280 dlopen)
9281 save_CPPFLAGS="$CPPFLAGS"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009282 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009283
9284 save_LDFLAGS="$LDFLAGS"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009286
9287 save_LIBS="$LIBS"
9288 LIBS="$lt_cv_dlopen_libs $LIBS"
9289
9290 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9291echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9292if test "${lt_cv_dlopen_self+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294else
9295 if test "$cross_compiling" = yes; then :
9296 lt_cv_dlopen_self=cross
9297else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009299 lt_status=$lt_dlunknown
9300 cat > conftest.$ac_ext <<EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009301#line 9301 "configure"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009302#include "confdefs.h"
9303
9304#if HAVE_DLFCN_H
9305#include <dlfcn.h>
9306#endif
9307
9308#include <stdio.h>
9309
9310#ifdef RTLD_GLOBAL
9311# define LT_DLGLOBAL RTLD_GLOBAL
9312#else
9313# ifdef DL_GLOBAL
9314# define LT_DLGLOBAL DL_GLOBAL
9315# else
9316# define LT_DLGLOBAL 0
9317# endif
9318#endif
9319
9320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9321 find out it does not work in some platform. */
9322#ifndef LT_DLLAZY_OR_NOW
9323# ifdef RTLD_LAZY
9324# define LT_DLLAZY_OR_NOW RTLD_LAZY
9325# else
9326# ifdef DL_LAZY
9327# define LT_DLLAZY_OR_NOW DL_LAZY
9328# else
9329# ifdef RTLD_NOW
9330# define LT_DLLAZY_OR_NOW RTLD_NOW
9331# else
9332# ifdef DL_NOW
9333# define LT_DLLAZY_OR_NOW DL_NOW
9334# else
9335# define LT_DLLAZY_OR_NOW 0
9336# endif
9337# endif
9338# endif
9339# endif
9340#endif
9341
9342#ifdef __cplusplus
9343extern "C" void exit (int);
9344#endif
9345
9346void fnord() { int i=42;}
9347int main ()
9348{
9349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9350 int status = $lt_dlunknown;
9351
9352 if (self)
9353 {
9354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9356 /* dlclose (self); */
9357 }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009358 else
9359 puts (dlerror ());
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009360
9361 exit (status);
9362}
9363EOF
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009369 (./conftest; exit; ) >&5 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009370 lt_status=$?
9371 case x$lt_status in
9372 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9373 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009374 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009375 esac
9376 else :
9377 # compilation failed
9378 lt_cv_dlopen_self=no
9379 fi
9380fi
9381rm -fr conftest*
9382
9383
9384fi
9385echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9386echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9387
9388 if test "x$lt_cv_dlopen_self" = xyes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009389 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009390 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9391echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9392if test "${lt_cv_dlopen_self_static+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395 if test "$cross_compiling" = yes; then :
9396 lt_cv_dlopen_self_static=cross
9397else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009399 lt_status=$lt_dlunknown
9400 cat > conftest.$ac_ext <<EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009401#line 9401 "configure"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009402#include "confdefs.h"
9403
9404#if HAVE_DLFCN_H
9405#include <dlfcn.h>
9406#endif
9407
9408#include <stdio.h>
9409
9410#ifdef RTLD_GLOBAL
9411# define LT_DLGLOBAL RTLD_GLOBAL
9412#else
9413# ifdef DL_GLOBAL
9414# define LT_DLGLOBAL DL_GLOBAL
9415# else
9416# define LT_DLGLOBAL 0
9417# endif
9418#endif
9419
9420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9421 find out it does not work in some platform. */
9422#ifndef LT_DLLAZY_OR_NOW
9423# ifdef RTLD_LAZY
9424# define LT_DLLAZY_OR_NOW RTLD_LAZY
9425# else
9426# ifdef DL_LAZY
9427# define LT_DLLAZY_OR_NOW DL_LAZY
9428# else
9429# ifdef RTLD_NOW
9430# define LT_DLLAZY_OR_NOW RTLD_NOW
9431# else
9432# ifdef DL_NOW
9433# define LT_DLLAZY_OR_NOW DL_NOW
9434# else
9435# define LT_DLLAZY_OR_NOW 0
9436# endif
9437# endif
9438# endif
9439# endif
9440#endif
9441
9442#ifdef __cplusplus
9443extern "C" void exit (int);
9444#endif
9445
9446void fnord() { int i=42;}
9447int main ()
9448{
9449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9450 int status = $lt_dlunknown;
9451
9452 if (self)
9453 {
9454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9455 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9456 /* dlclose (self); */
9457 }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009458 else
9459 puts (dlerror ());
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009460
9461 exit (status);
9462}
9463EOF
9464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9465 (eval $ac_link) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009469 (./conftest; exit; ) >&5 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009470 lt_status=$?
9471 case x$lt_status in
9472 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9473 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009474 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009475 esac
9476 else :
9477 # compilation failed
9478 lt_cv_dlopen_self_static=no
9479 fi
9480fi
9481rm -fr conftest*
9482
9483
9484fi
9485echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9486echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9487 fi
9488
9489 CPPFLAGS="$save_CPPFLAGS"
9490 LDFLAGS="$save_LDFLAGS"
9491 LIBS="$save_LIBS"
9492 ;;
9493 esac
9494
9495 case $lt_cv_dlopen_self in
9496 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9497 *) enable_dlopen_self=unknown ;;
9498 esac
9499
9500 case $lt_cv_dlopen_self_static in
9501 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9502 *) enable_dlopen_self_static=unknown ;;
9503 esac
9504fi
9505
9506
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009507# Report which library types will actually be built
9508echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9509echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9510echo "$as_me:$LINENO: result: $can_build_shared" >&5
9511echo "${ECHO_T}$can_build_shared" >&6
9512
9513echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9514echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9515test "$can_build_shared" = "no" && enable_shared=no
9516
9517# On AIX, shared libraries and static libraries use the same namespace, and
9518# are all built from PIC.
9519case $host_os in
9520aix3*)
9521 test "$enable_shared" = yes && enable_static=no
9522 if test -n "$RANLIB"; then
9523 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9524 postinstall_cmds='$RANLIB $lib'
9525 fi
9526 ;;
9527
9528aix4* | aix5*)
9529 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9530 test "$enable_shared" = yes && enable_static=no
9531 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009532 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009533esac
9534echo "$as_me:$LINENO: result: $enable_shared" >&5
9535echo "${ECHO_T}$enable_shared" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009536
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009537echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9538echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9539# Make sure either enable_shared or enable_static is yes.
9540test "$enable_shared" = yes || enable_static=yes
9541echo "$as_me:$LINENO: result: $enable_static" >&5
9542echo "${ECHO_T}$enable_static" >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009543
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009544# The else clause should only fire when bootstrapping the
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009545# libtool distribution, otherwise you forgot to ship ltmain.sh
9546# with your package, and you will get complaints that there are
9547# no rules to generate ltmain.sh.
9548if test -f "$ltmain"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009549 # See if we are running on zsh, and set the options which allow our commands through
9550 # without removal of \ escapes.
9551 if test -n "${ZSH_VERSION+set}" ; then
9552 setopt NO_GLOB_SUBST
9553 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009554 # Now quote all the things that may contain metacharacters while being
9555 # careful not to overquote the AC_SUBSTed values. We take copies of the
9556 # variables and quote the copies for generation of the libtool script.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9558 SED SHELL STRIP \
9559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9561 deplibs_check_method reload_flag reload_cmds need_locks \
9562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9563 lt_cv_sys_global_symbol_to_c_name_address \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009565 old_postinstall_cmds old_postuninstall_cmds \
9566 compiler \
9567 CC \
9568 LD \
9569 lt_prog_compiler_wl \
9570 lt_prog_compiler_pic \
9571 lt_prog_compiler_static \
9572 lt_prog_compiler_no_builtin_flag \
9573 export_dynamic_flag_spec \
9574 thread_safe_flag_spec \
9575 whole_archive_flag_spec \
9576 enable_shared_with_static_runtimes \
9577 old_archive_cmds \
9578 old_archive_from_new_cmds \
9579 predep_objects \
9580 postdep_objects \
9581 predeps \
9582 postdeps \
9583 compiler_lib_search_path \
9584 archive_cmds \
9585 archive_expsym_cmds \
9586 postinstall_cmds \
9587 postuninstall_cmds \
9588 old_archive_from_expsyms_cmds \
9589 allow_undefined_flag \
9590 no_undefined_flag \
9591 export_symbols_cmds \
9592 hardcode_libdir_flag_spec \
9593 hardcode_libdir_flag_spec_ld \
9594 hardcode_libdir_separator \
9595 hardcode_automatic \
9596 module_cmds \
9597 module_expsym_cmds \
9598 lt_cv_prog_compiler_c_o \
9599 exclude_expsyms \
9600 include_expsyms; do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009601
9602 case $var in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009603 old_archive_cmds | \
9604 old_archive_from_new_cmds | \
9605 archive_cmds | \
9606 archive_expsym_cmds | \
9607 module_cmds | \
9608 module_expsym_cmds | \
9609 old_archive_from_expsyms_cmds | \
9610 export_symbols_cmds | \
9611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009612 postinstall_cmds | postuninstall_cmds | \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009613 old_postinstall_cmds | old_postuninstall_cmds | \
9614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009615 # Double-quote double-evaled strings.
9616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9617 ;;
9618 *)
9619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9620 ;;
9621 esac
9622 done
9623
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009624 case $lt_echo in
9625 *'\$0 --fallback-echo"')
9626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9627 ;;
9628 esac
9629
9630cfgfile="${ofile}T"
9631 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9632 $rm -f "$cfgfile"
9633 { echo "$as_me:$LINENO: creating $ofile" >&5
9634echo "$as_me: creating $ofile" >&6;}
9635
9636 cat <<__EOF__ >> "$cfgfile"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009637#! $SHELL
9638
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009639# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009640# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9641# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9642#
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009643# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9644# Free Software Foundation, Inc.
9645#
9646# This file is part of GNU Libtool:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009647# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9648#
9649# This program is free software; you can redistribute it and/or modify
9650# it under the terms of the GNU General Public License as published by
9651# the Free Software Foundation; either version 2 of the License, or
9652# (at your option) any later version.
9653#
9654# This program is distributed in the hope that it will be useful, but
9655# WITHOUT ANY WARRANTY; without even the implied warranty of
9656# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9657# General Public License for more details.
9658#
9659# You should have received a copy of the GNU General Public License
9660# along with this program; if not, write to the Free Software
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009661# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009662#
9663# As a special exception to the GNU General Public License, if you
9664# distribute this file as part of a program that contains a
9665# configuration script generated by Autoconf, you may include it under
9666# the same distribution terms that you use for the rest of that program.
9667
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009668# A sed program that does not truncate output.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009669SED=$lt_SED
9670
9671# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009672Xsed="$SED -e 1s/^X//"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009673
9674# The HP-UX ksh and POSIX shell print the target directory to stdout
9675# if CDPATH is set.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009676(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9677
9678# The names of the tagged configurations supported by this script.
9679available_tags=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009680
9681# ### BEGIN LIBTOOL CONFIG
9682
9683# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9684
9685# Shell to use when invoking shell scripts.
9686SHELL=$lt_SHELL
9687
9688# Whether or not to build shared libraries.
9689build_libtool_libs=$enable_shared
9690
9691# Whether or not to build static libraries.
9692build_old_libs=$enable_static
9693
9694# Whether or not to add -lc for building shared libraries.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009695build_libtool_need_lc=$archive_cmds_need_lc
9696
9697# Whether or not to disallow shared libs when runtime libs are static
9698allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009699
9700# Whether or not to optimize for fast installation.
9701fast_install=$enable_fast_install
9702
9703# The host system.
9704host_alias=$host_alias
9705host=$host
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009706host_os=$host_os
9707
9708# The build system.
9709build_alias=$build_alias
9710build=$build
9711build_os=$build_os
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009712
9713# An echo program that does not interpret backslashes.
9714echo=$lt_echo
9715
9716# The archiver.
9717AR=$lt_AR
9718AR_FLAGS=$lt_AR_FLAGS
9719
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009720# A C compiler.
9721LTCC=$lt_LTCC
9722
9723# LTCC compiler flags.
9724LTCFLAGS=$lt_LTCFLAGS
9725
9726# A language-specific compiler.
9727CC=$lt_compiler
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009728
9729# Is the compiler the GNU C compiler?
9730with_gcc=$GCC
9731
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009732# An ERE matcher.
9733EGREP=$lt_EGREP
9734
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009735# The linker used to build libraries.
9736LD=$lt_LD
9737
9738# Whether we need hard or soft links.
9739LN_S=$lt_LN_S
9740
9741# A BSD-compatible nm program.
9742NM=$lt_NM
9743
9744# A symbol stripping program
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009745STRIP=$lt_STRIP
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009746
9747# Used to examine libraries when file_magic_cmd begins "file"
9748MAGIC_CMD=$MAGIC_CMD
9749
9750# Used on cygwin: DLL creation program.
9751DLLTOOL="$DLLTOOL"
9752
9753# Used on cygwin: object dumper.
9754OBJDUMP="$OBJDUMP"
9755
9756# Used on cygwin: assembler.
9757AS="$AS"
9758
9759# The name of the directory that contains temporary libtool files.
9760objdir=$objdir
9761
9762# How to create reloadable object files.
9763reload_flag=$lt_reload_flag
9764reload_cmds=$lt_reload_cmds
9765
9766# How to pass a linker flag through the compiler.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009767wl=$lt_lt_prog_compiler_wl
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009768
9769# Object file suffix (normally "o").
9770objext="$ac_objext"
9771
9772# Old archive suffix (normally "a").
9773libext="$libext"
9774
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009775# Shared library suffix (normally ".so").
9776shrext_cmds='$shrext_cmds'
9777
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009778# Executable file suffix (normally "").
9779exeext="$exeext"
9780
9781# Additional compiler flags for building library objects.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009782pic_flag=$lt_lt_prog_compiler_pic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009783pic_mode=$pic_mode
9784
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009785# What is the maximum length of a command?
9786max_cmd_len=$lt_cv_sys_max_cmd_len
9787
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009788# Does compiler simultaneously support -c and -o options?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009789compiler_c_o=$lt_lt_cv_prog_compiler_c_o
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009790
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009791# Must we lock files when doing compilation?
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009792need_locks=$lt_need_locks
9793
9794# Do we need the lib prefix for modules?
9795need_lib_prefix=$need_lib_prefix
9796
9797# Do we need a version for libraries?
9798need_version=$need_version
9799
9800# Whether dlopen is supported.
9801dlopen_support=$enable_dlopen
9802
9803# Whether dlopen of programs is supported.
9804dlopen_self=$enable_dlopen_self
9805
9806# Whether dlopen of statically linked programs is supported.
9807dlopen_self_static=$enable_dlopen_self_static
9808
9809# Compiler flag to prevent dynamic linking.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009810link_static_flag=$lt_lt_prog_compiler_static
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009811
9812# Compiler flag to turn off builtin functions.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009813no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009814
9815# Compiler flag to allow reflexive dlopens.
9816export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9817
9818# Compiler flag to generate shared objects directly from archives.
9819whole_archive_flag_spec=$lt_whole_archive_flag_spec
9820
9821# Compiler flag to generate thread-safe objects.
9822thread_safe_flag_spec=$lt_thread_safe_flag_spec
9823
9824# Library versioning type.
9825version_type=$version_type
9826
9827# Format of library name prefix.
9828libname_spec=$lt_libname_spec
9829
9830# List of archive names. First name is the real one, the rest are links.
9831# The last name is the one that the linker finds with -lNAME.
9832library_names_spec=$lt_library_names_spec
9833
9834# The coded name of the library, if different from the real name.
9835soname_spec=$lt_soname_spec
9836
9837# Commands used to build and install an old-style archive.
9838RANLIB=$lt_RANLIB
9839old_archive_cmds=$lt_old_archive_cmds
9840old_postinstall_cmds=$lt_old_postinstall_cmds
9841old_postuninstall_cmds=$lt_old_postuninstall_cmds
9842
9843# Create an old-style archive from a shared archive.
9844old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9845
9846# Create a temporary old-style archive to link instead of a shared archive.
9847old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9848
9849# Commands used to build and install a shared archive.
9850archive_cmds=$lt_archive_cmds
9851archive_expsym_cmds=$lt_archive_expsym_cmds
9852postinstall_cmds=$lt_postinstall_cmds
9853postuninstall_cmds=$lt_postuninstall_cmds
9854
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009855# Commands used to build a loadable module (assumed same as above if empty)
9856module_cmds=$lt_module_cmds
9857module_expsym_cmds=$lt_module_expsym_cmds
9858
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009859# Commands to strip libraries.
9860old_striplib=$lt_old_striplib
9861striplib=$lt_striplib
9862
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009863# Dependencies to place before the objects being linked to create a
9864# shared library.
9865predep_objects=$lt_predep_objects
9866
9867# Dependencies to place after the objects being linked to create a
9868# shared library.
9869postdep_objects=$lt_postdep_objects
9870
9871# Dependencies to place before the objects being linked to create a
9872# shared library.
9873predeps=$lt_predeps
9874
9875# Dependencies to place after the objects being linked to create a
9876# shared library.
9877postdeps=$lt_postdeps
9878
9879# The library search path used internally by the compiler when linking
9880# a shared library.
9881compiler_lib_search_path=$lt_compiler_lib_search_path
9882
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009883# Method to check whether dependent libraries are shared objects.
9884deplibs_check_method=$lt_deplibs_check_method
9885
9886# Command to use when deplibs_check_method == file_magic.
9887file_magic_cmd=$lt_file_magic_cmd
9888
9889# Flag that allows shared libraries with undefined symbols to be built.
9890allow_undefined_flag=$lt_allow_undefined_flag
9891
9892# Flag that forces no undefined symbols.
9893no_undefined_flag=$lt_no_undefined_flag
9894
9895# Commands used to finish a libtool library installation in a directory.
9896finish_cmds=$lt_finish_cmds
9897
9898# Same as above, but a single script fragment to be evaled but not shown.
9899finish_eval=$lt_finish_eval
9900
9901# Take the output of nm and produce a listing of raw symbols and C names.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009902global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009903
9904# Transform the output of nm in a proper C declaration
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009905global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009906
9907# Transform the output of nm in a C name address pair
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009908global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009909
9910# This is the shared library runtime path variable.
9911runpath_var=$runpath_var
9912
9913# This is the shared library path variable.
9914shlibpath_var=$shlibpath_var
9915
9916# Is shlibpath searched before the hard-coded library search path?
9917shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9918
9919# How to hardcode a shared library path into an executable.
9920hardcode_action=$hardcode_action
9921
9922# Whether we should hardcode library paths into libraries.
9923hardcode_into_libs=$hardcode_into_libs
9924
9925# Flag to hardcode \$libdir into a binary during linking.
9926# This must work even if \$libdir does not exist.
9927hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9928
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009929# If ld is used when linking, flag to hardcode \$libdir into
9930# a binary during linking. This must work even if \$libdir does
9931# not exist.
9932hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9933
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009934# Whether we need a single -rpath flag with a separated argument.
9935hardcode_libdir_separator=$lt_hardcode_libdir_separator
9936
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009937# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009938# resulting binary.
9939hardcode_direct=$hardcode_direct
9940
9941# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9942# resulting binary.
9943hardcode_minus_L=$hardcode_minus_L
9944
9945# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9946# the resulting binary.
9947hardcode_shlibpath_var=$hardcode_shlibpath_var
9948
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009949# Set to yes if building a shared library automatically hardcodes DIR into the library
9950# and all subsequent libraries and executables linked against it.
9951hardcode_automatic=$hardcode_automatic
9952
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009953# Variables whose values should be saved in libtool wrapper scripts and
9954# restored at relink time.
9955variables_saved_for_relink="$variables_saved_for_relink"
9956
9957# Whether libtool must link a program against all its dependency libraries.
9958link_all_deplibs=$link_all_deplibs
9959
9960# Compile-time system search path for libraries
9961sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9962
9963# Run-time system search path for libraries
9964sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9965
9966# Fix the shell variable \$srcfile for the compiler.
9967fix_srcfile_path="$fix_srcfile_path"
9968
9969# Set to yes if exported symbols are required.
9970always_export_symbols=$always_export_symbols
9971
9972# The commands to list exported symbols.
9973export_symbols_cmds=$lt_export_symbols_cmds
9974
9975# The commands to extract the exported symbol list from a shared archive.
9976extract_expsyms_cmds=$lt_extract_expsyms_cmds
9977
9978# Symbols that should not be listed in the preloaded symbols.
9979exclude_expsyms=$lt_exclude_expsyms
9980
9981# Symbols that must always be exported.
9982include_expsyms=$lt_include_expsyms
9983
9984# ### END LIBTOOL CONFIG
9985
9986__EOF__
9987
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009988
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009989 case $host_os in
9990 aix3*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06009991 cat <<\EOF >> "$cfgfile"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009992
9993# AIX sometimes has problems with the GCC collect2 program. For some
9994# reason, if we set the COLLECT_NAMES environment variable, the problems
9995# vanish in a puff of smoke.
9996if test "X${COLLECT_NAMES+set}" != Xset; then
9997 COLLECT_NAMES=
9998 export COLLECT_NAMES
9999fi
10000EOF
10001 ;;
10002 esac
10003
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010004 # We use sed instead of cat because bash on DJGPP gets confused if
10005 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10006 # text mode, it properly converts lines to CR/LF. This bash problem
10007 # is reportedly fixed, but why not run on old versions too?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010008 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010009
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010010 mv -f "$cfgfile" "$ofile" || \
10011 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010012 chmod +x "$ofile"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010013
10014else
10015 # If there is no Makefile yet, we rely on a make rule to execute
10016 # `config.status --recheck' to rerun these tests and create the
10017 # libtool script then.
10018 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10019 if test -f "$ltmain_in"; then
10020 test -f Makefile && make "$ltmain"
10021 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060010022fi
10023
10024
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060010025ac_ext=c
10026ac_cpp='$CPP $CPPFLAGS'
10027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10029ac_compiler_gnu=$ac_cv_c_compiler_gnu
10030
10031CC="$lt_save_CC"
10032
10033
10034# Check whether --with-tags or --without-tags was given.
10035if test "${with_tags+set}" = set; then
10036 withval="$with_tags"
10037 tagnames="$withval"
10038fi;
10039
10040if test -f "$ltmain" && test -n "$tagnames"; then
10041 if test ! -f "${ofile}"; then
10042 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10043echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10044 fi
10045
10046 if test -z "$LTCC"; then
10047 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10048 if test -z "$LTCC"; then
10049 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10050echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10051 else
10052 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10053echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10054 fi
10055 fi
10056 if test -z "$LTCFLAGS"; then
10057 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10058 fi
10059
10060 # Extract list of available tagged configurations in $ofile.
10061 # Note that this assumes the entire list is on one line.
10062 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10063
10064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10065 for tagname in $tagnames; do
10066 IFS="$lt_save_ifs"
10067 # Check whether tagname contains only valid characters
10068 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10069 "") ;;
10070 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10071echo "$as_me: error: invalid tag name: $tagname" >&2;}
10072 { (exit 1); exit 1; }; }
10073 ;;
10074 esac
10075
10076 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10077 then
10078 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10079echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10080 { (exit 1); exit 1; }; }
10081 fi
10082
10083 # Update the list of available tags.
10084 if test -n "$tagname"; then
10085 echo appending configuration tag \"$tagname\" to $ofile
10086
10087 case $tagname in
10088 CXX)
10089 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10090 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10091 (test "X$CXX" != "Xg++"))) ; then
10092 ac_ext=cc
10093ac_cpp='$CXXCPP $CPPFLAGS'
10094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10097
10098
10099
10100
10101archive_cmds_need_lc_CXX=no
10102allow_undefined_flag_CXX=
10103always_export_symbols_CXX=no
10104archive_expsym_cmds_CXX=
10105export_dynamic_flag_spec_CXX=
10106hardcode_direct_CXX=no
10107hardcode_libdir_flag_spec_CXX=
10108hardcode_libdir_flag_spec_ld_CXX=
10109hardcode_libdir_separator_CXX=
10110hardcode_minus_L_CXX=no
10111hardcode_shlibpath_var_CXX=unsupported
10112hardcode_automatic_CXX=no
10113module_cmds_CXX=
10114module_expsym_cmds_CXX=
10115link_all_deplibs_CXX=unknown
10116old_archive_cmds_CXX=$old_archive_cmds
10117no_undefined_flag_CXX=
10118whole_archive_flag_spec_CXX=
10119enable_shared_with_static_runtimes_CXX=no
10120
10121# Dependencies to place before and after the object being linked:
10122predep_objects_CXX=
10123postdep_objects_CXX=
10124predeps_CXX=
10125postdeps_CXX=
10126compiler_lib_search_path_CXX=
10127
10128# Source file extension for C++ test sources.
10129ac_ext=cpp
10130
10131# Object file extension for compiled C++ test sources.
10132objext=o
10133objext_CXX=$objext
10134
10135# Code to be used in simple compile tests
10136lt_simple_compile_test_code="int some_variable = 0;\n"
10137
10138# Code to be used in simple link tests
10139lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10140
10141# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10142
10143# If no C compiler was specified, use CC.
10144LTCC=${LTCC-"$CC"}
10145
10146# If no C compiler flags were specified, use CFLAGS.
10147LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10148
10149# Allow CC to be a program name with arguments.
10150compiler=$CC
10151
10152
10153# save warnings/boilerplate of simple test code
10154ac_outfile=conftest.$ac_objext
10155printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10156eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10157_lt_compiler_boilerplate=`cat conftest.err`
10158$rm conftest*
10159
10160ac_outfile=conftest.$ac_objext
10161printf "$lt_simple_link_test_code" >conftest.$ac_ext
10162eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10163_lt_linker_boilerplate=`cat conftest.err`
10164$rm conftest*
10165
10166
10167# Allow CC to be a program name with arguments.
10168lt_save_CC=$CC
10169lt_save_LD=$LD
10170lt_save_GCC=$GCC
10171GCC=$GXX
10172lt_save_with_gnu_ld=$with_gnu_ld
10173lt_save_path_LD=$lt_cv_path_LD
10174if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10175 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10176else
10177 $as_unset lt_cv_prog_gnu_ld
10178fi
10179if test -n "${lt_cv_path_LDCXX+set}"; then
10180 lt_cv_path_LD=$lt_cv_path_LDCXX
10181else
10182 $as_unset lt_cv_path_LD
10183fi
10184test -z "${LDCXX+set}" || LD=$LDCXX
10185CC=${CXX-"c++"}
10186compiler=$CC
10187compiler_CXX=$CC
10188for cc_temp in $compiler""; do
10189 case $cc_temp in
10190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10192 \-*) ;;
10193 *) break;;
10194 esac
10195done
10196cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10197
10198
10199# We don't want -fno-exception wen compiling C++ code, so set the
10200# no_builtin_flag separately
10201if test "$GXX" = yes; then
10202 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10203else
10204 lt_prog_compiler_no_builtin_flag_CXX=
10205fi
10206
10207if test "$GXX" = yes; then
10208 # Set up default GNU C++ configuration
10209
10210
10211# Check whether --with-gnu-ld or --without-gnu-ld was given.
10212if test "${with_gnu_ld+set}" = set; then
10213 withval="$with_gnu_ld"
10214 test "$withval" = no || with_gnu_ld=yes
10215else
10216 with_gnu_ld=no
10217fi;
10218ac_prog=ld
10219if test "$GCC" = yes; then
10220 # Check if gcc -print-prog-name=ld gives a path.
10221 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10222echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10223 case $host in
10224 *-*-mingw*)
10225 # gcc leaves a trailing carriage return which upsets mingw
10226 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10227 *)
10228 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10229 esac
10230 case $ac_prog in
10231 # Accept absolute paths.
10232 [\\/]* | ?:[\\/]*)
10233 re_direlt='/[^/][^/]*/\.\./'
10234 # Canonicalize the pathname of ld
10235 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10236 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10237 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10238 done
10239 test -z "$LD" && LD="$ac_prog"
10240 ;;
10241 "")
10242 # If it fails, then pretend we aren't using GCC.
10243 ac_prog=ld
10244 ;;
10245 *)
10246 # If it is relative, then search for the first ld in PATH.
10247 with_gnu_ld=unknown
10248 ;;
10249 esac
10250elif test "$with_gnu_ld" = yes; then
10251 echo "$as_me:$LINENO: checking for GNU ld" >&5
10252echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10253else
10254 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10255echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10256fi
10257if test "${lt_cv_path_LD+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259else
10260 if test -z "$LD"; then
10261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10262 for ac_dir in $PATH; do
10263 IFS="$lt_save_ifs"
10264 test -z "$ac_dir" && ac_dir=.
10265 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10266 lt_cv_path_LD="$ac_dir/$ac_prog"
10267 # Check to see if the program is GNU ld. I'd rather use --version,
10268 # but apparently some variants of GNU ld only accept -v.
10269 # Break only if it was the GNU/non-GNU ld that we prefer.
10270 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10271 *GNU* | *'with BFD'*)
10272 test "$with_gnu_ld" != no && break
10273 ;;
10274 *)
10275 test "$with_gnu_ld" != yes && break
10276 ;;
10277 esac
10278 fi
10279 done
10280 IFS="$lt_save_ifs"
10281else
10282 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10283fi
10284fi
10285
10286LD="$lt_cv_path_LD"
10287if test -n "$LD"; then
10288 echo "$as_me:$LINENO: result: $LD" >&5
10289echo "${ECHO_T}$LD" >&6
10290else
10291 echo "$as_me:$LINENO: result: no" >&5
10292echo "${ECHO_T}no" >&6
10293fi
10294test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10295echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10296 { (exit 1); exit 1; }; }
10297echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10298echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10299if test "${lt_cv_prog_gnu_ld+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10303case `$LD -v 2>&1 </dev/null` in
10304*GNU* | *'with BFD'*)
10305 lt_cv_prog_gnu_ld=yes
10306 ;;
10307*)
10308 lt_cv_prog_gnu_ld=no
10309 ;;
10310esac
10311fi
10312echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10313echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10314with_gnu_ld=$lt_cv_prog_gnu_ld
10315
10316
10317
10318 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10319 # archiving commands below assume that GNU ld is being used.
10320 if test "$with_gnu_ld" = yes; then
10321 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10322 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'
10323
10324 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10325 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10326
10327 # If archive_cmds runs LD, not CC, wlarc should be empty
10328 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10329 # investigate it a little bit more. (MM)
10330 wlarc='${wl}'
10331
10332 # ancient GNU ld didn't support --whole-archive et. al.
10333 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10334 grep 'no-whole-archive' > /dev/null; then
10335 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10336 else
10337 whole_archive_flag_spec_CXX=
10338 fi
10339 else
10340 with_gnu_ld=no
10341 wlarc=
10342
10343 # A generic and very simple default shared library creation
10344 # command for GNU C++ for the case where it uses the native
10345 # linker, instead of GNU ld. If possible, this setting should
10346 # overridden to take advantage of the native linker features on
10347 # the platform it is being used on.
10348 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10349 fi
10350
10351 # Commands to make compiler produce verbose output that lists
10352 # what "hidden" libraries, object files and flags are used when
10353 # linking a shared library.
10354 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10355
10356else
10357 GXX=no
10358 with_gnu_ld=no
10359 wlarc=
10360fi
10361
10362# PORTME: fill in a description of your system's C++ link characteristics
10363echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10364echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10365ld_shlibs_CXX=yes
10366case $host_os in
10367 aix3*)
10368 # FIXME: insert proper C++ library support
10369 ld_shlibs_CXX=no
10370 ;;
10371 aix4* | aix5*)
10372 if test "$host_cpu" = ia64; then
10373 # On IA64, the linker does run time linking by default, so we don't
10374 # have to do anything special.
10375 aix_use_runtimelinking=no
10376 exp_sym_flag='-Bexport'
10377 no_entry_flag=""
10378 else
10379 aix_use_runtimelinking=no
10380
10381 # Test if we are trying to use run time linking or normal
10382 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10383 # need to do runtime linking.
10384 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10385 for ld_flag in $LDFLAGS; do
10386 case $ld_flag in
10387 *-brtl*)
10388 aix_use_runtimelinking=yes
10389 break
10390 ;;
10391 esac
10392 done
10393 ;;
10394 esac
10395
10396 exp_sym_flag='-bexport'
10397 no_entry_flag='-bnoentry'
10398 fi
10399
10400 # When large executables or shared objects are built, AIX ld can
10401 # have problems creating the table of contents. If linking a library
10402 # or program results in "error TOC overflow" add -mminimal-toc to
10403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10405
10406 archive_cmds_CXX=''
10407 hardcode_direct_CXX=yes
10408 hardcode_libdir_separator_CXX=':'
10409 link_all_deplibs_CXX=yes
10410
10411 if test "$GXX" = yes; then
10412 case $host_os in aix4.[012]|aix4.[012].*)
10413 # We only want to do this on AIX 4.2 and lower, the check
10414 # below for broken collect2 doesn't work under 4.3+
10415 collect2name=`${CC} -print-prog-name=collect2`
10416 if test -f "$collect2name" && \
10417 strings "$collect2name" | grep resolve_lib_name >/dev/null
10418 then
10419 # We have reworked collect2
10420 hardcode_direct_CXX=yes
10421 else
10422 # We have old collect2
10423 hardcode_direct_CXX=unsupported
10424 # It fails to find uninstalled libraries when the uninstalled
10425 # path is not listed in the libpath. Setting hardcode_minus_L
10426 # to unsupported forces relinking
10427 hardcode_minus_L_CXX=yes
10428 hardcode_libdir_flag_spec_CXX='-L$libdir'
10429 hardcode_libdir_separator_CXX=
10430 fi
10431 ;;
10432 esac
10433 shared_flag='-shared'
10434 if test "$aix_use_runtimelinking" = yes; then
10435 shared_flag="$shared_flag "'${wl}-G'
10436 fi
10437 else
10438 # not using gcc
10439 if test "$host_cpu" = ia64; then
10440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10441 # chokes on -Wl,-G. The following line is correct:
10442 shared_flag='-G'
10443 else
10444 if test "$aix_use_runtimelinking" = yes; then
10445 shared_flag='${wl}-G'
10446 else
10447 shared_flag='${wl}-bM:SRE'
10448 fi
10449 fi
10450 fi
10451
10452 # It seems that -bexpall does not export symbols beginning with
10453 # underscore (_), so it is better to generate a list of symbols to export.
10454 always_export_symbols_CXX=yes
10455 if test "$aix_use_runtimelinking" = yes; then
10456 # Warning - without using the other runtime loading flags (-brtl),
10457 # -berok will link without error, but may produce a broken library.
10458 allow_undefined_flag_CXX='-berok'
10459 # Determine the default libpath from the value encoded in an empty executable.
10460 cat >conftest.$ac_ext <<_ACEOF
10461/* confdefs.h. */
10462_ACEOF
10463cat confdefs.h >>conftest.$ac_ext
10464cat >>conftest.$ac_ext <<_ACEOF
10465/* end confdefs.h. */
10466
10467int
10468main ()
10469{
10470
10471 ;
10472 return 0;
10473}
10474_ACEOF
10475rm -f conftest.$ac_objext conftest$ac_exeext
10476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } &&
10484 { ac_try='test -z "$ac_cxx_werror_flag"
10485 || test ! -s conftest.err'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; } &&
10491 { ac_try='test -s conftest$ac_exeext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10497
10498aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10499}'`
10500# Check for a 64-bit object if we didn't find anything.
10501if 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; }
10502}'`; fi
10503else
10504 echo "$as_me: failed program was:" >&5
10505sed 's/^/| /' conftest.$ac_ext >&5
10506
10507fi
10508rm -f conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10511
10512 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10513
10514 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"
10515 else
10516 if test "$host_cpu" = ia64; then
10517 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10518 allow_undefined_flag_CXX="-z nodefs"
10519 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"
10520 else
10521 # Determine the default libpath from the value encoded in an empty executable.
10522 cat >conftest.$ac_ext <<_ACEOF
10523/* confdefs.h. */
10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h. */
10528
10529int
10530main ()
10531{
10532
10533 ;
10534 return 0;
10535}
10536_ACEOF
10537rm -f conftest.$ac_objext conftest$ac_exeext
10538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_cxx_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559
10560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10561}'`
10562# Check for a 64-bit object if we didn't find anything.
10563if 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; }
10564}'`; fi
10565else
10566 echo "$as_me: failed program was:" >&5
10567sed 's/^/| /' conftest.$ac_ext >&5
10568
10569fi
10570rm -f conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10573
10574 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10575 # Warning - without using the other run time loading flags,
10576 # -berok will link without error, but may produce a broken library.
10577 no_undefined_flag_CXX=' ${wl}-bernotok'
10578 allow_undefined_flag_CXX=' ${wl}-berok'
10579 # Exported symbols can be pulled into shared objects from archives
10580 whole_archive_flag_spec_CXX='$convenience'
10581 archive_cmds_need_lc_CXX=yes
10582 # This is similar to how AIX traditionally builds its shared libraries.
10583 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'
10584 fi
10585 fi
10586 ;;
10587
10588 beos*)
10589 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10590 allow_undefined_flag_CXX=unsupported
10591 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10592 # support --undefined. This deserves some investigation. FIXME
10593 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594 else
10595 ld_shlibs_CXX=no
10596 fi
10597 ;;
10598
10599 chorus*)
10600 case $cc_basename in
10601 *)
10602 # FIXME: insert proper C++ library support
10603 ld_shlibs_CXX=no
10604 ;;
10605 esac
10606 ;;
10607
10608 cygwin* | mingw* | pw32*)
10609 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10610 # as there is no search path for DLLs.
10611 hardcode_libdir_flag_spec_CXX='-L$libdir'
10612 allow_undefined_flag_CXX=unsupported
10613 always_export_symbols_CXX=no
10614 enable_shared_with_static_runtimes_CXX=yes
10615
10616 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10617 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'
10618 # If the export-symbols file already is a .def file (1st line
10619 # is EXPORTS), use it as is; otherwise, prepend...
10620 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10621 cp $export_symbols $output_objdir/$soname.def;
10622 else
10623 echo EXPORTS > $output_objdir/$soname.def;
10624 cat $export_symbols >> $output_objdir/$soname.def;
10625 fi~
10626 $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'
10627 else
10628 ld_shlibs_CXX=no
10629 fi
10630 ;;
10631 darwin* | rhapsody*)
10632 case $host_os in
10633 rhapsody* | darwin1.[012])
10634 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10635 ;;
10636 *) # Darwin 1.3 on
10637 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10638 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10639 else
10640 case ${MACOSX_DEPLOYMENT_TARGET} in
10641 10.[012])
10642 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10643 ;;
10644 10.*)
10645 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10646 ;;
10647 esac
10648 fi
10649 ;;
10650 esac
10651 archive_cmds_need_lc_CXX=no
10652 hardcode_direct_CXX=no
10653 hardcode_automatic_CXX=yes
10654 hardcode_shlibpath_var_CXX=unsupported
10655 whole_archive_flag_spec_CXX=''
10656 link_all_deplibs_CXX=yes
10657
10658 if test "$GXX" = yes ; then
10659 lt_int_apple_cc_single_mod=no
10660 output_verbose_link_cmd='echo'
10661 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10662 lt_int_apple_cc_single_mod=yes
10663 fi
10664 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10665 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10666 else
10667 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'
10668 fi
10669 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10670 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10671 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10672 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}'
10673 else
10674 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}'
10675 fi
10676 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}'
10677 else
10678 case $cc_basename in
10679 xlc*)
10680 output_verbose_link_cmd='echo'
10681 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'
10682 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10683 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10684 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}'
10685 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}'
10686 ;;
10687 *)
10688 ld_shlibs_CXX=no
10689 ;;
10690 esac
10691 fi
10692 ;;
10693
10694 dgux*)
10695 case $cc_basename in
10696 ec++*)
10697 # FIXME: insert proper C++ library support
10698 ld_shlibs_CXX=no
10699 ;;
10700 ghcx*)
10701 # Green Hills C++ Compiler
10702 # FIXME: insert proper C++ library support
10703 ld_shlibs_CXX=no
10704 ;;
10705 *)
10706 # FIXME: insert proper C++ library support
10707 ld_shlibs_CXX=no
10708 ;;
10709 esac
10710 ;;
10711 freebsd[12]*)
10712 # C++ shared libraries reported to be fairly broken before switch to ELF
10713 ld_shlibs_CXX=no
10714 ;;
10715 freebsd-elf*)
10716 archive_cmds_need_lc_CXX=no
10717 ;;
10718 freebsd* | kfreebsd*-gnu | dragonfly*)
10719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10720 # conventions
10721 ld_shlibs_CXX=yes
10722 ;;
10723 gnu*)
10724 ;;
10725 hpux9*)
10726 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10727 hardcode_libdir_separator_CXX=:
10728 export_dynamic_flag_spec_CXX='${wl}-E'
10729 hardcode_direct_CXX=yes
10730 hardcode_minus_L_CXX=yes # Not in the search PATH,
10731 # but as the default
10732 # location of the library.
10733
10734 case $cc_basename in
10735 CC*)
10736 # FIXME: insert proper C++ library support
10737 ld_shlibs_CXX=no
10738 ;;
10739 aCC*)
10740 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'
10741 # Commands to make compiler produce verbose output that lists
10742 # what "hidden" libraries, object files and flags are used when
10743 # linking a shared library.
10744 #
10745 # There doesn't appear to be a way to prevent this compiler from
10746 # explicitly linking system object files so we need to strip them
10747 # from the output so that they don't get included in the library
10748 # dependencies.
10749 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'
10750 ;;
10751 *)
10752 if test "$GXX" = yes; then
10753 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'
10754 else
10755 # FIXME: insert proper C++ library support
10756 ld_shlibs_CXX=no
10757 fi
10758 ;;
10759 esac
10760 ;;
10761 hpux10*|hpux11*)
10762 if test $with_gnu_ld = no; then
10763 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10764 hardcode_libdir_separator_CXX=:
10765
10766 case $host_cpu in
10767 hppa*64*|ia64*)
10768 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10769 ;;
10770 *)
10771 export_dynamic_flag_spec_CXX='${wl}-E'
10772 ;;
10773 esac
10774 fi
10775 case $host_cpu in
10776 hppa*64*|ia64*)
10777 hardcode_direct_CXX=no
10778 hardcode_shlibpath_var_CXX=no
10779 ;;
10780 *)
10781 hardcode_direct_CXX=yes
10782 hardcode_minus_L_CXX=yes # Not in the search PATH,
10783 # but as the default
10784 # location of the library.
10785 ;;
10786 esac
10787
10788 case $cc_basename in
10789 CC*)
10790 # FIXME: insert proper C++ library support
10791 ld_shlibs_CXX=no
10792 ;;
10793 aCC*)
10794 case $host_cpu in
10795 hppa*64*)
10796 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10797 ;;
10798 ia64*)
10799 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10800 ;;
10801 *)
10802 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10803 ;;
10804 esac
10805 # Commands to make compiler produce verbose output that lists
10806 # what "hidden" libraries, object files and flags are used when
10807 # linking a shared library.
10808 #
10809 # There doesn't appear to be a way to prevent this compiler from
10810 # explicitly linking system object files so we need to strip them
10811 # from the output so that they don't get included in the library
10812 # dependencies.
10813 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'
10814 ;;
10815 *)
10816 if test "$GXX" = yes; then
10817 if test $with_gnu_ld = no; then
10818 case $host_cpu in
10819 hppa*64*)
10820 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10821 ;;
10822 ia64*)
10823 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10824 ;;
10825 *)
10826 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'
10827 ;;
10828 esac
10829 fi
10830 else
10831 # FIXME: insert proper C++ library support
10832 ld_shlibs_CXX=no
10833 fi
10834 ;;
10835 esac
10836 ;;
10837 interix3*)
10838 hardcode_direct_CXX=no
10839 hardcode_shlibpath_var_CXX=no
10840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10841 export_dynamic_flag_spec_CXX='${wl}-E'
10842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10843 # Instead, shared libraries are loaded at an image base (0x10000000 by
10844 # default) and relocated if they conflict, which is a slow very memory
10845 # consuming and fragmenting process. To avoid this, we pick a random,
10846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10847 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10848 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'
10849 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'
10850 ;;
10851 irix5* | irix6*)
10852 case $cc_basename in
10853 CC*)
10854 # SGI C++
10855 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'
10856
10857 # Archives containing C++ object files must be created using
10858 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10859 # necessary to make sure instantiated templates are included
10860 # in the archive.
10861 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10862 ;;
10863 *)
10864 if test "$GXX" = yes; then
10865 if test "$with_gnu_ld" = no; then
10866 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'
10867 else
10868 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'
10869 fi
10870 fi
10871 link_all_deplibs_CXX=yes
10872 ;;
10873 esac
10874 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10875 hardcode_libdir_separator_CXX=:
10876 ;;
10877 linux*)
10878 case $cc_basename in
10879 KCC*)
10880 # Kuck and Associates, Inc. (KAI) C++ Compiler
10881
10882 # KCC will only create a shared library if the output file
10883 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10884 # to its proper name (with version) after linking.
10885 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'
10886 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'
10887 # Commands to make compiler produce verbose output that lists
10888 # what "hidden" libraries, object files and flags are used when
10889 # linking a shared library.
10890 #
10891 # There doesn't appear to be a way to prevent this compiler from
10892 # explicitly linking system object files so we need to strip them
10893 # from the output so that they don't get included in the library
10894 # dependencies.
10895 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'
10896
10897 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10898 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10899
10900 # Archives containing C++ object files must be created using
10901 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10902 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10903 ;;
10904 icpc*)
10905 # Intel C++
10906 with_gnu_ld=yes
10907 # version 8.0 and above of icpc choke on multiply defined symbols
10908 # if we add $predep_objects and $postdep_objects, however 7.1 and
10909 # earlier do not add the objects themselves.
10910 case `$CC -V 2>&1` in
10911 *"Version 7."*)
10912 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10913 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'
10914 ;;
10915 *) # Version 8.0 or newer
10916 tmp_idyn=
10917 case $host_cpu in
10918 ia64*) tmp_idyn=' -i_dynamic';;
10919 esac
10920 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10921 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'
10922 ;;
10923 esac
10924 archive_cmds_need_lc_CXX=no
10925 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10926 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10927 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10928 ;;
10929 pgCC*)
10930 # Portland Group C++ compiler
10931 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10932 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'
10933
10934 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10935 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10936 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'
10937 ;;
10938 cxx*)
10939 # Compaq C++
10940 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10941 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'
10942
10943 runpath_var=LD_RUN_PATH
10944 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10945 hardcode_libdir_separator_CXX=:
10946
10947 # Commands to make compiler produce verbose output that lists
10948 # what "hidden" libraries, object files and flags are used when
10949 # linking a shared library.
10950 #
10951 # There doesn't appear to be a way to prevent this compiler from
10952 # explicitly linking system object files so we need to strip them
10953 # from the output so that they don't get included in the library
10954 # dependencies.
10955 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'
10956 ;;
10957 esac
10958 ;;
10959 lynxos*)
10960 # FIXME: insert proper C++ library support
10961 ld_shlibs_CXX=no
10962 ;;
10963 m88k*)
10964 # FIXME: insert proper C++ library support
10965 ld_shlibs_CXX=no
10966 ;;
10967 mvs*)
10968 case $cc_basename in
10969 cxx*)
10970 # FIXME: insert proper C++ library support
10971 ld_shlibs_CXX=no
10972 ;;
10973 *)
10974 # FIXME: insert proper C++ library support
10975 ld_shlibs_CXX=no
10976 ;;
10977 esac
10978 ;;
10979 netbsd*)
10980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10981 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10982 wlarc=
10983 hardcode_libdir_flag_spec_CXX='-R$libdir'
10984 hardcode_direct_CXX=yes
10985 hardcode_shlibpath_var_CXX=no
10986 fi
10987 # Workaround some broken pre-1.5 toolchains
10988 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10989 ;;
10990 openbsd2*)
10991 # C++ shared libraries are fairly broken
10992 ld_shlibs_CXX=no
10993 ;;
10994 openbsd*)
10995 hardcode_direct_CXX=yes
10996 hardcode_shlibpath_var_CXX=no
10997 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11000 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11001 export_dynamic_flag_spec_CXX='${wl}-E'
11002 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11003 fi
11004 output_verbose_link_cmd='echo'
11005 ;;
11006 osf3*)
11007 case $cc_basename in
11008 KCC*)
11009 # Kuck and Associates, Inc. (KAI) C++ Compiler
11010
11011 # KCC will only create a shared library if the output file
11012 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11013 # to its proper name (with version) after linking.
11014 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'
11015
11016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11017 hardcode_libdir_separator_CXX=:
11018
11019 # Archives containing C++ object files must be created using
11020 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11021 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11022
11023 ;;
11024 RCC*)
11025 # Rational C++ 2.4.1
11026 # FIXME: insert proper C++ library support
11027 ld_shlibs_CXX=no
11028 ;;
11029 cxx*)
11030 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11031 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'
11032
11033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11034 hardcode_libdir_separator_CXX=:
11035
11036 # Commands to make compiler produce verbose output that lists
11037 # what "hidden" libraries, object files and flags are used when
11038 # linking a shared library.
11039 #
11040 # There doesn't appear to be a way to prevent this compiler from
11041 # explicitly linking system object files so we need to strip them
11042 # from the output so that they don't get included in the library
11043 # dependencies.
11044 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'
11045 ;;
11046 *)
11047 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11049 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'
11050
11051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11052 hardcode_libdir_separator_CXX=:
11053
11054 # Commands to make compiler produce verbose output that lists
11055 # what "hidden" libraries, object files and flags are used when
11056 # linking a shared library.
11057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11058
11059 else
11060 # FIXME: insert proper C++ library support
11061 ld_shlibs_CXX=no
11062 fi
11063 ;;
11064 esac
11065 ;;
11066 osf4* | osf5*)
11067 case $cc_basename in
11068 KCC*)
11069 # Kuck and Associates, Inc. (KAI) C++ Compiler
11070
11071 # KCC will only create a shared library if the output file
11072 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11073 # to its proper name (with version) after linking.
11074 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'
11075
11076 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11077 hardcode_libdir_separator_CXX=:
11078
11079 # Archives containing C++ object files must be created using
11080 # the KAI C++ compiler.
11081 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11082 ;;
11083 RCC*)
11084 # Rational C++ 2.4.1
11085 # FIXME: insert proper C++ library support
11086 ld_shlibs_CXX=no
11087 ;;
11088 cxx*)
11089 allow_undefined_flag_CXX=' -expect_unresolved \*'
11090 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'
11091 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11092 echo "-hidden">> $lib.exp~
11093 $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~
11094 $rm $lib.exp'
11095
11096 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11097 hardcode_libdir_separator_CXX=:
11098
11099 # Commands to make compiler produce verbose output that lists
11100 # what "hidden" libraries, object files and flags are used when
11101 # linking a shared library.
11102 #
11103 # There doesn't appear to be a way to prevent this compiler from
11104 # explicitly linking system object files so we need to strip them
11105 # from the output so that they don't get included in the library
11106 # dependencies.
11107 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'
11108 ;;
11109 *)
11110 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11111 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11112 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'
11113
11114 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11115 hardcode_libdir_separator_CXX=:
11116
11117 # Commands to make compiler produce verbose output that lists
11118 # what "hidden" libraries, object files and flags are used when
11119 # linking a shared library.
11120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11121
11122 else
11123 # FIXME: insert proper C++ library support
11124 ld_shlibs_CXX=no
11125 fi
11126 ;;
11127 esac
11128 ;;
11129 psos*)
11130 # FIXME: insert proper C++ library support
11131 ld_shlibs_CXX=no
11132 ;;
11133 sunos4*)
11134 case $cc_basename in
11135 CC*)
11136 # Sun C++ 4.x
11137 # FIXME: insert proper C++ library support
11138 ld_shlibs_CXX=no
11139 ;;
11140 lcc*)
11141 # Lucid
11142 # FIXME: insert proper C++ library support
11143 ld_shlibs_CXX=no
11144 ;;
11145 *)
11146 # FIXME: insert proper C++ library support
11147 ld_shlibs_CXX=no
11148 ;;
11149 esac
11150 ;;
11151 solaris*)
11152 case $cc_basename in
11153 CC*)
11154 # Sun C++ 4.2, 5.x and Centerline C++
11155 archive_cmds_need_lc_CXX=yes
11156 no_undefined_flag_CXX=' -zdefs'
11157 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11158 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11159 $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'
11160
11161 hardcode_libdir_flag_spec_CXX='-R$libdir'
11162 hardcode_shlibpath_var_CXX=no
11163 case $host_os in
11164 solaris2.[0-5] | solaris2.[0-5].*) ;;
11165 *)
11166 # The C++ compiler is used as linker so we must use $wl
11167 # flag to pass the commands to the underlying system
11168 # linker. We must also pass each convience library through
11169 # to the system linker between allextract/defaultextract.
11170 # The C++ compiler will combine linker options so we
11171 # cannot just pass the convience library names through
11172 # without $wl.
11173 # Supported since Solaris 2.6 (maybe 2.5.1?)
11174 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'
11175 ;;
11176 esac
11177 link_all_deplibs_CXX=yes
11178
11179 output_verbose_link_cmd='echo'
11180
11181 # Archives containing C++ object files must be created using
11182 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11183 # necessary to make sure instantiated templates are included
11184 # in the archive.
11185 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11186 ;;
11187 gcx*)
11188 # Green Hills C++ Compiler
11189 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11190
11191 # The C++ compiler must be used to create the archive.
11192 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11193 ;;
11194 *)
11195 # GNU C++ compiler with Solaris linker
11196 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11197 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11198 if $CC --version | grep -v '^2\.7' > /dev/null; then
11199 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11200 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11201 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11202
11203 # Commands to make compiler produce verbose output that lists
11204 # what "hidden" libraries, object files and flags are used when
11205 # linking a shared library.
11206 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11207 else
11208 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11209 # platform.
11210 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11211 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11212 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11213
11214 # Commands to make compiler produce verbose output that lists
11215 # what "hidden" libraries, object files and flags are used when
11216 # linking a shared library.
11217 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11218 fi
11219
11220 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11221 fi
11222 ;;
11223 esac
11224 ;;
11225 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11226 no_undefined_flag_CXX='${wl}-z,text'
11227 archive_cmds_need_lc_CXX=no
11228 hardcode_shlibpath_var_CXX=no
11229 runpath_var='LD_RUN_PATH'
11230
11231 case $cc_basename in
11232 CC*)
11233 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11234 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11235 ;;
11236 *)
11237 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11238 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11239 ;;
11240 esac
11241 ;;
11242 sysv5* | sco3.2v5* | sco5v6*)
11243 # Note: We can NOT use -z defs as we might desire, because we do not
11244 # link with -lc, and that would cause any symbols used from libc to
11245 # always be unresolved, which means just about no library would
11246 # ever link correctly. If we're not using GNU ld we use -z text
11247 # though, which does catch some bad symbols but isn't as heavy-handed
11248 # as -z defs.
11249 # For security reasons, it is highly recommended that you always
11250 # use absolute paths for naming shared libraries, and exclude the
11251 # DT_RUNPATH tag from executables and libraries. But doing so
11252 # requires that you compile everything twice, which is a pain.
11253 # So that behaviour is only enabled if SCOABSPATH is set to a
11254 # non-empty value in the environment. Most likely only useful for
11255 # creating official distributions of packages.
11256 # This is a hack until libtool officially supports absolute path
11257 # names for shared libraries.
11258 no_undefined_flag_CXX='${wl}-z,text'
11259 allow_undefined_flag_CXX='${wl}-z,nodefs'
11260 archive_cmds_need_lc_CXX=no
11261 hardcode_shlibpath_var_CXX=no
11262 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11263 hardcode_libdir_separator_CXX=':'
11264 link_all_deplibs_CXX=yes
11265 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11266 runpath_var='LD_RUN_PATH'
11267
11268 case $cc_basename in
11269 CC*)
11270 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11271 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11272 ;;
11273 *)
11274 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11275 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11276 ;;
11277 esac
11278 ;;
11279 tandem*)
11280 case $cc_basename in
11281 NCC*)
11282 # NonStop-UX NCC 3.20
11283 # FIXME: insert proper C++ library support
11284 ld_shlibs_CXX=no
11285 ;;
11286 *)
11287 # FIXME: insert proper C++ library support
11288 ld_shlibs_CXX=no
11289 ;;
11290 esac
11291 ;;
11292 vxworks*)
11293 # FIXME: insert proper C++ library support
11294 ld_shlibs_CXX=no
11295 ;;
11296 *)
11297 # FIXME: insert proper C++ library support
11298 ld_shlibs_CXX=no
11299 ;;
11300esac
11301echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11302echo "${ECHO_T}$ld_shlibs_CXX" >&6
11303test "$ld_shlibs_CXX" = no && can_build_shared=no
11304
11305GCC_CXX="$GXX"
11306LD_CXX="$LD"
11307
11308
11309cat > conftest.$ac_ext <<EOF
11310class Foo
11311{
11312public:
11313 Foo (void) { a = 0; }
11314private:
11315 int a;
11316};
11317EOF
11318
11319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320 (eval $ac_compile) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; then
11324 # Parse the compiler output and extract the necessary
11325 # objects, libraries and library flags.
11326
11327 # Sentinel used to keep track of whether or not we are before
11328 # the conftest object file.
11329 pre_test_object_deps_done=no
11330
11331 # The `*' in the case matches for architectures that use `case' in
11332 # $output_verbose_cmd can trigger glob expansion during the loop
11333 # eval without this substitution.
11334 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11335
11336 for p in `eval $output_verbose_link_cmd`; do
11337 case $p in
11338
11339 -L* | -R* | -l*)
11340 # Some compilers place space between "-{L,R}" and the path.
11341 # Remove the space.
11342 if test $p = "-L" \
11343 || test $p = "-R"; then
11344 prev=$p
11345 continue
11346 else
11347 prev=
11348 fi
11349
11350 if test "$pre_test_object_deps_done" = no; then
11351 case $p in
11352 -L* | -R*)
11353 # Internal compiler library paths should come after those
11354 # provided the user. The postdeps already come after the
11355 # user supplied libs so there is no need to process them.
11356 if test -z "$compiler_lib_search_path_CXX"; then
11357 compiler_lib_search_path_CXX="${prev}${p}"
11358 else
11359 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11360 fi
11361 ;;
11362 # The "-l" case would never come before the object being
11363 # linked, so don't bother handling this case.
11364 esac
11365 else
11366 if test -z "$postdeps_CXX"; then
11367 postdeps_CXX="${prev}${p}"
11368 else
11369 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11370 fi
11371 fi
11372 ;;
11373
11374 *.$objext)
11375 # This assumes that the test object file only shows up
11376 # once in the compiler output.
11377 if test "$p" = "conftest.$objext"; then
11378 pre_test_object_deps_done=yes
11379 continue
11380 fi
11381
11382 if test "$pre_test_object_deps_done" = no; then
11383 if test -z "$predep_objects_CXX"; then
11384 predep_objects_CXX="$p"
11385 else
11386 predep_objects_CXX="$predep_objects_CXX $p"
11387 fi
11388 else
11389 if test -z "$postdep_objects_CXX"; then
11390 postdep_objects_CXX="$p"
11391 else
11392 postdep_objects_CXX="$postdep_objects_CXX $p"
11393 fi
11394 fi
11395 ;;
11396
11397 *) ;; # Ignore the rest.
11398
11399 esac
11400 done
11401
11402 # Clean up.
11403 rm -f a.out a.exe
11404else
11405 echo "libtool.m4: error: problem compiling CXX test program"
11406fi
11407
11408$rm -f confest.$objext
11409
11410# PORTME: override above test on systems where it is broken
11411case $host_os in
11412interix3*)
11413 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11414 # hack all around it, let's just trust "g++" to DTRT.
11415 predep_objects_CXX=
11416 postdep_objects_CXX=
11417 postdeps_CXX=
11418 ;;
11419
11420solaris*)
11421 case $cc_basename in
11422 CC*)
11423 # Adding this requires a known-good setup of shared libraries for
11424 # Sun compiler versions before 5.6, else PIC objects from an old
11425 # archive will be linked into the output, leading to subtle bugs.
11426 postdeps_CXX='-lCstd -lCrun'
11427 ;;
11428 esac
11429 ;;
11430esac
11431
11432
11433case " $postdeps_CXX " in
11434*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11435esac
11436
11437lt_prog_compiler_wl_CXX=
11438lt_prog_compiler_pic_CXX=
11439lt_prog_compiler_static_CXX=
11440
11441echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11442echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11443
11444 # C++ specific cases for pic, static, wl, etc.
11445 if test "$GXX" = yes; then
11446 lt_prog_compiler_wl_CXX='-Wl,'
11447 lt_prog_compiler_static_CXX='-static'
11448
11449 case $host_os in
11450 aix*)
11451 # All AIX code is PIC.
11452 if test "$host_cpu" = ia64; then
11453 # AIX 5 now supports IA64 processor
11454 lt_prog_compiler_static_CXX='-Bstatic'
11455 fi
11456 ;;
11457 amigaos*)
11458 # FIXME: we need at least 68020 code to build shared libraries, but
11459 # adding the `-m68020' flag to GCC prevents building anything better,
11460 # like `-m68040'.
11461 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11462 ;;
11463 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11464 # PIC is the default for these OSes.
11465 ;;
11466 mingw* | os2* | pw32*)
11467 # This hack is so that the source file can tell whether it is being
11468 # built for inclusion in a dll (and should export symbols for example).
11469 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11470 ;;
11471 darwin* | rhapsody*)
11472 # PIC is the default on this platform
11473 # Common symbols not allowed in MH_DYLIB files
11474 lt_prog_compiler_pic_CXX='-fno-common'
11475 ;;
11476 *djgpp*)
11477 # DJGPP does not support shared libraries at all
11478 lt_prog_compiler_pic_CXX=
11479 ;;
11480 interix3*)
11481 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11482 # Instead, we relocate shared libraries at runtime.
11483 ;;
11484 sysv4*MP*)
11485 if test -d /usr/nec; then
11486 lt_prog_compiler_pic_CXX=-Kconform_pic
11487 fi
11488 ;;
11489 hpux*)
11490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11491 # not for PA HP-UX.
11492 case $host_cpu in
11493 hppa*64*|ia64*)
11494 ;;
11495 *)
11496 lt_prog_compiler_pic_CXX='-fPIC'
11497 ;;
11498 esac
11499 ;;
11500 *)
11501 lt_prog_compiler_pic_CXX='-fPIC'
11502 ;;
11503 esac
11504 else
11505 case $host_os in
11506 aix4* | aix5*)
11507 # All AIX code is PIC.
11508 if test "$host_cpu" = ia64; then
11509 # AIX 5 now supports IA64 processor
11510 lt_prog_compiler_static_CXX='-Bstatic'
11511 else
11512 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11513 fi
11514 ;;
11515 chorus*)
11516 case $cc_basename in
11517 cxch68*)
11518 # Green Hills C++ Compiler
11519 # _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"
11520 ;;
11521 esac
11522 ;;
11523 darwin*)
11524 # PIC is the default on this platform
11525 # Common symbols not allowed in MH_DYLIB files
11526 case $cc_basename in
11527 xlc*)
11528 lt_prog_compiler_pic_CXX='-qnocommon'
11529 lt_prog_compiler_wl_CXX='-Wl,'
11530 ;;
11531 esac
11532 ;;
11533 dgux*)
11534 case $cc_basename in
11535 ec++*)
11536 lt_prog_compiler_pic_CXX='-KPIC'
11537 ;;
11538 ghcx*)
11539 # Green Hills C++ Compiler
11540 lt_prog_compiler_pic_CXX='-pic'
11541 ;;
11542 *)
11543 ;;
11544 esac
11545 ;;
11546 freebsd* | kfreebsd*-gnu | dragonfly*)
11547 # FreeBSD uses GNU C++
11548 ;;
11549 hpux9* | hpux10* | hpux11*)
11550 case $cc_basename in
11551 CC*)
11552 lt_prog_compiler_wl_CXX='-Wl,'
11553 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11554 if test "$host_cpu" != ia64; then
11555 lt_prog_compiler_pic_CXX='+Z'
11556 fi
11557 ;;
11558 aCC*)
11559 lt_prog_compiler_wl_CXX='-Wl,'
11560 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11561 case $host_cpu in
11562 hppa*64*|ia64*)
11563 # +Z the default
11564 ;;
11565 *)
11566 lt_prog_compiler_pic_CXX='+Z'
11567 ;;
11568 esac
11569 ;;
11570 *)
11571 ;;
11572 esac
11573 ;;
11574 interix*)
11575 # This is c89, which is MS Visual C++ (no shared libs)
11576 # Anyone wants to do a port?
11577 ;;
11578 irix5* | irix6* | nonstopux*)
11579 case $cc_basename in
11580 CC*)
11581 lt_prog_compiler_wl_CXX='-Wl,'
11582 lt_prog_compiler_static_CXX='-non_shared'
11583 # CC pic flag -KPIC is the default.
11584 ;;
11585 *)
11586 ;;
11587 esac
11588 ;;
11589 linux*)
11590 case $cc_basename in
11591 KCC*)
11592 # KAI C++ Compiler
11593 lt_prog_compiler_wl_CXX='--backend -Wl,'
11594 lt_prog_compiler_pic_CXX='-fPIC'
11595 ;;
11596 icpc* | ecpc*)
11597 # Intel C++
11598 lt_prog_compiler_wl_CXX='-Wl,'
11599 lt_prog_compiler_pic_CXX='-KPIC'
11600 lt_prog_compiler_static_CXX='-static'
11601 ;;
11602 pgCC*)
11603 # Portland Group C++ compiler.
11604 lt_prog_compiler_wl_CXX='-Wl,'
11605 lt_prog_compiler_pic_CXX='-fpic'
11606 lt_prog_compiler_static_CXX='-Bstatic'
11607 ;;
11608 cxx*)
11609 # Compaq C++
11610 # Make sure the PIC flag is empty. It appears that all Alpha
11611 # Linux and Compaq Tru64 Unix objects are PIC.
11612 lt_prog_compiler_pic_CXX=
11613 lt_prog_compiler_static_CXX='-non_shared'
11614 ;;
11615 *)
11616 ;;
11617 esac
11618 ;;
11619 lynxos*)
11620 ;;
11621 m88k*)
11622 ;;
11623 mvs*)
11624 case $cc_basename in
11625 cxx*)
11626 lt_prog_compiler_pic_CXX='-W c,exportall'
11627 ;;
11628 *)
11629 ;;
11630 esac
11631 ;;
11632 netbsd*)
11633 ;;
11634 osf3* | osf4* | osf5*)
11635 case $cc_basename in
11636 KCC*)
11637 lt_prog_compiler_wl_CXX='--backend -Wl,'
11638 ;;
11639 RCC*)
11640 # Rational C++ 2.4.1
11641 lt_prog_compiler_pic_CXX='-pic'
11642 ;;
11643 cxx*)
11644 # Digital/Compaq C++
11645 lt_prog_compiler_wl_CXX='-Wl,'
11646 # Make sure the PIC flag is empty. It appears that all Alpha
11647 # Linux and Compaq Tru64 Unix objects are PIC.
11648 lt_prog_compiler_pic_CXX=
11649 lt_prog_compiler_static_CXX='-non_shared'
11650 ;;
11651 *)
11652 ;;
11653 esac
11654 ;;
11655 psos*)
11656 ;;
11657 solaris*)
11658 case $cc_basename in
11659 CC*)
11660 # Sun C++ 4.2, 5.x and Centerline C++
11661 lt_prog_compiler_pic_CXX='-KPIC'
11662 lt_prog_compiler_static_CXX='-Bstatic'
11663 lt_prog_compiler_wl_CXX='-Qoption ld '
11664 ;;
11665 gcx*)
11666 # Green Hills C++ Compiler
11667 lt_prog_compiler_pic_CXX='-PIC'
11668 ;;
11669 *)
11670 ;;
11671 esac
11672 ;;
11673 sunos4*)
11674 case $cc_basename in
11675 CC*)
11676 # Sun C++ 4.x
11677 lt_prog_compiler_pic_CXX='-pic'
11678 lt_prog_compiler_static_CXX='-Bstatic'
11679 ;;
11680 lcc*)
11681 # Lucid
11682 lt_prog_compiler_pic_CXX='-pic'
11683 ;;
11684 *)
11685 ;;
11686 esac
11687 ;;
11688 tandem*)
11689 case $cc_basename in
11690 NCC*)
11691 # NonStop-UX NCC 3.20
11692 lt_prog_compiler_pic_CXX='-KPIC'
11693 ;;
11694 *)
11695 ;;
11696 esac
11697 ;;
11698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11699 case $cc_basename in
11700 CC*)
11701 lt_prog_compiler_wl_CXX='-Wl,'
11702 lt_prog_compiler_pic_CXX='-KPIC'
11703 lt_prog_compiler_static_CXX='-Bstatic'
11704 ;;
11705 esac
11706 ;;
11707 vxworks*)
11708 ;;
11709 *)
11710 lt_prog_compiler_can_build_shared_CXX=no
11711 ;;
11712 esac
11713 fi
11714
11715echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11716echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11717
11718#
11719# Check to make sure the PIC flag actually works.
11720#
11721if test -n "$lt_prog_compiler_pic_CXX"; then
11722
11723echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11724echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11725if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11727else
11728 lt_prog_compiler_pic_works_CXX=no
11729 ac_outfile=conftest.$ac_objext
11730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11731 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11732 # Insert the option either (1) after the last *FLAGS variable, or
11733 # (2) before a word containing "conftest.", or (3) at the end.
11734 # Note that $ac_compile itself does not contain backslashes and begins
11735 # with a dollar sign (not a hyphen), so the echo should work correctly.
11736 # The option is referenced via a variable to avoid confusing sed.
11737 lt_compile=`echo "$ac_compile" | $SED \
11738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11740 -e 's:$: $lt_compiler_flag:'`
11741 (eval echo "\"\$as_me:11741: $lt_compile\"" >&5)
11742 (eval "$lt_compile" 2>conftest.err)
11743 ac_status=$?
11744 cat conftest.err >&5
11745 echo "$as_me:11745: \$? = $ac_status" >&5
11746 if (exit $ac_status) && test -s "$ac_outfile"; then
11747 # The compiler can only warn and ignore the option if not recognized
11748 # So say no if there are warnings other than the usual output.
11749 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11752 lt_prog_compiler_pic_works_CXX=yes
11753 fi
11754 fi
11755 $rm conftest*
11756
11757fi
11758echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11759echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11760
11761if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11762 case $lt_prog_compiler_pic_CXX in
11763 "" | " "*) ;;
11764 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11765 esac
11766else
11767 lt_prog_compiler_pic_CXX=
11768 lt_prog_compiler_can_build_shared_CXX=no
11769fi
11770
11771fi
11772case $host_os in
11773 # For platforms which do not support PIC, -DPIC is meaningless:
11774 *djgpp*)
11775 lt_prog_compiler_pic_CXX=
11776 ;;
11777 *)
11778 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11779 ;;
11780esac
11781
11782#
11783# Check to make sure the static flag actually works.
11784#
11785wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11786echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11787echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11788if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790else
11791 lt_prog_compiler_static_works_CXX=no
11792 save_LDFLAGS="$LDFLAGS"
11793 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11794 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11795 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11796 # The linker can only warn and ignore the option if not recognized
11797 # So say no if there are warnings
11798 if test -s conftest.err; then
11799 # Append any errors to the config.log.
11800 cat conftest.err 1>&5
11801 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11803 if diff conftest.exp conftest.er2 >/dev/null; then
11804 lt_prog_compiler_static_works_CXX=yes
11805 fi
11806 else
11807 lt_prog_compiler_static_works_CXX=yes
11808 fi
11809 fi
11810 $rm conftest*
11811 LDFLAGS="$save_LDFLAGS"
11812
11813fi
11814echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11815echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11816
11817if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11818 :
11819else
11820 lt_prog_compiler_static_CXX=
11821fi
11822
11823
11824echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11825echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11826if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828else
11829 lt_cv_prog_compiler_c_o_CXX=no
11830 $rm -r conftest 2>/dev/null
11831 mkdir conftest
11832 cd conftest
11833 mkdir out
11834 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11835
11836 lt_compiler_flag="-o out/conftest2.$ac_objext"
11837 # Insert the option either (1) after the last *FLAGS variable, or
11838 # (2) before a word containing "conftest.", or (3) at the end.
11839 # Note that $ac_compile itself does not contain backslashes and begins
11840 # with a dollar sign (not a hyphen), so the echo should work correctly.
11841 lt_compile=`echo "$ac_compile" | $SED \
11842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11844 -e 's:$: $lt_compiler_flag:'`
11845 (eval echo "\"\$as_me:11845: $lt_compile\"" >&5)
11846 (eval "$lt_compile" 2>out/conftest.err)
11847 ac_status=$?
11848 cat out/conftest.err >&5
11849 echo "$as_me:11849: \$? = $ac_status" >&5
11850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11851 then
11852 # The compiler can only warn and ignore the option if not recognized
11853 # So say no if there are warnings
11854 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11857 lt_cv_prog_compiler_c_o_CXX=yes
11858 fi
11859 fi
11860 chmod u+w . 2>&5
11861 $rm conftest*
11862 # SGI C++ compiler will create directory out/ii_files/ for
11863 # template instantiation
11864 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11865 $rm out/* && rmdir out
11866 cd ..
11867 rmdir conftest
11868 $rm conftest*
11869
11870fi
11871echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11872echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11873
11874
11875hard_links="nottested"
11876if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11877 # do not overwrite the value of need_locks provided by the user
11878 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11879echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11880 hard_links=yes
11881 $rm conftest*
11882 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11883 touch conftest.a
11884 ln conftest.a conftest.b 2>&5 || hard_links=no
11885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11886 echo "$as_me:$LINENO: result: $hard_links" >&5
11887echo "${ECHO_T}$hard_links" >&6
11888 if test "$hard_links" = no; then
11889 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11890echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11891 need_locks=warn
11892 fi
11893else
11894 need_locks=no
11895fi
11896
11897echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11898echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11899
11900 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11901 case $host_os in
11902 aix4* | aix5*)
11903 # If we're using GNU nm, then we don't want the "-C" option.
11904 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11905 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11906 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'
11907 else
11908 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'
11909 fi
11910 ;;
11911 pw32*)
11912 export_symbols_cmds_CXX="$ltdll_cmds"
11913 ;;
11914 cygwin* | mingw*)
11915 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'
11916 ;;
11917 *)
11918 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11919 ;;
11920 esac
11921
11922echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11923echo "${ECHO_T}$ld_shlibs_CXX" >&6
11924test "$ld_shlibs_CXX" = no && can_build_shared=no
11925
11926#
11927# Do we need to explicitly link libc?
11928#
11929case "x$archive_cmds_need_lc_CXX" in
11930x|xyes)
11931 # Assume -lc should be added
11932 archive_cmds_need_lc_CXX=yes
11933
11934 if test "$enable_shared" = yes && test "$GCC" = yes; then
11935 case $archive_cmds_CXX in
11936 *'~'*)
11937 # FIXME: we may have to deal with multi-command sequences.
11938 ;;
11939 '$CC '*)
11940 # Test whether the compiler implicitly links with -lc since on some
11941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11942 # to ld, don't add -lc before -lgcc.
11943 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11944echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11945 $rm conftest*
11946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11947
11948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949 (eval $ac_compile) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } 2>conftest.err; then
11953 soname=conftest
11954 lib=conftest
11955 libobjs=conftest.$ac_objext
11956 deplibs=
11957 wl=$lt_prog_compiler_wl_CXX
11958 pic_flag=$lt_prog_compiler_pic_CXX
11959 compiler_flags=-v
11960 linker_flags=-v
11961 verstring=
11962 output_objdir=.
11963 libname=conftest
11964 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11965 allow_undefined_flag_CXX=
11966 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11967 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }
11971 then
11972 archive_cmds_need_lc_CXX=no
11973 else
11974 archive_cmds_need_lc_CXX=yes
11975 fi
11976 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11977 else
11978 cat conftest.err 1>&5
11979 fi
11980 $rm conftest*
11981 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11982echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11983 ;;
11984 esac
11985 fi
11986 ;;
11987esac
11988
11989echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11990echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11991library_names_spec=
11992libname_spec='lib$name'
11993soname_spec=
11994shrext_cmds=".so"
11995postinstall_cmds=
11996postuninstall_cmds=
11997finish_cmds=
11998finish_eval=
11999shlibpath_var=
12000shlibpath_overrides_runpath=unknown
12001version_type=none
12002dynamic_linker="$host_os ld.so"
12003sys_lib_dlsearch_path_spec="/lib /usr/lib"
12004if test "$GCC" = yes; then
12005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12006 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12007 # if the path contains ";" then we assume it to be the separator
12008 # otherwise default to the standard path separator (i.e. ":") - it is
12009 # assumed that no part of a normal pathname contains ";" but that should
12010 # okay in the real world where ";" in dirpaths is itself problematic.
12011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12012 else
12013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12014 fi
12015else
12016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12017fi
12018need_lib_prefix=unknown
12019hardcode_into_libs=no
12020
12021# when you set need_version to no, make sure it does not cause -set_version
12022# flags to be left without arguments
12023need_version=unknown
12024
12025case $host_os in
12026aix3*)
12027 version_type=linux
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12029 shlibpath_var=LIBPATH
12030
12031 # AIX 3 has no versioning support, so we append a major version to the name.
12032 soname_spec='${libname}${release}${shared_ext}$major'
12033 ;;
12034
12035aix4* | aix5*)
12036 version_type=linux
12037 need_lib_prefix=no
12038 need_version=no
12039 hardcode_into_libs=yes
12040 if test "$host_cpu" = ia64; then
12041 # AIX 5 supports IA64
12042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12043 shlibpath_var=LD_LIBRARY_PATH
12044 else
12045 # With GCC up to 2.95.x, collect2 would create an import file
12046 # for dependence libraries. The import file would start with
12047 # the line `#! .'. This would cause the generated library to
12048 # depend on `.', always an invalid library. This was fixed in
12049 # development snapshots of GCC prior to 3.0.
12050 case $host_os in
12051 aix4 | aix4.[01] | aix4.[01].*)
12052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12053 echo ' yes '
12054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12055 :
12056 else
12057 can_build_shared=no
12058 fi
12059 ;;
12060 esac
12061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12062 # soname into executable. Probably we can add versioning support to
12063 # collect2, so additional links can be useful in future.
12064 if test "$aix_use_runtimelinking" = yes; then
12065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12066 # instead of lib<name>.a to let people know that these are not
12067 # typical AIX shared libraries.
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069 else
12070 # We preserve .a as extension for shared libraries through AIX4.2
12071 # and later when we are not doing run time linking.
12072 library_names_spec='${libname}${release}.a $libname.a'
12073 soname_spec='${libname}${release}${shared_ext}$major'
12074 fi
12075 shlibpath_var=LIBPATH
12076 fi
12077 ;;
12078
12079amigaos*)
12080 library_names_spec='$libname.ixlibrary $libname.a'
12081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12082 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'
12083 ;;
12084
12085beos*)
12086 library_names_spec='${libname}${shared_ext}'
12087 dynamic_linker="$host_os ld.so"
12088 shlibpath_var=LIBRARY_PATH
12089 ;;
12090
12091bsdi[45]*)
12092 version_type=linux
12093 need_version=no
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12097 shlibpath_var=LD_LIBRARY_PATH
12098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12100 # the default ld.so.conf also contains /usr/contrib/lib and
12101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12102 # libtool to hard-code these into programs
12103 ;;
12104
12105cygwin* | mingw* | pw32*)
12106 version_type=windows
12107 shrext_cmds=".dll"
12108 need_version=no
12109 need_lib_prefix=no
12110
12111 case $GCC,$host_os in
12112 yes,cygwin* | yes,mingw* | yes,pw32*)
12113 library_names_spec='$libname.dll.a'
12114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12115 postinstall_cmds='base_file=`basename \${file}`~
12116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12117 dldir=$destdir/`dirname \$dlpath`~
12118 test -d \$dldir || mkdir -p \$dldir~
12119 $install_prog $dir/$dlname \$dldir/$dlname~
12120 chmod a+x \$dldir/$dlname'
12121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12122 dlpath=$dir/\$dldll~
12123 $rm \$dlpath'
12124 shlibpath_overrides_runpath=yes
12125
12126 case $host_os in
12127 cygwin*)
12128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12131 ;;
12132 mingw*)
12133 # MinGW DLLs use traditional 'lib' prefix
12134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12137 # It is most probably a Windows format PATH printed by
12138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12139 # path with ; separators, and with drive letters. We can handle the
12140 # drive letters (cygwin fileutils understands them), so leave them,
12141 # especially as we might pass files found there to a mingw objdump,
12142 # which wouldn't understand a cygwinified path. Ahh.
12143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12144 else
12145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12146 fi
12147 ;;
12148 pw32*)
12149 # pw32 DLLs use 'pw' prefix rather than 'lib'
12150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12151 ;;
12152 esac
12153 ;;
12154
12155 linux*)
12156 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12158 supports_anon_versioning=no
12159 case `$LD -v 2>/dev/null` in
12160 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12163 *\ 2.11.*) ;; # other 2.11 versions
12164 *) supports_anon_versioning=yes ;;
12165 esac
12166 if test $supports_anon_versioning = yes; then
12167 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12168cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12169$echo "local: *; };" >> $output_objdir/$libname.ver~
12170 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12171 else
12172 $archive_expsym_cmds="$archive_cmds"
12173 fi
12174 else
12175 ld_shlibs=no
12176 fi
12177 ;;
12178
12179 *)
12180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12181 ;;
12182 esac
12183 dynamic_linker='Win32 ld.exe'
12184 # FIXME: first we should search . and the directory the executable is in
12185 shlibpath_var=PATH
12186 ;;
12187
12188darwin* | rhapsody*)
12189 dynamic_linker="$host_os dyld"
12190 version_type=darwin
12191 need_lib_prefix=no
12192 need_version=no
12193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12194 soname_spec='${libname}${release}${major}$shared_ext'
12195 shlibpath_overrides_runpath=yes
12196 shlibpath_var=DYLD_LIBRARY_PATH
12197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12198 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12199 if test "$GCC" = yes; then
12200 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"`
12201 else
12202 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12203 fi
12204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12205 ;;
12206
12207dgux*)
12208 version_type=linux
12209 need_lib_prefix=no
12210 need_version=no
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12212 soname_spec='${libname}${release}${shared_ext}$major'
12213 shlibpath_var=LD_LIBRARY_PATH
12214 ;;
12215
12216freebsd1*)
12217 dynamic_linker=no
12218 ;;
12219
12220kfreebsd*-gnu)
12221 version_type=linux
12222 need_lib_prefix=no
12223 need_version=no
12224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12225 soname_spec='${libname}${release}${shared_ext}$major'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 shlibpath_overrides_runpath=no
12228 hardcode_into_libs=yes
12229 dynamic_linker='GNU ld.so'
12230 ;;
12231
12232freebsd* | dragonfly*)
12233 # DragonFly does not have aout. When/if they implement a new
12234 # versioning mechanism, adjust this.
12235 if test -x /usr/bin/objformat; then
12236 objformat=`/usr/bin/objformat`
12237 else
12238 case $host_os in
12239 freebsd[123]*) objformat=aout ;;
12240 *) objformat=elf ;;
12241 esac
12242 fi
12243 # Handle Gentoo/FreeBSD as it was Linux
12244 case $host_vendor in
12245 gentoo)
12246 version_type=linux ;;
12247 *)
12248 version_type=freebsd-$objformat ;;
12249 esac
12250
12251 case $version_type in
12252 freebsd-elf*)
12253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12254 need_version=no
12255 need_lib_prefix=no
12256 ;;
12257 freebsd-*)
12258 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12259 need_version=yes
12260 ;;
12261 linux)
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12263 soname_spec='${libname}${release}${shared_ext}$major'
12264 need_lib_prefix=no
12265 need_version=no
12266 ;;
12267 esac
12268 shlibpath_var=LD_LIBRARY_PATH
12269 case $host_os in
12270 freebsd2*)
12271 shlibpath_overrides_runpath=yes
12272 ;;
12273 freebsd3.[01]* | freebsdelf3.[01]*)
12274 shlibpath_overrides_runpath=yes
12275 hardcode_into_libs=yes
12276 ;;
12277 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12278 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12279 shlibpath_overrides_runpath=no
12280 hardcode_into_libs=yes
12281 ;;
12282 freebsd*) # from 4.6 on
12283 shlibpath_overrides_runpath=yes
12284 hardcode_into_libs=yes
12285 ;;
12286 esac
12287 ;;
12288
12289gnu*)
12290 version_type=linux
12291 need_lib_prefix=no
12292 need_version=no
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12294 soname_spec='${libname}${release}${shared_ext}$major'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 hardcode_into_libs=yes
12297 ;;
12298
12299hpux9* | hpux10* | hpux11*)
12300 # Give a soname corresponding to the major version so that dld.sl refuses to
12301 # link against other versions.
12302 version_type=sunos
12303 need_lib_prefix=no
12304 need_version=no
12305 case $host_cpu in
12306 ia64*)
12307 shrext_cmds='.so'
12308 hardcode_into_libs=yes
12309 dynamic_linker="$host_os dld.so"
12310 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
12315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12316 else
12317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12318 fi
12319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12320 ;;
12321 hppa*64*)
12322 shrext_cmds='.sl'
12323 hardcode_into_libs=yes
12324 dynamic_linker="$host_os dld.sl"
12325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328 soname_spec='${libname}${release}${shared_ext}$major'
12329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12331 ;;
12332 *)
12333 shrext_cmds='.sl'
12334 dynamic_linker="$host_os dld.sl"
12335 shlibpath_var=SHLIB_PATH
12336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12338 soname_spec='${libname}${release}${shared_ext}$major'
12339 ;;
12340 esac
12341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12342 postinstall_cmds='chmod 555 $lib'
12343 ;;
12344
12345interix3*)
12346 version_type=linux
12347 need_lib_prefix=no
12348 need_version=no
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12350 soname_spec='${libname}${release}${shared_ext}$major'
12351 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12352 shlibpath_var=LD_LIBRARY_PATH
12353 shlibpath_overrides_runpath=no
12354 hardcode_into_libs=yes
12355 ;;
12356
12357irix5* | irix6* | nonstopux*)
12358 case $host_os in
12359 nonstopux*) version_type=nonstopux ;;
12360 *)
12361 if test "$lt_cv_prog_gnu_ld" = yes; then
12362 version_type=linux
12363 else
12364 version_type=irix
12365 fi ;;
12366 esac
12367 need_lib_prefix=no
12368 need_version=no
12369 soname_spec='${libname}${release}${shared_ext}$major'
12370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12371 case $host_os in
12372 irix5* | nonstopux*)
12373 libsuff= shlibsuff=
12374 ;;
12375 *)
12376 case $LD in # libtool.m4 will add one of these switches to LD
12377 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12378 libsuff= shlibsuff= libmagic=32-bit;;
12379 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12380 libsuff=32 shlibsuff=N32 libmagic=N32;;
12381 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12382 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12383 *) libsuff= shlibsuff= libmagic=never-match;;
12384 esac
12385 ;;
12386 esac
12387 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12388 shlibpath_overrides_runpath=no
12389 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12390 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12391 hardcode_into_libs=yes
12392 ;;
12393
12394# No shared lib support for Linux oldld, aout, or coff.
12395linux*oldld* | linux*aout* | linux*coff*)
12396 dynamic_linker=no
12397 ;;
12398
12399# This must be Linux ELF.
12400linux*)
12401 version_type=linux
12402 need_lib_prefix=no
12403 need_version=no
12404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12405 soname_spec='${libname}${release}${shared_ext}$major'
12406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12407 shlibpath_var=LD_LIBRARY_PATH
12408 shlibpath_overrides_runpath=no
12409 # This implies no fast_install, which is unacceptable.
12410 # Some rework will be needed to allow for fast_install
12411 # before this can be enabled.
12412 hardcode_into_libs=yes
12413
12414 # Append ld.so.conf contents to the search path
12415 if test -f /etc/ld.so.conf; then
12416 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' ' '`
12417 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12418 fi
12419
12420 # We used to test for /lib/ld.so.1 and disable shared libraries on
12421 # powerpc, because MkLinux only supported shared libraries with the
12422 # GNU dynamic linker. Since this was broken with cross compilers,
12423 # most powerpc-linux boxes support dynamic linking these days and
12424 # people can always --disable-shared, the test was removed, and we
12425 # assume the GNU/Linux dynamic linker is in use.
12426 dynamic_linker='GNU/Linux ld.so'
12427 ;;
12428
12429knetbsd*-gnu)
12430 version_type=linux
12431 need_lib_prefix=no
12432 need_version=no
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12434 soname_spec='${libname}${release}${shared_ext}$major'
12435 shlibpath_var=LD_LIBRARY_PATH
12436 shlibpath_overrides_runpath=no
12437 hardcode_into_libs=yes
12438 dynamic_linker='GNU ld.so'
12439 ;;
12440
12441netbsd*)
12442 version_type=sunos
12443 need_lib_prefix=no
12444 need_version=no
12445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12448 dynamic_linker='NetBSD (a.out) ld.so'
12449 else
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12451 soname_spec='${libname}${release}${shared_ext}$major'
12452 dynamic_linker='NetBSD ld.elf_so'
12453 fi
12454 shlibpath_var=LD_LIBRARY_PATH
12455 shlibpath_overrides_runpath=yes
12456 hardcode_into_libs=yes
12457 ;;
12458
12459newsos6)
12460 version_type=linux
12461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12462 shlibpath_var=LD_LIBRARY_PATH
12463 shlibpath_overrides_runpath=yes
12464 ;;
12465
12466nto-qnx*)
12467 version_type=linux
12468 need_lib_prefix=no
12469 need_version=no
12470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12471 soname_spec='${libname}${release}${shared_ext}$major'
12472 shlibpath_var=LD_LIBRARY_PATH
12473 shlibpath_overrides_runpath=yes
12474 ;;
12475
12476openbsd*)
12477 version_type=sunos
12478 sys_lib_dlsearch_path_spec="/usr/lib"
12479 need_lib_prefix=no
12480 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12481 case $host_os in
12482 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12483 *) need_version=no ;;
12484 esac
12485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12487 shlibpath_var=LD_LIBRARY_PATH
12488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12489 case $host_os in
12490 openbsd2.[89] | openbsd2.[89].*)
12491 shlibpath_overrides_runpath=no
12492 ;;
12493 *)
12494 shlibpath_overrides_runpath=yes
12495 ;;
12496 esac
12497 else
12498 shlibpath_overrides_runpath=yes
12499 fi
12500 ;;
12501
12502os2*)
12503 libname_spec='$name'
12504 shrext_cmds=".dll"
12505 need_lib_prefix=no
12506 library_names_spec='$libname${shared_ext} $libname.a'
12507 dynamic_linker='OS/2 ld.exe'
12508 shlibpath_var=LIBPATH
12509 ;;
12510
12511osf3* | osf4* | osf5*)
12512 version_type=osf
12513 need_lib_prefix=no
12514 need_version=no
12515 soname_spec='${libname}${release}${shared_ext}$major'
12516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12517 shlibpath_var=LD_LIBRARY_PATH
12518 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12519 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12520 ;;
12521
12522solaris*)
12523 version_type=linux
12524 need_lib_prefix=no
12525 need_version=no
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12527 soname_spec='${libname}${release}${shared_ext}$major'
12528 shlibpath_var=LD_LIBRARY_PATH
12529 shlibpath_overrides_runpath=yes
12530 hardcode_into_libs=yes
12531 # ldd complains unless libraries are executable
12532 postinstall_cmds='chmod +x $lib'
12533 ;;
12534
12535sunos4*)
12536 version_type=sunos
12537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12538 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 shlibpath_overrides_runpath=yes
12541 if test "$with_gnu_ld" = yes; then
12542 need_lib_prefix=no
12543 fi
12544 need_version=yes
12545 ;;
12546
12547sysv4 | sysv4.3*)
12548 version_type=linux
12549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12550 soname_spec='${libname}${release}${shared_ext}$major'
12551 shlibpath_var=LD_LIBRARY_PATH
12552 case $host_vendor in
12553 sni)
12554 shlibpath_overrides_runpath=no
12555 need_lib_prefix=no
12556 export_dynamic_flag_spec='${wl}-Blargedynsym'
12557 runpath_var=LD_RUN_PATH
12558 ;;
12559 siemens)
12560 need_lib_prefix=no
12561 ;;
12562 motorola)
12563 need_lib_prefix=no
12564 need_version=no
12565 shlibpath_overrides_runpath=no
12566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12567 ;;
12568 esac
12569 ;;
12570
12571sysv4*MP*)
12572 if test -d /usr/nec ;then
12573 version_type=linux
12574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12575 soname_spec='$libname${shared_ext}.$major'
12576 shlibpath_var=LD_LIBRARY_PATH
12577 fi
12578 ;;
12579
12580sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12581 version_type=freebsd-elf
12582 need_lib_prefix=no
12583 need_version=no
12584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12585 soname_spec='${libname}${release}${shared_ext}$major'
12586 shlibpath_var=LD_LIBRARY_PATH
12587 hardcode_into_libs=yes
12588 if test "$with_gnu_ld" = yes; then
12589 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12590 shlibpath_overrides_runpath=no
12591 else
12592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12593 shlibpath_overrides_runpath=yes
12594 case $host_os in
12595 sco3.2v5*)
12596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12597 ;;
12598 esac
12599 fi
12600 sys_lib_dlsearch_path_spec='/usr/lib'
12601 ;;
12602
12603uts4*)
12604 version_type=linux
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606 soname_spec='${libname}${release}${shared_ext}$major'
12607 shlibpath_var=LD_LIBRARY_PATH
12608 ;;
12609
12610*)
12611 dynamic_linker=no
12612 ;;
12613esac
12614echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12615echo "${ECHO_T}$dynamic_linker" >&6
12616test "$dynamic_linker" = no && can_build_shared=no
12617
12618variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12619if test "$GCC" = yes; then
12620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12621fi
12622
12623echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12624echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12625hardcode_action_CXX=
12626if test -n "$hardcode_libdir_flag_spec_CXX" || \
12627 test -n "$runpath_var_CXX" || \
12628 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12629
12630 # We can hardcode non-existant directories.
12631 if test "$hardcode_direct_CXX" != no &&
12632 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12633 # have to relink, otherwise we might link with an installed library
12634 # when we should be linking with a yet-to-be-installed one
12635 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12636 test "$hardcode_minus_L_CXX" != no; then
12637 # Linking always hardcodes the temporary library directory.
12638 hardcode_action_CXX=relink
12639 else
12640 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12641 hardcode_action_CXX=immediate
12642 fi
12643else
12644 # We cannot hardcode anything, or else we can only hardcode existing
12645 # directories.
12646 hardcode_action_CXX=unsupported
12647fi
12648echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12649echo "${ECHO_T}$hardcode_action_CXX" >&6
12650
12651if test "$hardcode_action_CXX" = relink; then
12652 # Fast installation is not supported
12653 enable_fast_install=no
12654elif test "$shlibpath_overrides_runpath" = yes ||
12655 test "$enable_shared" = no; then
12656 # Fast installation is not necessary
12657 enable_fast_install=needless
12658fi
12659
12660
12661# The else clause should only fire when bootstrapping the
12662# libtool distribution, otherwise you forgot to ship ltmain.sh
12663# with your package, and you will get complaints that there are
12664# no rules to generate ltmain.sh.
12665if test -f "$ltmain"; then
12666 # See if we are running on zsh, and set the options which allow our commands through
12667 # without removal of \ escapes.
12668 if test -n "${ZSH_VERSION+set}" ; then
12669 setopt NO_GLOB_SUBST
12670 fi
12671 # Now quote all the things that may contain metacharacters while being
12672 # careful not to overquote the AC_SUBSTed values. We take copies of the
12673 # variables and quote the copies for generation of the libtool script.
12674 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12675 SED SHELL STRIP \
12676 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12677 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12678 deplibs_check_method reload_flag reload_cmds need_locks \
12679 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12680 lt_cv_sys_global_symbol_to_c_name_address \
12681 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12682 old_postinstall_cmds old_postuninstall_cmds \
12683 compiler_CXX \
12684 CC_CXX \
12685 LD_CXX \
12686 lt_prog_compiler_wl_CXX \
12687 lt_prog_compiler_pic_CXX \
12688 lt_prog_compiler_static_CXX \
12689 lt_prog_compiler_no_builtin_flag_CXX \
12690 export_dynamic_flag_spec_CXX \
12691 thread_safe_flag_spec_CXX \
12692 whole_archive_flag_spec_CXX \
12693 enable_shared_with_static_runtimes_CXX \
12694 old_archive_cmds_CXX \
12695 old_archive_from_new_cmds_CXX \
12696 predep_objects_CXX \
12697 postdep_objects_CXX \
12698 predeps_CXX \
12699 postdeps_CXX \
12700 compiler_lib_search_path_CXX \
12701 archive_cmds_CXX \
12702 archive_expsym_cmds_CXX \
12703 postinstall_cmds_CXX \
12704 postuninstall_cmds_CXX \
12705 old_archive_from_expsyms_cmds_CXX \
12706 allow_undefined_flag_CXX \
12707 no_undefined_flag_CXX \
12708 export_symbols_cmds_CXX \
12709 hardcode_libdir_flag_spec_CXX \
12710 hardcode_libdir_flag_spec_ld_CXX \
12711 hardcode_libdir_separator_CXX \
12712 hardcode_automatic_CXX \
12713 module_cmds_CXX \
12714 module_expsym_cmds_CXX \
12715 lt_cv_prog_compiler_c_o_CXX \
12716 exclude_expsyms_CXX \
12717 include_expsyms_CXX; do
12718
12719 case $var in
12720 old_archive_cmds_CXX | \
12721 old_archive_from_new_cmds_CXX | \
12722 archive_cmds_CXX | \
12723 archive_expsym_cmds_CXX | \
12724 module_cmds_CXX | \
12725 module_expsym_cmds_CXX | \
12726 old_archive_from_expsyms_cmds_CXX | \
12727 export_symbols_cmds_CXX | \
12728 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12729 postinstall_cmds | postuninstall_cmds | \
12730 old_postinstall_cmds | old_postuninstall_cmds | \
12731 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12732 # Double-quote double-evaled strings.
12733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12734 ;;
12735 *)
12736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12737 ;;
12738 esac
12739 done
12740
12741 case $lt_echo in
12742 *'\$0 --fallback-echo"')
12743 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12744 ;;
12745 esac
12746
12747cfgfile="$ofile"
12748
12749 cat <<__EOF__ >> "$cfgfile"
12750# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12751
12752# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12753
12754# Shell to use when invoking shell scripts.
12755SHELL=$lt_SHELL
12756
12757# Whether or not to build shared libraries.
12758build_libtool_libs=$enable_shared
12759
12760# Whether or not to build static libraries.
12761build_old_libs=$enable_static
12762
12763# Whether or not to add -lc for building shared libraries.
12764build_libtool_need_lc=$archive_cmds_need_lc_CXX
12765
12766# Whether or not to disallow shared libs when runtime libs are static
12767allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12768
12769# Whether or not to optimize for fast installation.
12770fast_install=$enable_fast_install
12771
12772# The host system.
12773host_alias=$host_alias
12774host=$host
12775host_os=$host_os
12776
12777# The build system.
12778build_alias=$build_alias
12779build=$build
12780build_os=$build_os
12781
12782# An echo program that does not interpret backslashes.
12783echo=$lt_echo
12784
12785# The archiver.
12786AR=$lt_AR
12787AR_FLAGS=$lt_AR_FLAGS
12788
12789# A C compiler.
12790LTCC=$lt_LTCC
12791
12792# LTCC compiler flags.
12793LTCFLAGS=$lt_LTCFLAGS
12794
12795# A language-specific compiler.
12796CC=$lt_compiler_CXX
12797
12798# Is the compiler the GNU C compiler?
12799with_gcc=$GCC_CXX
12800
12801# An ERE matcher.
12802EGREP=$lt_EGREP
12803
12804# The linker used to build libraries.
12805LD=$lt_LD_CXX
12806
12807# Whether we need hard or soft links.
12808LN_S=$lt_LN_S
12809
12810# A BSD-compatible nm program.
12811NM=$lt_NM
12812
12813# A symbol stripping program
12814STRIP=$lt_STRIP
12815
12816# Used to examine libraries when file_magic_cmd begins "file"
12817MAGIC_CMD=$MAGIC_CMD
12818
12819# Used on cygwin: DLL creation program.
12820DLLTOOL="$DLLTOOL"
12821
12822# Used on cygwin: object dumper.
12823OBJDUMP="$OBJDUMP"
12824
12825# Used on cygwin: assembler.
12826AS="$AS"
12827
12828# The name of the directory that contains temporary libtool files.
12829objdir=$objdir
12830
12831# How to create reloadable object files.
12832reload_flag=$lt_reload_flag
12833reload_cmds=$lt_reload_cmds
12834
12835# How to pass a linker flag through the compiler.
12836wl=$lt_lt_prog_compiler_wl_CXX
12837
12838# Object file suffix (normally "o").
12839objext="$ac_objext"
12840
12841# Old archive suffix (normally "a").
12842libext="$libext"
12843
12844# Shared library suffix (normally ".so").
12845shrext_cmds='$shrext_cmds'
12846
12847# Executable file suffix (normally "").
12848exeext="$exeext"
12849
12850# Additional compiler flags for building library objects.
12851pic_flag=$lt_lt_prog_compiler_pic_CXX
12852pic_mode=$pic_mode
12853
12854# What is the maximum length of a command?
12855max_cmd_len=$lt_cv_sys_max_cmd_len
12856
12857# Does compiler simultaneously support -c and -o options?
12858compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12859
12860# Must we lock files when doing compilation?
12861need_locks=$lt_need_locks
12862
12863# Do we need the lib prefix for modules?
12864need_lib_prefix=$need_lib_prefix
12865
12866# Do we need a version for libraries?
12867need_version=$need_version
12868
12869# Whether dlopen is supported.
12870dlopen_support=$enable_dlopen
12871
12872# Whether dlopen of programs is supported.
12873dlopen_self=$enable_dlopen_self
12874
12875# Whether dlopen of statically linked programs is supported.
12876dlopen_self_static=$enable_dlopen_self_static
12877
12878# Compiler flag to prevent dynamic linking.
12879link_static_flag=$lt_lt_prog_compiler_static_CXX
12880
12881# Compiler flag to turn off builtin functions.
12882no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12883
12884# Compiler flag to allow reflexive dlopens.
12885export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12886
12887# Compiler flag to generate shared objects directly from archives.
12888whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12889
12890# Compiler flag to generate thread-safe objects.
12891thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12892
12893# Library versioning type.
12894version_type=$version_type
12895
12896# Format of library name prefix.
12897libname_spec=$lt_libname_spec
12898
12899# List of archive names. First name is the real one, the rest are links.
12900# The last name is the one that the linker finds with -lNAME.
12901library_names_spec=$lt_library_names_spec
12902
12903# The coded name of the library, if different from the real name.
12904soname_spec=$lt_soname_spec
12905
12906# Commands used to build and install an old-style archive.
12907RANLIB=$lt_RANLIB
12908old_archive_cmds=$lt_old_archive_cmds_CXX
12909old_postinstall_cmds=$lt_old_postinstall_cmds
12910old_postuninstall_cmds=$lt_old_postuninstall_cmds
12911
12912# Create an old-style archive from a shared archive.
12913old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12914
12915# Create a temporary old-style archive to link instead of a shared archive.
12916old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12917
12918# Commands used to build and install a shared archive.
12919archive_cmds=$lt_archive_cmds_CXX
12920archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12921postinstall_cmds=$lt_postinstall_cmds
12922postuninstall_cmds=$lt_postuninstall_cmds
12923
12924# Commands used to build a loadable module (assumed same as above if empty)
12925module_cmds=$lt_module_cmds_CXX
12926module_expsym_cmds=$lt_module_expsym_cmds_CXX
12927
12928# Commands to strip libraries.
12929old_striplib=$lt_old_striplib
12930striplib=$lt_striplib
12931
12932# Dependencies to place before the objects being linked to create a
12933# shared library.
12934predep_objects=$lt_predep_objects_CXX
12935
12936# Dependencies to place after the objects being linked to create a
12937# shared library.
12938postdep_objects=$lt_postdep_objects_CXX
12939
12940# Dependencies to place before the objects being linked to create a
12941# shared library.
12942predeps=$lt_predeps_CXX
12943
12944# Dependencies to place after the objects being linked to create a
12945# shared library.
12946postdeps=$lt_postdeps_CXX
12947
12948# The library search path used internally by the compiler when linking
12949# a shared library.
12950compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12951
12952# Method to check whether dependent libraries are shared objects.
12953deplibs_check_method=$lt_deplibs_check_method
12954
12955# Command to use when deplibs_check_method == file_magic.
12956file_magic_cmd=$lt_file_magic_cmd
12957
12958# Flag that allows shared libraries with undefined symbols to be built.
12959allow_undefined_flag=$lt_allow_undefined_flag_CXX
12960
12961# Flag that forces no undefined symbols.
12962no_undefined_flag=$lt_no_undefined_flag_CXX
12963
12964# Commands used to finish a libtool library installation in a directory.
12965finish_cmds=$lt_finish_cmds
12966
12967# Same as above, but a single script fragment to be evaled but not shown.
12968finish_eval=$lt_finish_eval
12969
12970# Take the output of nm and produce a listing of raw symbols and C names.
12971global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12972
12973# Transform the output of nm in a proper C declaration
12974global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12975
12976# Transform the output of nm in a C name address pair
12977global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12978
12979# This is the shared library runtime path variable.
12980runpath_var=$runpath_var
12981
12982# This is the shared library path variable.
12983shlibpath_var=$shlibpath_var
12984
12985# Is shlibpath searched before the hard-coded library search path?
12986shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12987
12988# How to hardcode a shared library path into an executable.
12989hardcode_action=$hardcode_action_CXX
12990
12991# Whether we should hardcode library paths into libraries.
12992hardcode_into_libs=$hardcode_into_libs
12993
12994# Flag to hardcode \$libdir into a binary during linking.
12995# This must work even if \$libdir does not exist.
12996hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12997
12998# If ld is used when linking, flag to hardcode \$libdir into
12999# a binary during linking. This must work even if \$libdir does
13000# not exist.
13001hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13002
13003# Whether we need a single -rpath flag with a separated argument.
13004hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13005
13006# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13007# resulting binary.
13008hardcode_direct=$hardcode_direct_CXX
13009
13010# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13011# resulting binary.
13012hardcode_minus_L=$hardcode_minus_L_CXX
13013
13014# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13015# the resulting binary.
13016hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13017
13018# Set to yes if building a shared library automatically hardcodes DIR into the library
13019# and all subsequent libraries and executables linked against it.
13020hardcode_automatic=$hardcode_automatic_CXX
13021
13022# Variables whose values should be saved in libtool wrapper scripts and
13023# restored at relink time.
13024variables_saved_for_relink="$variables_saved_for_relink"
13025
13026# Whether libtool must link a program against all its dependency libraries.
13027link_all_deplibs=$link_all_deplibs_CXX
13028
13029# Compile-time system search path for libraries
13030sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13031
13032# Run-time system search path for libraries
13033sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13034
13035# Fix the shell variable \$srcfile for the compiler.
13036fix_srcfile_path="$fix_srcfile_path_CXX"
13037
13038# Set to yes if exported symbols are required.
13039always_export_symbols=$always_export_symbols_CXX
13040
13041# The commands to list exported symbols.
13042export_symbols_cmds=$lt_export_symbols_cmds_CXX
13043
13044# The commands to extract the exported symbol list from a shared archive.
13045extract_expsyms_cmds=$lt_extract_expsyms_cmds
13046
13047# Symbols that should not be listed in the preloaded symbols.
13048exclude_expsyms=$lt_exclude_expsyms_CXX
13049
13050# Symbols that must always be exported.
13051include_expsyms=$lt_include_expsyms_CXX
13052
13053# ### END LIBTOOL TAG CONFIG: $tagname
13054
13055__EOF__
13056
13057
13058else
13059 # If there is no Makefile yet, we rely on a make rule to execute
13060 # `config.status --recheck' to rerun these tests and create the
13061 # libtool script then.
13062 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13063 if test -f "$ltmain_in"; then
13064 test -f Makefile && make "$ltmain"
13065 fi
13066fi
13067
13068
13069ac_ext=c
13070ac_cpp='$CPP $CPPFLAGS'
13071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13073ac_compiler_gnu=$ac_cv_c_compiler_gnu
13074
13075CC=$lt_save_CC
13076LDCXX=$LD
13077LD=$lt_save_LD
13078GCC=$lt_save_GCC
13079with_gnu_ldcxx=$with_gnu_ld
13080with_gnu_ld=$lt_save_with_gnu_ld
13081lt_cv_path_LDCXX=$lt_cv_path_LD
13082lt_cv_path_LD=$lt_save_path_LD
13083lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13084lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13085
13086 else
13087 tagname=""
13088 fi
13089 ;;
13090
13091 F77)
13092 if test -n "$F77" && test "X$F77" != "Xno"; then
13093
13094ac_ext=f
13095ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13096ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13097ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13098
13099
13100archive_cmds_need_lc_F77=no
13101allow_undefined_flag_F77=
13102always_export_symbols_F77=no
13103archive_expsym_cmds_F77=
13104export_dynamic_flag_spec_F77=
13105hardcode_direct_F77=no
13106hardcode_libdir_flag_spec_F77=
13107hardcode_libdir_flag_spec_ld_F77=
13108hardcode_libdir_separator_F77=
13109hardcode_minus_L_F77=no
13110hardcode_automatic_F77=no
13111module_cmds_F77=
13112module_expsym_cmds_F77=
13113link_all_deplibs_F77=unknown
13114old_archive_cmds_F77=$old_archive_cmds
13115no_undefined_flag_F77=
13116whole_archive_flag_spec_F77=
13117enable_shared_with_static_runtimes_F77=no
13118
13119# Source file extension for f77 test sources.
13120ac_ext=f
13121
13122# Object file extension for compiled f77 test sources.
13123objext=o
13124objext_F77=$objext
13125
13126# Code to be used in simple compile tests
13127lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13128
13129# Code to be used in simple link tests
13130lt_simple_link_test_code=" program t\n end\n"
13131
13132# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13133
13134# If no C compiler was specified, use CC.
13135LTCC=${LTCC-"$CC"}
13136
13137# If no C compiler flags were specified, use CFLAGS.
13138LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13139
13140# Allow CC to be a program name with arguments.
13141compiler=$CC
13142
13143
13144# save warnings/boilerplate of simple test code
13145ac_outfile=conftest.$ac_objext
13146printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13147eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13148_lt_compiler_boilerplate=`cat conftest.err`
13149$rm conftest*
13150
13151ac_outfile=conftest.$ac_objext
13152printf "$lt_simple_link_test_code" >conftest.$ac_ext
13153eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13154_lt_linker_boilerplate=`cat conftest.err`
13155$rm conftest*
13156
13157
13158# Allow CC to be a program name with arguments.
13159lt_save_CC="$CC"
13160CC=${F77-"f77"}
13161compiler=$CC
13162compiler_F77=$CC
13163for cc_temp in $compiler""; do
13164 case $cc_temp in
13165 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13166 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13167 \-*) ;;
13168 *) break;;
13169 esac
13170done
13171cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13172
13173
13174echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13175echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13176echo "$as_me:$LINENO: result: $can_build_shared" >&5
13177echo "${ECHO_T}$can_build_shared" >&6
13178
13179echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13180echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13181test "$can_build_shared" = "no" && enable_shared=no
13182
13183# On AIX, shared libraries and static libraries use the same namespace, and
13184# are all built from PIC.
13185case $host_os in
13186aix3*)
13187 test "$enable_shared" = yes && enable_static=no
13188 if test -n "$RANLIB"; then
13189 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13190 postinstall_cmds='$RANLIB $lib'
13191 fi
13192 ;;
13193aix4* | aix5*)
13194 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13195 test "$enable_shared" = yes && enable_static=no
13196 fi
13197 ;;
13198esac
13199echo "$as_me:$LINENO: result: $enable_shared" >&5
13200echo "${ECHO_T}$enable_shared" >&6
13201
13202echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13203echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13204# Make sure either enable_shared or enable_static is yes.
13205test "$enable_shared" = yes || enable_static=yes
13206echo "$as_me:$LINENO: result: $enable_static" >&5
13207echo "${ECHO_T}$enable_static" >&6
13208
13209GCC_F77="$G77"
13210LD_F77="$LD"
13211
13212lt_prog_compiler_wl_F77=
13213lt_prog_compiler_pic_F77=
13214lt_prog_compiler_static_F77=
13215
13216echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13217echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13218
13219 if test "$GCC" = yes; then
13220 lt_prog_compiler_wl_F77='-Wl,'
13221 lt_prog_compiler_static_F77='-static'
13222
13223 case $host_os in
13224 aix*)
13225 # All AIX code is PIC.
13226 if test "$host_cpu" = ia64; then
13227 # AIX 5 now supports IA64 processor
13228 lt_prog_compiler_static_F77='-Bstatic'
13229 fi
13230 ;;
13231
13232 amigaos*)
13233 # FIXME: we need at least 68020 code to build shared libraries, but
13234 # adding the `-m68020' flag to GCC prevents building anything better,
13235 # like `-m68040'.
13236 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13237 ;;
13238
13239 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13240 # PIC is the default for these OSes.
13241 ;;
13242
13243 mingw* | pw32* | os2*)
13244 # This hack is so that the source file can tell whether it is being
13245 # built for inclusion in a dll (and should export symbols for example).
13246 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13247 ;;
13248
13249 darwin* | rhapsody*)
13250 # PIC is the default on this platform
13251 # Common symbols not allowed in MH_DYLIB files
13252 lt_prog_compiler_pic_F77='-fno-common'
13253 ;;
13254
13255 interix3*)
13256 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13257 # Instead, we relocate shared libraries at runtime.
13258 ;;
13259
13260 msdosdjgpp*)
13261 # Just because we use GCC doesn't mean we suddenly get shared libraries
13262 # on systems that don't support them.
13263 lt_prog_compiler_can_build_shared_F77=no
13264 enable_shared=no
13265 ;;
13266
13267 sysv4*MP*)
13268 if test -d /usr/nec; then
13269 lt_prog_compiler_pic_F77=-Kconform_pic
13270 fi
13271 ;;
13272
13273 hpux*)
13274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13275 # not for PA HP-UX.
13276 case $host_cpu in
13277 hppa*64*|ia64*)
13278 # +Z the default
13279 ;;
13280 *)
13281 lt_prog_compiler_pic_F77='-fPIC'
13282 ;;
13283 esac
13284 ;;
13285
13286 *)
13287 lt_prog_compiler_pic_F77='-fPIC'
13288 ;;
13289 esac
13290 else
13291 # PORTME Check for flag to pass linker flags through the system compiler.
13292 case $host_os in
13293 aix*)
13294 lt_prog_compiler_wl_F77='-Wl,'
13295 if test "$host_cpu" = ia64; then
13296 # AIX 5 now supports IA64 processor
13297 lt_prog_compiler_static_F77='-Bstatic'
13298 else
13299 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13300 fi
13301 ;;
13302 darwin*)
13303 # PIC is the default on this platform
13304 # Common symbols not allowed in MH_DYLIB files
13305 case $cc_basename in
13306 xlc*)
13307 lt_prog_compiler_pic_F77='-qnocommon'
13308 lt_prog_compiler_wl_F77='-Wl,'
13309 ;;
13310 esac
13311 ;;
13312
13313 mingw* | pw32* | os2*)
13314 # This hack is so that the source file can tell whether it is being
13315 # built for inclusion in a dll (and should export symbols for example).
13316 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13317 ;;
13318
13319 hpux9* | hpux10* | hpux11*)
13320 lt_prog_compiler_wl_F77='-Wl,'
13321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13322 # not for PA HP-UX.
13323 case $host_cpu in
13324 hppa*64*|ia64*)
13325 # +Z the default
13326 ;;
13327 *)
13328 lt_prog_compiler_pic_F77='+Z'
13329 ;;
13330 esac
13331 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13332 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13333 ;;
13334
13335 irix5* | irix6* | nonstopux*)
13336 lt_prog_compiler_wl_F77='-Wl,'
13337 # PIC (with -KPIC) is the default.
13338 lt_prog_compiler_static_F77='-non_shared'
13339 ;;
13340
13341 newsos6)
13342 lt_prog_compiler_pic_F77='-KPIC'
13343 lt_prog_compiler_static_F77='-Bstatic'
13344 ;;
13345
13346 linux*)
13347 case $cc_basename in
13348 icc* | ecc*)
13349 lt_prog_compiler_wl_F77='-Wl,'
13350 lt_prog_compiler_pic_F77='-KPIC'
13351 lt_prog_compiler_static_F77='-static'
13352 ;;
13353 pgcc* | pgf77* | pgf90* | pgf95*)
13354 # Portland Group compilers (*not* the Pentium gcc compiler,
13355 # which looks to be a dead project)
13356 lt_prog_compiler_wl_F77='-Wl,'
13357 lt_prog_compiler_pic_F77='-fpic'
13358 lt_prog_compiler_static_F77='-Bstatic'
13359 ;;
13360 ccc*)
13361 lt_prog_compiler_wl_F77='-Wl,'
13362 # All Alpha code is PIC.
13363 lt_prog_compiler_static_F77='-non_shared'
13364 ;;
13365 esac
13366 ;;
13367
13368 osf3* | osf4* | osf5*)
13369 lt_prog_compiler_wl_F77='-Wl,'
13370 # All OSF/1 code is PIC.
13371 lt_prog_compiler_static_F77='-non_shared'
13372 ;;
13373
13374 solaris*)
13375 lt_prog_compiler_pic_F77='-KPIC'
13376 lt_prog_compiler_static_F77='-Bstatic'
13377 case $cc_basename in
13378 f77* | f90* | f95*)
13379 lt_prog_compiler_wl_F77='-Qoption ld ';;
13380 *)
13381 lt_prog_compiler_wl_F77='-Wl,';;
13382 esac
13383 ;;
13384
13385 sunos4*)
13386 lt_prog_compiler_wl_F77='-Qoption ld '
13387 lt_prog_compiler_pic_F77='-PIC'
13388 lt_prog_compiler_static_F77='-Bstatic'
13389 ;;
13390
13391 sysv4 | sysv4.2uw2* | sysv4.3*)
13392 lt_prog_compiler_wl_F77='-Wl,'
13393 lt_prog_compiler_pic_F77='-KPIC'
13394 lt_prog_compiler_static_F77='-Bstatic'
13395 ;;
13396
13397 sysv4*MP*)
13398 if test -d /usr/nec ;then
13399 lt_prog_compiler_pic_F77='-Kconform_pic'
13400 lt_prog_compiler_static_F77='-Bstatic'
13401 fi
13402 ;;
13403
13404 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13405 lt_prog_compiler_wl_F77='-Wl,'
13406 lt_prog_compiler_pic_F77='-KPIC'
13407 lt_prog_compiler_static_F77='-Bstatic'
13408 ;;
13409
13410 unicos*)
13411 lt_prog_compiler_wl_F77='-Wl,'
13412 lt_prog_compiler_can_build_shared_F77=no
13413 ;;
13414
13415 uts4*)
13416 lt_prog_compiler_pic_F77='-pic'
13417 lt_prog_compiler_static_F77='-Bstatic'
13418 ;;
13419
13420 *)
13421 lt_prog_compiler_can_build_shared_F77=no
13422 ;;
13423 esac
13424 fi
13425
13426echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13427echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13428
13429#
13430# Check to make sure the PIC flag actually works.
13431#
13432if test -n "$lt_prog_compiler_pic_F77"; then
13433
13434echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13435echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13436if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438else
13439 lt_prog_compiler_pic_works_F77=no
13440 ac_outfile=conftest.$ac_objext
13441 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13442 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13443 # Insert the option either (1) after the last *FLAGS variable, or
13444 # (2) before a word containing "conftest.", or (3) at the end.
13445 # Note that $ac_compile itself does not contain backslashes and begins
13446 # with a dollar sign (not a hyphen), so the echo should work correctly.
13447 # The option is referenced via a variable to avoid confusing sed.
13448 lt_compile=`echo "$ac_compile" | $SED \
13449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13451 -e 's:$: $lt_compiler_flag:'`
13452 (eval echo "\"\$as_me:13452: $lt_compile\"" >&5)
13453 (eval "$lt_compile" 2>conftest.err)
13454 ac_status=$?
13455 cat conftest.err >&5
13456 echo "$as_me:13456: \$? = $ac_status" >&5
13457 if (exit $ac_status) && test -s "$ac_outfile"; then
13458 # The compiler can only warn and ignore the option if not recognized
13459 # So say no if there are warnings other than the usual output.
13460 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13463 lt_prog_compiler_pic_works_F77=yes
13464 fi
13465 fi
13466 $rm conftest*
13467
13468fi
13469echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13470echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13471
13472if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13473 case $lt_prog_compiler_pic_F77 in
13474 "" | " "*) ;;
13475 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13476 esac
13477else
13478 lt_prog_compiler_pic_F77=
13479 lt_prog_compiler_can_build_shared_F77=no
13480fi
13481
13482fi
13483case $host_os in
13484 # For platforms which do not support PIC, -DPIC is meaningless:
13485 *djgpp*)
13486 lt_prog_compiler_pic_F77=
13487 ;;
13488 *)
13489 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13490 ;;
13491esac
13492
13493#
13494# Check to make sure the static flag actually works.
13495#
13496wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13497echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13498echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13499if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501else
13502 lt_prog_compiler_static_works_F77=no
13503 save_LDFLAGS="$LDFLAGS"
13504 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13505 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13506 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13507 # The linker can only warn and ignore the option if not recognized
13508 # So say no if there are warnings
13509 if test -s conftest.err; then
13510 # Append any errors to the config.log.
13511 cat conftest.err 1>&5
13512 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13514 if diff conftest.exp conftest.er2 >/dev/null; then
13515 lt_prog_compiler_static_works_F77=yes
13516 fi
13517 else
13518 lt_prog_compiler_static_works_F77=yes
13519 fi
13520 fi
13521 $rm conftest*
13522 LDFLAGS="$save_LDFLAGS"
13523
13524fi
13525echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13526echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13527
13528if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13529 :
13530else
13531 lt_prog_compiler_static_F77=
13532fi
13533
13534
13535echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13536echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13537if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539else
13540 lt_cv_prog_compiler_c_o_F77=no
13541 $rm -r conftest 2>/dev/null
13542 mkdir conftest
13543 cd conftest
13544 mkdir out
13545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13546
13547 lt_compiler_flag="-o out/conftest2.$ac_objext"
13548 # Insert the option either (1) after the last *FLAGS variable, or
13549 # (2) before a word containing "conftest.", or (3) at the end.
13550 # Note that $ac_compile itself does not contain backslashes and begins
13551 # with a dollar sign (not a hyphen), so the echo should work correctly.
13552 lt_compile=`echo "$ac_compile" | $SED \
13553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13555 -e 's:$: $lt_compiler_flag:'`
13556 (eval echo "\"\$as_me:13556: $lt_compile\"" >&5)
13557 (eval "$lt_compile" 2>out/conftest.err)
13558 ac_status=$?
13559 cat out/conftest.err >&5
13560 echo "$as_me:13560: \$? = $ac_status" >&5
13561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13562 then
13563 # The compiler can only warn and ignore the option if not recognized
13564 # So say no if there are warnings
13565 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13568 lt_cv_prog_compiler_c_o_F77=yes
13569 fi
13570 fi
13571 chmod u+w . 2>&5
13572 $rm conftest*
13573 # SGI C++ compiler will create directory out/ii_files/ for
13574 # template instantiation
13575 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13576 $rm out/* && rmdir out
13577 cd ..
13578 rmdir conftest
13579 $rm conftest*
13580
13581fi
13582echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13583echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13584
13585
13586hard_links="nottested"
13587if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13588 # do not overwrite the value of need_locks provided by the user
13589 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13590echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13591 hard_links=yes
13592 $rm conftest*
13593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13594 touch conftest.a
13595 ln conftest.a conftest.b 2>&5 || hard_links=no
13596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13597 echo "$as_me:$LINENO: result: $hard_links" >&5
13598echo "${ECHO_T}$hard_links" >&6
13599 if test "$hard_links" = no; then
13600 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13601echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13602 need_locks=warn
13603 fi
13604else
13605 need_locks=no
13606fi
13607
13608echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13609echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13610
13611 runpath_var=
13612 allow_undefined_flag_F77=
13613 enable_shared_with_static_runtimes_F77=no
13614 archive_cmds_F77=
13615 archive_expsym_cmds_F77=
13616 old_archive_From_new_cmds_F77=
13617 old_archive_from_expsyms_cmds_F77=
13618 export_dynamic_flag_spec_F77=
13619 whole_archive_flag_spec_F77=
13620 thread_safe_flag_spec_F77=
13621 hardcode_libdir_flag_spec_F77=
13622 hardcode_libdir_flag_spec_ld_F77=
13623 hardcode_libdir_separator_F77=
13624 hardcode_direct_F77=no
13625 hardcode_minus_L_F77=no
13626 hardcode_shlibpath_var_F77=unsupported
13627 link_all_deplibs_F77=unknown
13628 hardcode_automatic_F77=no
13629 module_cmds_F77=
13630 module_expsym_cmds_F77=
13631 always_export_symbols_F77=no
13632 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13633 # include_expsyms should be a list of space-separated symbols to be *always*
13634 # included in the symbol list
13635 include_expsyms_F77=
13636 # exclude_expsyms can be an extended regexp of symbols to exclude
13637 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13638 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13639 # as well as any symbol that contains `d'.
13640 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13641 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13642 # platforms (ab)use it in PIC code, but their linkers get confused if
13643 # the symbol is explicitly referenced. Since portable code cannot
13644 # rely on this symbol name, it's probably fine to never include it in
13645 # preloaded symbol tables.
13646 extract_expsyms_cmds=
13647 # Just being paranoid about ensuring that cc_basename is set.
13648 for cc_temp in $compiler""; do
13649 case $cc_temp in
13650 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13651 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13652 \-*) ;;
13653 *) break;;
13654 esac
13655done
13656cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13657
13658 case $host_os in
13659 cygwin* | mingw* | pw32*)
13660 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13661 # When not using gcc, we currently assume that we are using
13662 # Microsoft Visual C++.
13663 if test "$GCC" != yes; then
13664 with_gnu_ld=no
13665 fi
13666 ;;
13667 interix*)
13668 # we just hope/assume this is gcc and not c89 (= MSVC++)
13669 with_gnu_ld=yes
13670 ;;
13671 openbsd*)
13672 with_gnu_ld=no
13673 ;;
13674 esac
13675
13676 ld_shlibs_F77=yes
13677 if test "$with_gnu_ld" = yes; then
13678 # If archive_cmds runs LD, not CC, wlarc should be empty
13679 wlarc='${wl}'
13680
13681 # Set some defaults for GNU ld with shared library support. These
13682 # are reset later if shared libraries are not supported. Putting them
13683 # here allows them to be overridden if necessary.
13684 runpath_var=LD_RUN_PATH
13685 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13686 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13687 # ancient GNU ld didn't support --whole-archive et. al.
13688 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13689 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13690 else
13691 whole_archive_flag_spec_F77=
13692 fi
13693 supports_anon_versioning=no
13694 case `$LD -v 2>/dev/null` in
13695 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13696 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13697 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13698 *\ 2.11.*) ;; # other 2.11 versions
13699 *) supports_anon_versioning=yes ;;
13700 esac
13701
13702 # See if GNU ld supports shared libraries.
13703 case $host_os in
13704 aix3* | aix4* | aix5*)
13705 # On AIX/PPC, the GNU linker is very broken
13706 if test "$host_cpu" != ia64; then
13707 ld_shlibs_F77=no
13708 cat <<EOF 1>&2
13709
13710*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13711*** to be unable to reliably create shared libraries on AIX.
13712*** Therefore, libtool is disabling shared libraries support. If you
13713*** really care for shared libraries, you may want to modify your PATH
13714*** so that a non-GNU linker is found, and then restart.
13715
13716EOF
13717 fi
13718 ;;
13719
13720 amigaos*)
13721 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)'
13722 hardcode_libdir_flag_spec_F77='-L$libdir'
13723 hardcode_minus_L_F77=yes
13724
13725 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13726 # that the semantics of dynamic libraries on AmigaOS, at least up
13727 # to version 4, is to share data among multiple programs linked
13728 # with the same dynamic library. Since this doesn't match the
13729 # behavior of shared libraries on other platforms, we can't use
13730 # them.
13731 ld_shlibs_F77=no
13732 ;;
13733
13734 beos*)
13735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13736 allow_undefined_flag_F77=unsupported
13737 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13738 # support --undefined. This deserves some investigation. FIXME
13739 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13740 else
13741 ld_shlibs_F77=no
13742 fi
13743 ;;
13744
13745 cygwin* | mingw* | pw32*)
13746 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13747 # as there is no search path for DLLs.
13748 hardcode_libdir_flag_spec_F77='-L$libdir'
13749 allow_undefined_flag_F77=unsupported
13750 always_export_symbols_F77=no
13751 enable_shared_with_static_runtimes_F77=yes
13752 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13753
13754 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13755 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13756 # If the export-symbols file already is a .def file (1st line
13757 # is EXPORTS), use it as is; otherwise, prepend...
13758 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13759 cp $export_symbols $output_objdir/$soname.def;
13760 else
13761 echo EXPORTS > $output_objdir/$soname.def;
13762 cat $export_symbols >> $output_objdir/$soname.def;
13763 fi~
13764 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13765 else
13766 ld_shlibs_F77=no
13767 fi
13768 ;;
13769
13770 interix3*)
13771 hardcode_direct_F77=no
13772 hardcode_shlibpath_var_F77=no
13773 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13774 export_dynamic_flag_spec_F77='${wl}-E'
13775 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13776 # Instead, shared libraries are loaded at an image base (0x10000000 by
13777 # default) and relocated if they conflict, which is a slow very memory
13778 # consuming and fragmenting process. To avoid this, we pick a random,
13779 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13780 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13781 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'
13782 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'
13783 ;;
13784
13785 linux*)
13786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13787 tmp_addflag=
13788 case $cc_basename,$host_cpu in
13789 pgcc*) # Portland Group C compiler
13790 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'
13791 tmp_addflag=' $pic_flag'
13792 ;;
13793 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13794 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'
13795 tmp_addflag=' $pic_flag -Mnomain' ;;
13796 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13797 tmp_addflag=' -i_dynamic' ;;
13798 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13799 tmp_addflag=' -i_dynamic -nofor_main' ;;
13800 ifc* | ifort*) # Intel Fortran compiler
13801 tmp_addflag=' -nofor_main' ;;
13802 esac
13803 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13804
13805 if test $supports_anon_versioning = yes; then
13806 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13807 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13808 $echo "local: *; };" >> $output_objdir/$libname.ver~
13809 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13810 fi
13811 else
13812 ld_shlibs_F77=no
13813 fi
13814 ;;
13815
13816 netbsd*)
13817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13818 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13819 wlarc=
13820 else
13821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13823 fi
13824 ;;
13825
13826 solaris*)
13827 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13828 ld_shlibs_F77=no
13829 cat <<EOF 1>&2
13830
13831*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13832*** create shared libraries on Solaris systems. Therefore, libtool
13833*** is disabling shared libraries support. We urge you to upgrade GNU
13834*** binutils to release 2.9.1 or newer. Another option is to modify
13835*** your PATH or compiler configuration so that the native linker is
13836*** used, and then restart.
13837
13838EOF
13839 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13840 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13841 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13842 else
13843 ld_shlibs_F77=no
13844 fi
13845 ;;
13846
13847 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13848 case `$LD -v 2>&1` in
13849 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13850 ld_shlibs_F77=no
13851 cat <<_LT_EOF 1>&2
13852
13853*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13854*** reliably create shared libraries on SCO systems. Therefore, libtool
13855*** is disabling shared libraries support. We urge you to upgrade GNU
13856*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13857*** your PATH or compiler configuration so that the native linker is
13858*** used, and then restart.
13859
13860_LT_EOF
13861 ;;
13862 *)
13863 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13864 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13865 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13866 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13867 else
13868 ld_shlibs_F77=no
13869 fi
13870 ;;
13871 esac
13872 ;;
13873
13874 sunos4*)
13875 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13876 wlarc=
13877 hardcode_direct_F77=yes
13878 hardcode_shlibpath_var_F77=no
13879 ;;
13880
13881 *)
13882 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13883 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13884 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13885 else
13886 ld_shlibs_F77=no
13887 fi
13888 ;;
13889 esac
13890
13891 if test "$ld_shlibs_F77" = no; then
13892 runpath_var=
13893 hardcode_libdir_flag_spec_F77=
13894 export_dynamic_flag_spec_F77=
13895 whole_archive_flag_spec_F77=
13896 fi
13897 else
13898 # PORTME fill in a description of your system's linker (not GNU ld)
13899 case $host_os in
13900 aix3*)
13901 allow_undefined_flag_F77=unsupported
13902 always_export_symbols_F77=yes
13903 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'
13904 # Note: this linker hardcodes the directories in LIBPATH if there
13905 # are no directories specified by -L.
13906 hardcode_minus_L_F77=yes
13907 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13908 # Neither direct hardcoding nor static linking is supported with a
13909 # broken collect2.
13910 hardcode_direct_F77=unsupported
13911 fi
13912 ;;
13913
13914 aix4* | aix5*)
13915 if test "$host_cpu" = ia64; then
13916 # On IA64, the linker does run time linking by default, so we don't
13917 # have to do anything special.
13918 aix_use_runtimelinking=no
13919 exp_sym_flag='-Bexport'
13920 no_entry_flag=""
13921 else
13922 # If we're using GNU nm, then we don't want the "-C" option.
13923 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13924 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13925 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'
13926 else
13927 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'
13928 fi
13929 aix_use_runtimelinking=no
13930
13931 # Test if we are trying to use run time linking or normal
13932 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13933 # need to do runtime linking.
13934 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13935 for ld_flag in $LDFLAGS; do
13936 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13937 aix_use_runtimelinking=yes
13938 break
13939 fi
13940 done
13941 ;;
13942 esac
13943
13944 exp_sym_flag='-bexport'
13945 no_entry_flag='-bnoentry'
13946 fi
13947
13948 # When large executables or shared objects are built, AIX ld can
13949 # have problems creating the table of contents. If linking a library
13950 # or program results in "error TOC overflow" add -mminimal-toc to
13951 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13952 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13953
13954 archive_cmds_F77=''
13955 hardcode_direct_F77=yes
13956 hardcode_libdir_separator_F77=':'
13957 link_all_deplibs_F77=yes
13958
13959 if test "$GCC" = yes; then
13960 case $host_os in aix4.[012]|aix4.[012].*)
13961 # We only want to do this on AIX 4.2 and lower, the check
13962 # below for broken collect2 doesn't work under 4.3+
13963 collect2name=`${CC} -print-prog-name=collect2`
13964 if test -f "$collect2name" && \
13965 strings "$collect2name" | grep resolve_lib_name >/dev/null
13966 then
13967 # We have reworked collect2
13968 hardcode_direct_F77=yes
13969 else
13970 # We have old collect2
13971 hardcode_direct_F77=unsupported
13972 # It fails to find uninstalled libraries when the uninstalled
13973 # path is not listed in the libpath. Setting hardcode_minus_L
13974 # to unsupported forces relinking
13975 hardcode_minus_L_F77=yes
13976 hardcode_libdir_flag_spec_F77='-L$libdir'
13977 hardcode_libdir_separator_F77=
13978 fi
13979 ;;
13980 esac
13981 shared_flag='-shared'
13982 if test "$aix_use_runtimelinking" = yes; then
13983 shared_flag="$shared_flag "'${wl}-G'
13984 fi
13985 else
13986 # not using gcc
13987 if test "$host_cpu" = ia64; then
13988 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13989 # chokes on -Wl,-G. The following line is correct:
13990 shared_flag='-G'
13991 else
13992 if test "$aix_use_runtimelinking" = yes; then
13993 shared_flag='${wl}-G'
13994 else
13995 shared_flag='${wl}-bM:SRE'
13996 fi
13997 fi
13998 fi
13999
14000 # It seems that -bexpall does not export symbols beginning with
14001 # underscore (_), so it is better to generate a list of symbols to export.
14002 always_export_symbols_F77=yes
14003 if test "$aix_use_runtimelinking" = yes; then
14004 # Warning - without using the other runtime loading flags (-brtl),
14005 # -berok will link without error, but may produce a broken library.
14006 allow_undefined_flag_F77='-berok'
14007 # Determine the default libpath from the value encoded in an empty executable.
14008 cat >conftest.$ac_ext <<_ACEOF
14009 program main
14010
14011 end
14012_ACEOF
14013rm -f conftest.$ac_objext conftest$ac_exeext
14014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14015 (eval $ac_link) 2>conftest.er1
14016 ac_status=$?
14017 grep -v '^ *+' conftest.er1 >conftest.err
14018 rm -f conftest.er1
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -z "$ac_f77_werror_flag"
14023 || test ! -s conftest.err'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; } &&
14029 { ac_try='test -s conftest$ac_exeext'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }; then
14035
14036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14037}'`
14038# Check for a 64-bit object if we didn't find anything.
14039if 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; }
14040}'`; fi
14041else
14042 echo "$as_me: failed program was:" >&5
14043sed 's/^/| /' conftest.$ac_ext >&5
14044
14045fi
14046rm -f conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14048if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14049
14050 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14051 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"
14052 else
14053 if test "$host_cpu" = ia64; then
14054 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14055 allow_undefined_flag_F77="-z nodefs"
14056 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"
14057 else
14058 # Determine the default libpath from the value encoded in an empty executable.
14059 cat >conftest.$ac_ext <<_ACEOF
14060 program main
14061
14062 end
14063_ACEOF
14064rm -f conftest.$ac_objext conftest$ac_exeext
14065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14066 (eval $ac_link) 2>conftest.er1
14067 ac_status=$?
14068 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } &&
14073 { ac_try='test -z "$ac_f77_werror_flag"
14074 || test ! -s conftest.err'
14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; } &&
14080 { ac_try='test -s conftest$ac_exeext'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086
14087aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14088}'`
14089# Check for a 64-bit object if we didn't find anything.
14090if 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; }
14091}'`; fi
14092else
14093 echo "$as_me: failed program was:" >&5
14094sed 's/^/| /' conftest.$ac_ext >&5
14095
14096fi
14097rm -f conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14099if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14100
14101 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14102 # Warning - without using the other run time loading flags,
14103 # -berok will link without error, but may produce a broken library.
14104 no_undefined_flag_F77=' ${wl}-bernotok'
14105 allow_undefined_flag_F77=' ${wl}-berok'
14106 # Exported symbols can be pulled into shared objects from archives
14107 whole_archive_flag_spec_F77='$convenience'
14108 archive_cmds_need_lc_F77=yes
14109 # This is similar to how AIX traditionally builds its shared libraries.
14110 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'
14111 fi
14112 fi
14113 ;;
14114
14115 amigaos*)
14116 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)'
14117 hardcode_libdir_flag_spec_F77='-L$libdir'
14118 hardcode_minus_L_F77=yes
14119 # see comment about different semantics on the GNU ld section
14120 ld_shlibs_F77=no
14121 ;;
14122
14123 bsdi[45]*)
14124 export_dynamic_flag_spec_F77=-rdynamic
14125 ;;
14126
14127 cygwin* | mingw* | pw32*)
14128 # When not using gcc, we currently assume that we are using
14129 # Microsoft Visual C++.
14130 # hardcode_libdir_flag_spec is actually meaningless, as there is
14131 # no search path for DLLs.
14132 hardcode_libdir_flag_spec_F77=' '
14133 allow_undefined_flag_F77=unsupported
14134 # Tell ltmain to make .lib files, not .a files.
14135 libext=lib
14136 # Tell ltmain to make .dll files, not .so files.
14137 shrext_cmds=".dll"
14138 # FIXME: Setting linknames here is a bad hack.
14139 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14140 # The linker will automatically build a .lib file if we build a DLL.
14141 old_archive_From_new_cmds_F77='true'
14142 # FIXME: Should let the user specify the lib program.
14143 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14144 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14145 enable_shared_with_static_runtimes_F77=yes
14146 ;;
14147
14148 darwin* | rhapsody*)
14149 case $host_os in
14150 rhapsody* | darwin1.[012])
14151 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14152 ;;
14153 *) # Darwin 1.3 on
14154 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14155 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14156 else
14157 case ${MACOSX_DEPLOYMENT_TARGET} in
14158 10.[012])
14159 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14160 ;;
14161 10.*)
14162 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14163 ;;
14164 esac
14165 fi
14166 ;;
14167 esac
14168 archive_cmds_need_lc_F77=no
14169 hardcode_direct_F77=no
14170 hardcode_automatic_F77=yes
14171 hardcode_shlibpath_var_F77=unsupported
14172 whole_archive_flag_spec_F77=''
14173 link_all_deplibs_F77=yes
14174 if test "$GCC" = yes ; then
14175 output_verbose_link_cmd='echo'
14176 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14177 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14178 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14179 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}'
14180 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}'
14181 else
14182 case $cc_basename in
14183 xlc*)
14184 output_verbose_link_cmd='echo'
14185 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14186 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14188 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}'
14189 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}'
14190 ;;
14191 *)
14192 ld_shlibs_F77=no
14193 ;;
14194 esac
14195 fi
14196 ;;
14197
14198 dgux*)
14199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14200 hardcode_libdir_flag_spec_F77='-L$libdir'
14201 hardcode_shlibpath_var_F77=no
14202 ;;
14203
14204 freebsd1*)
14205 ld_shlibs_F77=no
14206 ;;
14207
14208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14209 # support. Future versions do this automatically, but an explicit c++rt0.o
14210 # does not break anything, and helps significantly (at the cost of a little
14211 # extra space).
14212 freebsd2.2*)
14213 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14214 hardcode_libdir_flag_spec_F77='-R$libdir'
14215 hardcode_direct_F77=yes
14216 hardcode_shlibpath_var_F77=no
14217 ;;
14218
14219 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14220 freebsd2*)
14221 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14222 hardcode_direct_F77=yes
14223 hardcode_minus_L_F77=yes
14224 hardcode_shlibpath_var_F77=no
14225 ;;
14226
14227 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14228 freebsd* | kfreebsd*-gnu | dragonfly*)
14229 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14230 hardcode_libdir_flag_spec_F77='-R$libdir'
14231 hardcode_direct_F77=yes
14232 hardcode_shlibpath_var_F77=no
14233 ;;
14234
14235 hpux9*)
14236 if test "$GCC" = yes; then
14237 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'
14238 else
14239 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'
14240 fi
14241 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14242 hardcode_libdir_separator_F77=:
14243 hardcode_direct_F77=yes
14244
14245 # hardcode_minus_L: Not really in the search PATH,
14246 # but as the default location of the library.
14247 hardcode_minus_L_F77=yes
14248 export_dynamic_flag_spec_F77='${wl}-E'
14249 ;;
14250
14251 hpux10*)
14252 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14253 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14254 else
14255 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14256 fi
14257 if test "$with_gnu_ld" = no; then
14258 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14259 hardcode_libdir_separator_F77=:
14260
14261 hardcode_direct_F77=yes
14262 export_dynamic_flag_spec_F77='${wl}-E'
14263
14264 # hardcode_minus_L: Not really in the search PATH,
14265 # but as the default location of the library.
14266 hardcode_minus_L_F77=yes
14267 fi
14268 ;;
14269
14270 hpux11*)
14271 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14272 case $host_cpu in
14273 hppa*64*)
14274 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14275 ;;
14276 ia64*)
14277 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14278 ;;
14279 *)
14280 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14281 ;;
14282 esac
14283 else
14284 case $host_cpu in
14285 hppa*64*)
14286 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14287 ;;
14288 ia64*)
14289 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14290 ;;
14291 *)
14292 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14293 ;;
14294 esac
14295 fi
14296 if test "$with_gnu_ld" = no; then
14297 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14298 hardcode_libdir_separator_F77=:
14299
14300 case $host_cpu in
14301 hppa*64*|ia64*)
14302 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14303 hardcode_direct_F77=no
14304 hardcode_shlibpath_var_F77=no
14305 ;;
14306 *)
14307 hardcode_direct_F77=yes
14308 export_dynamic_flag_spec_F77='${wl}-E'
14309
14310 # hardcode_minus_L: Not really in the search PATH,
14311 # but as the default location of the library.
14312 hardcode_minus_L_F77=yes
14313 ;;
14314 esac
14315 fi
14316 ;;
14317
14318 irix5* | irix6* | nonstopux*)
14319 if test "$GCC" = yes; then
14320 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'
14321 else
14322 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'
14323 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14324 fi
14325 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14326 hardcode_libdir_separator_F77=:
14327 link_all_deplibs_F77=yes
14328 ;;
14329
14330 netbsd*)
14331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14332 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14333 else
14334 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14335 fi
14336 hardcode_libdir_flag_spec_F77='-R$libdir'
14337 hardcode_direct_F77=yes
14338 hardcode_shlibpath_var_F77=no
14339 ;;
14340
14341 newsos6)
14342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14343 hardcode_direct_F77=yes
14344 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14345 hardcode_libdir_separator_F77=:
14346 hardcode_shlibpath_var_F77=no
14347 ;;
14348
14349 openbsd*)
14350 hardcode_direct_F77=yes
14351 hardcode_shlibpath_var_F77=no
14352 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14353 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14354 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14355 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14356 export_dynamic_flag_spec_F77='${wl}-E'
14357 else
14358 case $host_os in
14359 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14360 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14361 hardcode_libdir_flag_spec_F77='-R$libdir'
14362 ;;
14363 *)
14364 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14365 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14366 ;;
14367 esac
14368 fi
14369 ;;
14370
14371 os2*)
14372 hardcode_libdir_flag_spec_F77='-L$libdir'
14373 hardcode_minus_L_F77=yes
14374 allow_undefined_flag_F77=unsupported
14375 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'
14376 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14377 ;;
14378
14379 osf3*)
14380 if test "$GCC" = yes; then
14381 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14382 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'
14383 else
14384 allow_undefined_flag_F77=' -expect_unresolved \*'
14385 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'
14386 fi
14387 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14388 hardcode_libdir_separator_F77=:
14389 ;;
14390
14391 osf4* | osf5*) # as osf3* with the addition of -msym flag
14392 if test "$GCC" = yes; then
14393 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14394 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'
14395 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14396 else
14397 allow_undefined_flag_F77=' -expect_unresolved \*'
14398 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'
14399 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~
14400 $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'
14401
14402 # Both c and cxx compiler support -rpath directly
14403 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14404 fi
14405 hardcode_libdir_separator_F77=:
14406 ;;
14407
14408 solaris*)
14409 no_undefined_flag_F77=' -z text'
14410 if test "$GCC" = yes; then
14411 wlarc='${wl}'
14412 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14413 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14414 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14415 else
14416 wlarc=''
14417 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14418 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14420 fi
14421 hardcode_libdir_flag_spec_F77='-R$libdir'
14422 hardcode_shlibpath_var_F77=no
14423 case $host_os in
14424 solaris2.[0-5] | solaris2.[0-5].*) ;;
14425 *)
14426 # The compiler driver will combine linker options so we
14427 # cannot just pass the convience library names through
14428 # without $wl, iff we do not link with $LD.
14429 # Luckily, gcc supports the same syntax we need for Sun Studio.
14430 # Supported since Solaris 2.6 (maybe 2.5.1?)
14431 case $wlarc in
14432 '')
14433 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14434 *)
14435 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' ;;
14436 esac ;;
14437 esac
14438 link_all_deplibs_F77=yes
14439 ;;
14440
14441 sunos4*)
14442 if test "x$host_vendor" = xsequent; then
14443 # Use $CC to link under sequent, because it throws in some extra .o
14444 # files that make .init and .fini sections work.
14445 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14446 else
14447 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14448 fi
14449 hardcode_libdir_flag_spec_F77='-L$libdir'
14450 hardcode_direct_F77=yes
14451 hardcode_minus_L_F77=yes
14452 hardcode_shlibpath_var_F77=no
14453 ;;
14454
14455 sysv4)
14456 case $host_vendor in
14457 sni)
14458 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14459 hardcode_direct_F77=yes # is this really true???
14460 ;;
14461 siemens)
14462 ## LD is ld it makes a PLAMLIB
14463 ## CC just makes a GrossModule.
14464 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14465 reload_cmds_F77='$CC -r -o $output$reload_objs'
14466 hardcode_direct_F77=no
14467 ;;
14468 motorola)
14469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14470 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14471 ;;
14472 esac
14473 runpath_var='LD_RUN_PATH'
14474 hardcode_shlibpath_var_F77=no
14475 ;;
14476
14477 sysv4.3*)
14478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14479 hardcode_shlibpath_var_F77=no
14480 export_dynamic_flag_spec_F77='-Bexport'
14481 ;;
14482
14483 sysv4*MP*)
14484 if test -d /usr/nec; then
14485 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14486 hardcode_shlibpath_var_F77=no
14487 runpath_var=LD_RUN_PATH
14488 hardcode_runpath_var=yes
14489 ld_shlibs_F77=yes
14490 fi
14491 ;;
14492
14493 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14494 no_undefined_flag_F77='${wl}-z,text'
14495 archive_cmds_need_lc_F77=no
14496 hardcode_shlibpath_var_F77=no
14497 runpath_var='LD_RUN_PATH'
14498
14499 if test "$GCC" = yes; then
14500 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14502 else
14503 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14504 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14505 fi
14506 ;;
14507
14508 sysv5* | sco3.2v5* | sco5v6*)
14509 # Note: We can NOT use -z defs as we might desire, because we do not
14510 # link with -lc, and that would cause any symbols used from libc to
14511 # always be unresolved, which means just about no library would
14512 # ever link correctly. If we're not using GNU ld we use -z text
14513 # though, which does catch some bad symbols but isn't as heavy-handed
14514 # as -z defs.
14515 no_undefined_flag_F77='${wl}-z,text'
14516 allow_undefined_flag_F77='${wl}-z,nodefs'
14517 archive_cmds_need_lc_F77=no
14518 hardcode_shlibpath_var_F77=no
14519 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14520 hardcode_libdir_separator_F77=':'
14521 link_all_deplibs_F77=yes
14522 export_dynamic_flag_spec_F77='${wl}-Bexport'
14523 runpath_var='LD_RUN_PATH'
14524
14525 if test "$GCC" = yes; then
14526 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14528 else
14529 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14530 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14531 fi
14532 ;;
14533
14534 uts4*)
14535 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14536 hardcode_libdir_flag_spec_F77='-L$libdir'
14537 hardcode_shlibpath_var_F77=no
14538 ;;
14539
14540 *)
14541 ld_shlibs_F77=no
14542 ;;
14543 esac
14544 fi
14545
14546echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14547echo "${ECHO_T}$ld_shlibs_F77" >&6
14548test "$ld_shlibs_F77" = no && can_build_shared=no
14549
14550#
14551# Do we need to explicitly link libc?
14552#
14553case "x$archive_cmds_need_lc_F77" in
14554x|xyes)
14555 # Assume -lc should be added
14556 archive_cmds_need_lc_F77=yes
14557
14558 if test "$enable_shared" = yes && test "$GCC" = yes; then
14559 case $archive_cmds_F77 in
14560 *'~'*)
14561 # FIXME: we may have to deal with multi-command sequences.
14562 ;;
14563 '$CC '*)
14564 # Test whether the compiler implicitly links with -lc since on some
14565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14566 # to ld, don't add -lc before -lgcc.
14567 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14568echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14569 $rm conftest*
14570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14571
14572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14573 (eval $ac_compile) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } 2>conftest.err; then
14577 soname=conftest
14578 lib=conftest
14579 libobjs=conftest.$ac_objext
14580 deplibs=
14581 wl=$lt_prog_compiler_wl_F77
14582 pic_flag=$lt_prog_compiler_pic_F77
14583 compiler_flags=-v
14584 linker_flags=-v
14585 verstring=
14586 output_objdir=.
14587 libname=conftest
14588 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14589 allow_undefined_flag_F77=
14590 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14591 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14592 ac_status=$?
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }
14595 then
14596 archive_cmds_need_lc_F77=no
14597 else
14598 archive_cmds_need_lc_F77=yes
14599 fi
14600 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14601 else
14602 cat conftest.err 1>&5
14603 fi
14604 $rm conftest*
14605 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14606echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14607 ;;
14608 esac
14609 fi
14610 ;;
14611esac
14612
14613echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14614echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14615library_names_spec=
14616libname_spec='lib$name'
14617soname_spec=
14618shrext_cmds=".so"
14619postinstall_cmds=
14620postuninstall_cmds=
14621finish_cmds=
14622finish_eval=
14623shlibpath_var=
14624shlibpath_overrides_runpath=unknown
14625version_type=none
14626dynamic_linker="$host_os ld.so"
14627sys_lib_dlsearch_path_spec="/lib /usr/lib"
14628if test "$GCC" = yes; then
14629 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14630 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14631 # if the path contains ";" then we assume it to be the separator
14632 # otherwise default to the standard path separator (i.e. ":") - it is
14633 # assumed that no part of a normal pathname contains ";" but that should
14634 # okay in the real world where ";" in dirpaths is itself problematic.
14635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14636 else
14637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14638 fi
14639else
14640 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14641fi
14642need_lib_prefix=unknown
14643hardcode_into_libs=no
14644
14645# when you set need_version to no, make sure it does not cause -set_version
14646# flags to be left without arguments
14647need_version=unknown
14648
14649case $host_os in
14650aix3*)
14651 version_type=linux
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14653 shlibpath_var=LIBPATH
14654
14655 # AIX 3 has no versioning support, so we append a major version to the name.
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 ;;
14658
14659aix4* | aix5*)
14660 version_type=linux
14661 need_lib_prefix=no
14662 need_version=no
14663 hardcode_into_libs=yes
14664 if test "$host_cpu" = ia64; then
14665 # AIX 5 supports IA64
14666 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 else
14669 # With GCC up to 2.95.x, collect2 would create an import file
14670 # for dependence libraries. The import file would start with
14671 # the line `#! .'. This would cause the generated library to
14672 # depend on `.', always an invalid library. This was fixed in
14673 # development snapshots of GCC prior to 3.0.
14674 case $host_os in
14675 aix4 | aix4.[01] | aix4.[01].*)
14676 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14677 echo ' yes '
14678 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14679 :
14680 else
14681 can_build_shared=no
14682 fi
14683 ;;
14684 esac
14685 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14686 # soname into executable. Probably we can add versioning support to
14687 # collect2, so additional links can be useful in future.
14688 if test "$aix_use_runtimelinking" = yes; then
14689 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14690 # instead of lib<name>.a to let people know that these are not
14691 # typical AIX shared libraries.
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693 else
14694 # We preserve .a as extension for shared libraries through AIX4.2
14695 # and later when we are not doing run time linking.
14696 library_names_spec='${libname}${release}.a $libname.a'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 fi
14699 shlibpath_var=LIBPATH
14700 fi
14701 ;;
14702
14703amigaos*)
14704 library_names_spec='$libname.ixlibrary $libname.a'
14705 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14706 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'
14707 ;;
14708
14709beos*)
14710 library_names_spec='${libname}${shared_ext}'
14711 dynamic_linker="$host_os ld.so"
14712 shlibpath_var=LIBRARY_PATH
14713 ;;
14714
14715bsdi[45]*)
14716 version_type=linux
14717 need_version=no
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14723 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14724 # the default ld.so.conf also contains /usr/contrib/lib and
14725 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14726 # libtool to hard-code these into programs
14727 ;;
14728
14729cygwin* | mingw* | pw32*)
14730 version_type=windows
14731 shrext_cmds=".dll"
14732 need_version=no
14733 need_lib_prefix=no
14734
14735 case $GCC,$host_os in
14736 yes,cygwin* | yes,mingw* | yes,pw32*)
14737 library_names_spec='$libname.dll.a'
14738 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14739 postinstall_cmds='base_file=`basename \${file}`~
14740 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14741 dldir=$destdir/`dirname \$dlpath`~
14742 test -d \$dldir || mkdir -p \$dldir~
14743 $install_prog $dir/$dlname \$dldir/$dlname~
14744 chmod a+x \$dldir/$dlname'
14745 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14746 dlpath=$dir/\$dldll~
14747 $rm \$dlpath'
14748 shlibpath_overrides_runpath=yes
14749
14750 case $host_os in
14751 cygwin*)
14752 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14753 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14754 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14755 ;;
14756 mingw*)
14757 # MinGW DLLs use traditional 'lib' prefix
14758 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14760 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14761 # It is most probably a Windows format PATH printed by
14762 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14763 # path with ; separators, and with drive letters. We can handle the
14764 # drive letters (cygwin fileutils understands them), so leave them,
14765 # especially as we might pass files found there to a mingw objdump,
14766 # which wouldn't understand a cygwinified path. Ahh.
14767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14768 else
14769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14770 fi
14771 ;;
14772 pw32*)
14773 # pw32 DLLs use 'pw' prefix rather than 'lib'
14774 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14775 ;;
14776 esac
14777 ;;
14778
14779 linux*)
14780 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14782 supports_anon_versioning=no
14783 case `$LD -v 2>/dev/null` in
14784 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14787 *\ 2.11.*) ;; # other 2.11 versions
14788 *) supports_anon_versioning=yes ;;
14789 esac
14790 if test $supports_anon_versioning = yes; then
14791 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14792cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14793$echo "local: *; };" >> $output_objdir/$libname.ver~
14794 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14795 else
14796 $archive_expsym_cmds="$archive_cmds"
14797 fi
14798 else
14799 ld_shlibs=no
14800 fi
14801 ;;
14802
14803 *)
14804 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14805 ;;
14806 esac
14807 dynamic_linker='Win32 ld.exe'
14808 # FIXME: first we should search . and the directory the executable is in
14809 shlibpath_var=PATH
14810 ;;
14811
14812darwin* | rhapsody*)
14813 dynamic_linker="$host_os dyld"
14814 version_type=darwin
14815 need_lib_prefix=no
14816 need_version=no
14817 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14818 soname_spec='${libname}${release}${major}$shared_ext'
14819 shlibpath_overrides_runpath=yes
14820 shlibpath_var=DYLD_LIBRARY_PATH
14821 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14822 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14823 if test "$GCC" = yes; then
14824 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"`
14825 else
14826 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14827 fi
14828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14829 ;;
14830
14831dgux*)
14832 version_type=linux
14833 need_lib_prefix=no
14834 need_version=no
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14836 soname_spec='${libname}${release}${shared_ext}$major'
14837 shlibpath_var=LD_LIBRARY_PATH
14838 ;;
14839
14840freebsd1*)
14841 dynamic_linker=no
14842 ;;
14843
14844kfreebsd*-gnu)
14845 version_type=linux
14846 need_lib_prefix=no
14847 need_version=no
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 shlibpath_overrides_runpath=no
14852 hardcode_into_libs=yes
14853 dynamic_linker='GNU ld.so'
14854 ;;
14855
14856freebsd* | dragonfly*)
14857 # DragonFly does not have aout. When/if they implement a new
14858 # versioning mechanism, adjust this.
14859 if test -x /usr/bin/objformat; then
14860 objformat=`/usr/bin/objformat`
14861 else
14862 case $host_os in
14863 freebsd[123]*) objformat=aout ;;
14864 *) objformat=elf ;;
14865 esac
14866 fi
14867 # Handle Gentoo/FreeBSD as it was Linux
14868 case $host_vendor in
14869 gentoo)
14870 version_type=linux ;;
14871 *)
14872 version_type=freebsd-$objformat ;;
14873 esac
14874
14875 case $version_type in
14876 freebsd-elf*)
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14878 need_version=no
14879 need_lib_prefix=no
14880 ;;
14881 freebsd-*)
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14883 need_version=yes
14884 ;;
14885 linux)
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 need_lib_prefix=no
14889 need_version=no
14890 ;;
14891 esac
14892 shlibpath_var=LD_LIBRARY_PATH
14893 case $host_os in
14894 freebsd2*)
14895 shlibpath_overrides_runpath=yes
14896 ;;
14897 freebsd3.[01]* | freebsdelf3.[01]*)
14898 shlibpath_overrides_runpath=yes
14899 hardcode_into_libs=yes
14900 ;;
14901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14903 shlibpath_overrides_runpath=no
14904 hardcode_into_libs=yes
14905 ;;
14906 freebsd*) # from 4.6 on
14907 shlibpath_overrides_runpath=yes
14908 hardcode_into_libs=yes
14909 ;;
14910 esac
14911 ;;
14912
14913gnu*)
14914 version_type=linux
14915 need_lib_prefix=no
14916 need_version=no
14917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14918 soname_spec='${libname}${release}${shared_ext}$major'
14919 shlibpath_var=LD_LIBRARY_PATH
14920 hardcode_into_libs=yes
14921 ;;
14922
14923hpux9* | hpux10* | hpux11*)
14924 # Give a soname corresponding to the major version so that dld.sl refuses to
14925 # link against other versions.
14926 version_type=sunos
14927 need_lib_prefix=no
14928 need_version=no
14929 case $host_cpu in
14930 ia64*)
14931 shrext_cmds='.so'
14932 hardcode_into_libs=yes
14933 dynamic_linker="$host_os dld.so"
14934 shlibpath_var=LD_LIBRARY_PATH
14935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 if test "X$HPUX_IA64_MODE" = X32; then
14939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14940 else
14941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14942 fi
14943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14944 ;;
14945 hppa*64*)
14946 shrext_cmds='.sl'
14947 hardcode_into_libs=yes
14948 dynamic_linker="$host_os dld.sl"
14949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14955 ;;
14956 *)
14957 shrext_cmds='.sl'
14958 dynamic_linker="$host_os dld.sl"
14959 shlibpath_var=SHLIB_PATH
14960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 ;;
14964 esac
14965 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14966 postinstall_cmds='chmod 555 $lib'
14967 ;;
14968
14969interix3*)
14970 version_type=linux
14971 need_lib_prefix=no
14972 need_version=no
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 shlibpath_overrides_runpath=no
14978 hardcode_into_libs=yes
14979 ;;
14980
14981irix5* | irix6* | nonstopux*)
14982 case $host_os in
14983 nonstopux*) version_type=nonstopux ;;
14984 *)
14985 if test "$lt_cv_prog_gnu_ld" = yes; then
14986 version_type=linux
14987 else
14988 version_type=irix
14989 fi ;;
14990 esac
14991 need_lib_prefix=no
14992 need_version=no
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14995 case $host_os in
14996 irix5* | nonstopux*)
14997 libsuff= shlibsuff=
14998 ;;
14999 *)
15000 case $LD in # libtool.m4 will add one of these switches to LD
15001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15002 libsuff= shlibsuff= libmagic=32-bit;;
15003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15004 libsuff=32 shlibsuff=N32 libmagic=N32;;
15005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15007 *) libsuff= shlibsuff= libmagic=never-match;;
15008 esac
15009 ;;
15010 esac
15011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15012 shlibpath_overrides_runpath=no
15013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15015 hardcode_into_libs=yes
15016 ;;
15017
15018# No shared lib support for Linux oldld, aout, or coff.
15019linux*oldld* | linux*aout* | linux*coff*)
15020 dynamic_linker=no
15021 ;;
15022
15023# This must be Linux ELF.
15024linux*)
15025 version_type=linux
15026 need_lib_prefix=no
15027 need_version=no
15028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029 soname_spec='${libname}${release}${shared_ext}$major'
15030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15031 shlibpath_var=LD_LIBRARY_PATH
15032 shlibpath_overrides_runpath=no
15033 # This implies no fast_install, which is unacceptable.
15034 # Some rework will be needed to allow for fast_install
15035 # before this can be enabled.
15036 hardcode_into_libs=yes
15037
15038 # Append ld.so.conf contents to the search path
15039 if test -f /etc/ld.so.conf; then
15040 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' ' '`
15041 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15042 fi
15043
15044 # We used to test for /lib/ld.so.1 and disable shared libraries on
15045 # powerpc, because MkLinux only supported shared libraries with the
15046 # GNU dynamic linker. Since this was broken with cross compilers,
15047 # most powerpc-linux boxes support dynamic linking these days and
15048 # people can always --disable-shared, the test was removed, and we
15049 # assume the GNU/Linux dynamic linker is in use.
15050 dynamic_linker='GNU/Linux ld.so'
15051 ;;
15052
15053knetbsd*-gnu)
15054 version_type=linux
15055 need_lib_prefix=no
15056 need_version=no
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15058 soname_spec='${libname}${release}${shared_ext}$major'
15059 shlibpath_var=LD_LIBRARY_PATH
15060 shlibpath_overrides_runpath=no
15061 hardcode_into_libs=yes
15062 dynamic_linker='GNU ld.so'
15063 ;;
15064
15065netbsd*)
15066 version_type=sunos
15067 need_lib_prefix=no
15068 need_version=no
15069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15072 dynamic_linker='NetBSD (a.out) ld.so'
15073 else
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15075 soname_spec='${libname}${release}${shared_ext}$major'
15076 dynamic_linker='NetBSD ld.elf_so'
15077 fi
15078 shlibpath_var=LD_LIBRARY_PATH
15079 shlibpath_overrides_runpath=yes
15080 hardcode_into_libs=yes
15081 ;;
15082
15083newsos6)
15084 version_type=linux
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15086 shlibpath_var=LD_LIBRARY_PATH
15087 shlibpath_overrides_runpath=yes
15088 ;;
15089
15090nto-qnx*)
15091 version_type=linux
15092 need_lib_prefix=no
15093 need_version=no
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 shlibpath_var=LD_LIBRARY_PATH
15097 shlibpath_overrides_runpath=yes
15098 ;;
15099
15100openbsd*)
15101 version_type=sunos
15102 sys_lib_dlsearch_path_spec="/usr/lib"
15103 need_lib_prefix=no
15104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15105 case $host_os in
15106 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15107 *) need_version=no ;;
15108 esac
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15111 shlibpath_var=LD_LIBRARY_PATH
15112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15113 case $host_os in
15114 openbsd2.[89] | openbsd2.[89].*)
15115 shlibpath_overrides_runpath=no
15116 ;;
15117 *)
15118 shlibpath_overrides_runpath=yes
15119 ;;
15120 esac
15121 else
15122 shlibpath_overrides_runpath=yes
15123 fi
15124 ;;
15125
15126os2*)
15127 libname_spec='$name'
15128 shrext_cmds=".dll"
15129 need_lib_prefix=no
15130 library_names_spec='$libname${shared_ext} $libname.a'
15131 dynamic_linker='OS/2 ld.exe'
15132 shlibpath_var=LIBPATH
15133 ;;
15134
15135osf3* | osf4* | osf5*)
15136 version_type=osf
15137 need_lib_prefix=no
15138 need_version=no
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15144 ;;
15145
15146solaris*)
15147 version_type=linux
15148 need_lib_prefix=no
15149 need_version=no
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151 soname_spec='${libname}${release}${shared_ext}$major'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 shlibpath_overrides_runpath=yes
15154 hardcode_into_libs=yes
15155 # ldd complains unless libraries are executable
15156 postinstall_cmds='chmod +x $lib'
15157 ;;
15158
15159sunos4*)
15160 version_type=sunos
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15163 shlibpath_var=LD_LIBRARY_PATH
15164 shlibpath_overrides_runpath=yes
15165 if test "$with_gnu_ld" = yes; then
15166 need_lib_prefix=no
15167 fi
15168 need_version=yes
15169 ;;
15170
15171sysv4 | sysv4.3*)
15172 version_type=linux
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 case $host_vendor in
15177 sni)
15178 shlibpath_overrides_runpath=no
15179 need_lib_prefix=no
15180 export_dynamic_flag_spec='${wl}-Blargedynsym'
15181 runpath_var=LD_RUN_PATH
15182 ;;
15183 siemens)
15184 need_lib_prefix=no
15185 ;;
15186 motorola)
15187 need_lib_prefix=no
15188 need_version=no
15189 shlibpath_overrides_runpath=no
15190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15191 ;;
15192 esac
15193 ;;
15194
15195sysv4*MP*)
15196 if test -d /usr/nec ;then
15197 version_type=linux
15198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15199 soname_spec='$libname${shared_ext}.$major'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 fi
15202 ;;
15203
15204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15205 version_type=freebsd-elf
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 hardcode_into_libs=yes
15212 if test "$with_gnu_ld" = yes; then
15213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15214 shlibpath_overrides_runpath=no
15215 else
15216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15217 shlibpath_overrides_runpath=yes
15218 case $host_os in
15219 sco3.2v5*)
15220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15221 ;;
15222 esac
15223 fi
15224 sys_lib_dlsearch_path_spec='/usr/lib'
15225 ;;
15226
15227uts4*)
15228 version_type=linux
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230 soname_spec='${libname}${release}${shared_ext}$major'
15231 shlibpath_var=LD_LIBRARY_PATH
15232 ;;
15233
15234*)
15235 dynamic_linker=no
15236 ;;
15237esac
15238echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15239echo "${ECHO_T}$dynamic_linker" >&6
15240test "$dynamic_linker" = no && can_build_shared=no
15241
15242variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15243if test "$GCC" = yes; then
15244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15245fi
15246
15247echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15248echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15249hardcode_action_F77=
15250if test -n "$hardcode_libdir_flag_spec_F77" || \
15251 test -n "$runpath_var_F77" || \
15252 test "X$hardcode_automatic_F77" = "Xyes" ; then
15253
15254 # We can hardcode non-existant directories.
15255 if test "$hardcode_direct_F77" != no &&
15256 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15257 # have to relink, otherwise we might link with an installed library
15258 # when we should be linking with a yet-to-be-installed one
15259 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15260 test "$hardcode_minus_L_F77" != no; then
15261 # Linking always hardcodes the temporary library directory.
15262 hardcode_action_F77=relink
15263 else
15264 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15265 hardcode_action_F77=immediate
15266 fi
15267else
15268 # We cannot hardcode anything, or else we can only hardcode existing
15269 # directories.
15270 hardcode_action_F77=unsupported
15271fi
15272echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15273echo "${ECHO_T}$hardcode_action_F77" >&6
15274
15275if test "$hardcode_action_F77" = relink; then
15276 # Fast installation is not supported
15277 enable_fast_install=no
15278elif test "$shlibpath_overrides_runpath" = yes ||
15279 test "$enable_shared" = no; then
15280 # Fast installation is not necessary
15281 enable_fast_install=needless
15282fi
15283
15284
15285# The else clause should only fire when bootstrapping the
15286# libtool distribution, otherwise you forgot to ship ltmain.sh
15287# with your package, and you will get complaints that there are
15288# no rules to generate ltmain.sh.
15289if test -f "$ltmain"; then
15290 # See if we are running on zsh, and set the options which allow our commands through
15291 # without removal of \ escapes.
15292 if test -n "${ZSH_VERSION+set}" ; then
15293 setopt NO_GLOB_SUBST
15294 fi
15295 # Now quote all the things that may contain metacharacters while being
15296 # careful not to overquote the AC_SUBSTed values. We take copies of the
15297 # variables and quote the copies for generation of the libtool script.
15298 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15299 SED SHELL STRIP \
15300 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15301 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15302 deplibs_check_method reload_flag reload_cmds need_locks \
15303 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15304 lt_cv_sys_global_symbol_to_c_name_address \
15305 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15306 old_postinstall_cmds old_postuninstall_cmds \
15307 compiler_F77 \
15308 CC_F77 \
15309 LD_F77 \
15310 lt_prog_compiler_wl_F77 \
15311 lt_prog_compiler_pic_F77 \
15312 lt_prog_compiler_static_F77 \
15313 lt_prog_compiler_no_builtin_flag_F77 \
15314 export_dynamic_flag_spec_F77 \
15315 thread_safe_flag_spec_F77 \
15316 whole_archive_flag_spec_F77 \
15317 enable_shared_with_static_runtimes_F77 \
15318 old_archive_cmds_F77 \
15319 old_archive_from_new_cmds_F77 \
15320 predep_objects_F77 \
15321 postdep_objects_F77 \
15322 predeps_F77 \
15323 postdeps_F77 \
15324 compiler_lib_search_path_F77 \
15325 archive_cmds_F77 \
15326 archive_expsym_cmds_F77 \
15327 postinstall_cmds_F77 \
15328 postuninstall_cmds_F77 \
15329 old_archive_from_expsyms_cmds_F77 \
15330 allow_undefined_flag_F77 \
15331 no_undefined_flag_F77 \
15332 export_symbols_cmds_F77 \
15333 hardcode_libdir_flag_spec_F77 \
15334 hardcode_libdir_flag_spec_ld_F77 \
15335 hardcode_libdir_separator_F77 \
15336 hardcode_automatic_F77 \
15337 module_cmds_F77 \
15338 module_expsym_cmds_F77 \
15339 lt_cv_prog_compiler_c_o_F77 \
15340 exclude_expsyms_F77 \
15341 include_expsyms_F77; do
15342
15343 case $var in
15344 old_archive_cmds_F77 | \
15345 old_archive_from_new_cmds_F77 | \
15346 archive_cmds_F77 | \
15347 archive_expsym_cmds_F77 | \
15348 module_cmds_F77 | \
15349 module_expsym_cmds_F77 | \
15350 old_archive_from_expsyms_cmds_F77 | \
15351 export_symbols_cmds_F77 | \
15352 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15353 postinstall_cmds | postuninstall_cmds | \
15354 old_postinstall_cmds | old_postuninstall_cmds | \
15355 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15356 # Double-quote double-evaled strings.
15357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15358 ;;
15359 *)
15360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15361 ;;
15362 esac
15363 done
15364
15365 case $lt_echo in
15366 *'\$0 --fallback-echo"')
15367 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15368 ;;
15369 esac
15370
15371cfgfile="$ofile"
15372
15373 cat <<__EOF__ >> "$cfgfile"
15374# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15375
15376# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15377
15378# Shell to use when invoking shell scripts.
15379SHELL=$lt_SHELL
15380
15381# Whether or not to build shared libraries.
15382build_libtool_libs=$enable_shared
15383
15384# Whether or not to build static libraries.
15385build_old_libs=$enable_static
15386
15387# Whether or not to add -lc for building shared libraries.
15388build_libtool_need_lc=$archive_cmds_need_lc_F77
15389
15390# Whether or not to disallow shared libs when runtime libs are static
15391allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15392
15393# Whether or not to optimize for fast installation.
15394fast_install=$enable_fast_install
15395
15396# The host system.
15397host_alias=$host_alias
15398host=$host
15399host_os=$host_os
15400
15401# The build system.
15402build_alias=$build_alias
15403build=$build
15404build_os=$build_os
15405
15406# An echo program that does not interpret backslashes.
15407echo=$lt_echo
15408
15409# The archiver.
15410AR=$lt_AR
15411AR_FLAGS=$lt_AR_FLAGS
15412
15413# A C compiler.
15414LTCC=$lt_LTCC
15415
15416# LTCC compiler flags.
15417LTCFLAGS=$lt_LTCFLAGS
15418
15419# A language-specific compiler.
15420CC=$lt_compiler_F77
15421
15422# Is the compiler the GNU C compiler?
15423with_gcc=$GCC_F77
15424
15425# An ERE matcher.
15426EGREP=$lt_EGREP
15427
15428# The linker used to build libraries.
15429LD=$lt_LD_F77
15430
15431# Whether we need hard or soft links.
15432LN_S=$lt_LN_S
15433
15434# A BSD-compatible nm program.
15435NM=$lt_NM
15436
15437# A symbol stripping program
15438STRIP=$lt_STRIP
15439
15440# Used to examine libraries when file_magic_cmd begins "file"
15441MAGIC_CMD=$MAGIC_CMD
15442
15443# Used on cygwin: DLL creation program.
15444DLLTOOL="$DLLTOOL"
15445
15446# Used on cygwin: object dumper.
15447OBJDUMP="$OBJDUMP"
15448
15449# Used on cygwin: assembler.
15450AS="$AS"
15451
15452# The name of the directory that contains temporary libtool files.
15453objdir=$objdir
15454
15455# How to create reloadable object files.
15456reload_flag=$lt_reload_flag
15457reload_cmds=$lt_reload_cmds
15458
15459# How to pass a linker flag through the compiler.
15460wl=$lt_lt_prog_compiler_wl_F77
15461
15462# Object file suffix (normally "o").
15463objext="$ac_objext"
15464
15465# Old archive suffix (normally "a").
15466libext="$libext"
15467
15468# Shared library suffix (normally ".so").
15469shrext_cmds='$shrext_cmds'
15470
15471# Executable file suffix (normally "").
15472exeext="$exeext"
15473
15474# Additional compiler flags for building library objects.
15475pic_flag=$lt_lt_prog_compiler_pic_F77
15476pic_mode=$pic_mode
15477
15478# What is the maximum length of a command?
15479max_cmd_len=$lt_cv_sys_max_cmd_len
15480
15481# Does compiler simultaneously support -c and -o options?
15482compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15483
15484# Must we lock files when doing compilation?
15485need_locks=$lt_need_locks
15486
15487# Do we need the lib prefix for modules?
15488need_lib_prefix=$need_lib_prefix
15489
15490# Do we need a version for libraries?
15491need_version=$need_version
15492
15493# Whether dlopen is supported.
15494dlopen_support=$enable_dlopen
15495
15496# Whether dlopen of programs is supported.
15497dlopen_self=$enable_dlopen_self
15498
15499# Whether dlopen of statically linked programs is supported.
15500dlopen_self_static=$enable_dlopen_self_static
15501
15502# Compiler flag to prevent dynamic linking.
15503link_static_flag=$lt_lt_prog_compiler_static_F77
15504
15505# Compiler flag to turn off builtin functions.
15506no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15507
15508# Compiler flag to allow reflexive dlopens.
15509export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15510
15511# Compiler flag to generate shared objects directly from archives.
15512whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15513
15514# Compiler flag to generate thread-safe objects.
15515thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15516
15517# Library versioning type.
15518version_type=$version_type
15519
15520# Format of library name prefix.
15521libname_spec=$lt_libname_spec
15522
15523# List of archive names. First name is the real one, the rest are links.
15524# The last name is the one that the linker finds with -lNAME.
15525library_names_spec=$lt_library_names_spec
15526
15527# The coded name of the library, if different from the real name.
15528soname_spec=$lt_soname_spec
15529
15530# Commands used to build and install an old-style archive.
15531RANLIB=$lt_RANLIB
15532old_archive_cmds=$lt_old_archive_cmds_F77
15533old_postinstall_cmds=$lt_old_postinstall_cmds
15534old_postuninstall_cmds=$lt_old_postuninstall_cmds
15535
15536# Create an old-style archive from a shared archive.
15537old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15538
15539# Create a temporary old-style archive to link instead of a shared archive.
15540old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15541
15542# Commands used to build and install a shared archive.
15543archive_cmds=$lt_archive_cmds_F77
15544archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15545postinstall_cmds=$lt_postinstall_cmds
15546postuninstall_cmds=$lt_postuninstall_cmds
15547
15548# Commands used to build a loadable module (assumed same as above if empty)
15549module_cmds=$lt_module_cmds_F77
15550module_expsym_cmds=$lt_module_expsym_cmds_F77
15551
15552# Commands to strip libraries.
15553old_striplib=$lt_old_striplib
15554striplib=$lt_striplib
15555
15556# Dependencies to place before the objects being linked to create a
15557# shared library.
15558predep_objects=$lt_predep_objects_F77
15559
15560# Dependencies to place after the objects being linked to create a
15561# shared library.
15562postdep_objects=$lt_postdep_objects_F77
15563
15564# Dependencies to place before the objects being linked to create a
15565# shared library.
15566predeps=$lt_predeps_F77
15567
15568# Dependencies to place after the objects being linked to create a
15569# shared library.
15570postdeps=$lt_postdeps_F77
15571
15572# The library search path used internally by the compiler when linking
15573# a shared library.
15574compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15575
15576# Method to check whether dependent libraries are shared objects.
15577deplibs_check_method=$lt_deplibs_check_method
15578
15579# Command to use when deplibs_check_method == file_magic.
15580file_magic_cmd=$lt_file_magic_cmd
15581
15582# Flag that allows shared libraries with undefined symbols to be built.
15583allow_undefined_flag=$lt_allow_undefined_flag_F77
15584
15585# Flag that forces no undefined symbols.
15586no_undefined_flag=$lt_no_undefined_flag_F77
15587
15588# Commands used to finish a libtool library installation in a directory.
15589finish_cmds=$lt_finish_cmds
15590
15591# Same as above, but a single script fragment to be evaled but not shown.
15592finish_eval=$lt_finish_eval
15593
15594# Take the output of nm and produce a listing of raw symbols and C names.
15595global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15596
15597# Transform the output of nm in a proper C declaration
15598global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15599
15600# Transform the output of nm in a C name address pair
15601global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15602
15603# This is the shared library runtime path variable.
15604runpath_var=$runpath_var
15605
15606# This is the shared library path variable.
15607shlibpath_var=$shlibpath_var
15608
15609# Is shlibpath searched before the hard-coded library search path?
15610shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15611
15612# How to hardcode a shared library path into an executable.
15613hardcode_action=$hardcode_action_F77
15614
15615# Whether we should hardcode library paths into libraries.
15616hardcode_into_libs=$hardcode_into_libs
15617
15618# Flag to hardcode \$libdir into a binary during linking.
15619# This must work even if \$libdir does not exist.
15620hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15621
15622# If ld is used when linking, flag to hardcode \$libdir into
15623# a binary during linking. This must work even if \$libdir does
15624# not exist.
15625hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15626
15627# Whether we need a single -rpath flag with a separated argument.
15628hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15629
15630# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15631# resulting binary.
15632hardcode_direct=$hardcode_direct_F77
15633
15634# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15635# resulting binary.
15636hardcode_minus_L=$hardcode_minus_L_F77
15637
15638# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15639# the resulting binary.
15640hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15641
15642# Set to yes if building a shared library automatically hardcodes DIR into the library
15643# and all subsequent libraries and executables linked against it.
15644hardcode_automatic=$hardcode_automatic_F77
15645
15646# Variables whose values should be saved in libtool wrapper scripts and
15647# restored at relink time.
15648variables_saved_for_relink="$variables_saved_for_relink"
15649
15650# Whether libtool must link a program against all its dependency libraries.
15651link_all_deplibs=$link_all_deplibs_F77
15652
15653# Compile-time system search path for libraries
15654sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15655
15656# Run-time system search path for libraries
15657sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15658
15659# Fix the shell variable \$srcfile for the compiler.
15660fix_srcfile_path="$fix_srcfile_path_F77"
15661
15662# Set to yes if exported symbols are required.
15663always_export_symbols=$always_export_symbols_F77
15664
15665# The commands to list exported symbols.
15666export_symbols_cmds=$lt_export_symbols_cmds_F77
15667
15668# The commands to extract the exported symbol list from a shared archive.
15669extract_expsyms_cmds=$lt_extract_expsyms_cmds
15670
15671# Symbols that should not be listed in the preloaded symbols.
15672exclude_expsyms=$lt_exclude_expsyms_F77
15673
15674# Symbols that must always be exported.
15675include_expsyms=$lt_include_expsyms_F77
15676
15677# ### END LIBTOOL TAG CONFIG: $tagname
15678
15679__EOF__
15680
15681
15682else
15683 # If there is no Makefile yet, we rely on a make rule to execute
15684 # `config.status --recheck' to rerun these tests and create the
15685 # libtool script then.
15686 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15687 if test -f "$ltmain_in"; then
15688 test -f Makefile && make "$ltmain"
15689 fi
15690fi
15691
15692
15693ac_ext=c
15694ac_cpp='$CPP $CPPFLAGS'
15695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15697ac_compiler_gnu=$ac_cv_c_compiler_gnu
15698
15699CC="$lt_save_CC"
15700
15701 else
15702 tagname=""
15703 fi
15704 ;;
15705
15706 GCJ)
15707 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15708
15709
15710
15711# Source file extension for Java test sources.
15712ac_ext=java
15713
15714# Object file extension for compiled Java test sources.
15715objext=o
15716objext_GCJ=$objext
15717
15718# Code to be used in simple compile tests
15719lt_simple_compile_test_code="class foo {}\n"
15720
15721# Code to be used in simple link tests
15722lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15723
15724# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15725
15726# If no C compiler was specified, use CC.
15727LTCC=${LTCC-"$CC"}
15728
15729# If no C compiler flags were specified, use CFLAGS.
15730LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15731
15732# Allow CC to be a program name with arguments.
15733compiler=$CC
15734
15735
15736# save warnings/boilerplate of simple test code
15737ac_outfile=conftest.$ac_objext
15738printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15739eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15740_lt_compiler_boilerplate=`cat conftest.err`
15741$rm conftest*
15742
15743ac_outfile=conftest.$ac_objext
15744printf "$lt_simple_link_test_code" >conftest.$ac_ext
15745eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15746_lt_linker_boilerplate=`cat conftest.err`
15747$rm conftest*
15748
15749
15750# Allow CC to be a program name with arguments.
15751lt_save_CC="$CC"
15752CC=${GCJ-"gcj"}
15753compiler=$CC
15754compiler_GCJ=$CC
15755for cc_temp in $compiler""; do
15756 case $cc_temp in
15757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15759 \-*) ;;
15760 *) break;;
15761 esac
15762done
15763cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15764
15765
15766# GCJ did not exist at the time GCC didn't implicitly link libc in.
15767archive_cmds_need_lc_GCJ=no
15768
15769old_archive_cmds_GCJ=$old_archive_cmds
15770
15771
15772lt_prog_compiler_no_builtin_flag_GCJ=
15773
15774if test "$GCC" = yes; then
15775 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15776
15777
15778echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15779echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15780if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782else
15783 lt_cv_prog_compiler_rtti_exceptions=no
15784 ac_outfile=conftest.$ac_objext
15785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15786 lt_compiler_flag="-fno-rtti -fno-exceptions"
15787 # Insert the option either (1) after the last *FLAGS variable, or
15788 # (2) before a word containing "conftest.", or (3) at the end.
15789 # Note that $ac_compile itself does not contain backslashes and begins
15790 # with a dollar sign (not a hyphen), so the echo should work correctly.
15791 # The option is referenced via a variable to avoid confusing sed.
15792 lt_compile=`echo "$ac_compile" | $SED \
15793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15795 -e 's:$: $lt_compiler_flag:'`
15796 (eval echo "\"\$as_me:15796: $lt_compile\"" >&5)
15797 (eval "$lt_compile" 2>conftest.err)
15798 ac_status=$?
15799 cat conftest.err >&5
15800 echo "$as_me:15800: \$? = $ac_status" >&5
15801 if (exit $ac_status) && test -s "$ac_outfile"; then
15802 # The compiler can only warn and ignore the option if not recognized
15803 # So say no if there are warnings other than the usual output.
15804 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15807 lt_cv_prog_compiler_rtti_exceptions=yes
15808 fi
15809 fi
15810 $rm conftest*
15811
15812fi
15813echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15814echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15815
15816if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15817 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15818else
15819 :
15820fi
15821
15822fi
15823
15824lt_prog_compiler_wl_GCJ=
15825lt_prog_compiler_pic_GCJ=
15826lt_prog_compiler_static_GCJ=
15827
15828echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15829echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15830
15831 if test "$GCC" = yes; then
15832 lt_prog_compiler_wl_GCJ='-Wl,'
15833 lt_prog_compiler_static_GCJ='-static'
15834
15835 case $host_os in
15836 aix*)
15837 # All AIX code is PIC.
15838 if test "$host_cpu" = ia64; then
15839 # AIX 5 now supports IA64 processor
15840 lt_prog_compiler_static_GCJ='-Bstatic'
15841 fi
15842 ;;
15843
15844 amigaos*)
15845 # FIXME: we need at least 68020 code to build shared libraries, but
15846 # adding the `-m68020' flag to GCC prevents building anything better,
15847 # like `-m68040'.
15848 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15849 ;;
15850
15851 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15852 # PIC is the default for these OSes.
15853 ;;
15854
15855 mingw* | pw32* | os2*)
15856 # This hack is so that the source file can tell whether it is being
15857 # built for inclusion in a dll (and should export symbols for example).
15858 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15859 ;;
15860
15861 darwin* | rhapsody*)
15862 # PIC is the default on this platform
15863 # Common symbols not allowed in MH_DYLIB files
15864 lt_prog_compiler_pic_GCJ='-fno-common'
15865 ;;
15866
15867 interix3*)
15868 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15869 # Instead, we relocate shared libraries at runtime.
15870 ;;
15871
15872 msdosdjgpp*)
15873 # Just because we use GCC doesn't mean we suddenly get shared libraries
15874 # on systems that don't support them.
15875 lt_prog_compiler_can_build_shared_GCJ=no
15876 enable_shared=no
15877 ;;
15878
15879 sysv4*MP*)
15880 if test -d /usr/nec; then
15881 lt_prog_compiler_pic_GCJ=-Kconform_pic
15882 fi
15883 ;;
15884
15885 hpux*)
15886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15887 # not for PA HP-UX.
15888 case $host_cpu in
15889 hppa*64*|ia64*)
15890 # +Z the default
15891 ;;
15892 *)
15893 lt_prog_compiler_pic_GCJ='-fPIC'
15894 ;;
15895 esac
15896 ;;
15897
15898 *)
15899 lt_prog_compiler_pic_GCJ='-fPIC'
15900 ;;
15901 esac
15902 else
15903 # PORTME Check for flag to pass linker flags through the system compiler.
15904 case $host_os in
15905 aix*)
15906 lt_prog_compiler_wl_GCJ='-Wl,'
15907 if test "$host_cpu" = ia64; then
15908 # AIX 5 now supports IA64 processor
15909 lt_prog_compiler_static_GCJ='-Bstatic'
15910 else
15911 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15912 fi
15913 ;;
15914 darwin*)
15915 # PIC is the default on this platform
15916 # Common symbols not allowed in MH_DYLIB files
15917 case $cc_basename in
15918 xlc*)
15919 lt_prog_compiler_pic_GCJ='-qnocommon'
15920 lt_prog_compiler_wl_GCJ='-Wl,'
15921 ;;
15922 esac
15923 ;;
15924
15925 mingw* | pw32* | os2*)
15926 # This hack is so that the source file can tell whether it is being
15927 # built for inclusion in a dll (and should export symbols for example).
15928 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15929 ;;
15930
15931 hpux9* | hpux10* | hpux11*)
15932 lt_prog_compiler_wl_GCJ='-Wl,'
15933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15934 # not for PA HP-UX.
15935 case $host_cpu in
15936 hppa*64*|ia64*)
15937 # +Z the default
15938 ;;
15939 *)
15940 lt_prog_compiler_pic_GCJ='+Z'
15941 ;;
15942 esac
15943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15944 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15945 ;;
15946
15947 irix5* | irix6* | nonstopux*)
15948 lt_prog_compiler_wl_GCJ='-Wl,'
15949 # PIC (with -KPIC) is the default.
15950 lt_prog_compiler_static_GCJ='-non_shared'
15951 ;;
15952
15953 newsos6)
15954 lt_prog_compiler_pic_GCJ='-KPIC'
15955 lt_prog_compiler_static_GCJ='-Bstatic'
15956 ;;
15957
15958 linux*)
15959 case $cc_basename in
15960 icc* | ecc*)
15961 lt_prog_compiler_wl_GCJ='-Wl,'
15962 lt_prog_compiler_pic_GCJ='-KPIC'
15963 lt_prog_compiler_static_GCJ='-static'
15964 ;;
15965 pgcc* | pgf77* | pgf90* | pgf95*)
15966 # Portland Group compilers (*not* the Pentium gcc compiler,
15967 # which looks to be a dead project)
15968 lt_prog_compiler_wl_GCJ='-Wl,'
15969 lt_prog_compiler_pic_GCJ='-fpic'
15970 lt_prog_compiler_static_GCJ='-Bstatic'
15971 ;;
15972 ccc*)
15973 lt_prog_compiler_wl_GCJ='-Wl,'
15974 # All Alpha code is PIC.
15975 lt_prog_compiler_static_GCJ='-non_shared'
15976 ;;
15977 esac
15978 ;;
15979
15980 osf3* | osf4* | osf5*)
15981 lt_prog_compiler_wl_GCJ='-Wl,'
15982 # All OSF/1 code is PIC.
15983 lt_prog_compiler_static_GCJ='-non_shared'
15984 ;;
15985
15986 solaris*)
15987 lt_prog_compiler_pic_GCJ='-KPIC'
15988 lt_prog_compiler_static_GCJ='-Bstatic'
15989 case $cc_basename in
15990 f77* | f90* | f95*)
15991 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15992 *)
15993 lt_prog_compiler_wl_GCJ='-Wl,';;
15994 esac
15995 ;;
15996
15997 sunos4*)
15998 lt_prog_compiler_wl_GCJ='-Qoption ld '
15999 lt_prog_compiler_pic_GCJ='-PIC'
16000 lt_prog_compiler_static_GCJ='-Bstatic'
16001 ;;
16002
16003 sysv4 | sysv4.2uw2* | sysv4.3*)
16004 lt_prog_compiler_wl_GCJ='-Wl,'
16005 lt_prog_compiler_pic_GCJ='-KPIC'
16006 lt_prog_compiler_static_GCJ='-Bstatic'
16007 ;;
16008
16009 sysv4*MP*)
16010 if test -d /usr/nec ;then
16011 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16012 lt_prog_compiler_static_GCJ='-Bstatic'
16013 fi
16014 ;;
16015
16016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16017 lt_prog_compiler_wl_GCJ='-Wl,'
16018 lt_prog_compiler_pic_GCJ='-KPIC'
16019 lt_prog_compiler_static_GCJ='-Bstatic'
16020 ;;
16021
16022 unicos*)
16023 lt_prog_compiler_wl_GCJ='-Wl,'
16024 lt_prog_compiler_can_build_shared_GCJ=no
16025 ;;
16026
16027 uts4*)
16028 lt_prog_compiler_pic_GCJ='-pic'
16029 lt_prog_compiler_static_GCJ='-Bstatic'
16030 ;;
16031
16032 *)
16033 lt_prog_compiler_can_build_shared_GCJ=no
16034 ;;
16035 esac
16036 fi
16037
16038echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16039echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16040
16041#
16042# Check to make sure the PIC flag actually works.
16043#
16044if test -n "$lt_prog_compiler_pic_GCJ"; then
16045
16046echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16047echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16048if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16050else
16051 lt_prog_compiler_pic_works_GCJ=no
16052 ac_outfile=conftest.$ac_objext
16053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16054 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16055 # Insert the option either (1) after the last *FLAGS variable, or
16056 # (2) before a word containing "conftest.", or (3) at the end.
16057 # Note that $ac_compile itself does not contain backslashes and begins
16058 # with a dollar sign (not a hyphen), so the echo should work correctly.
16059 # The option is referenced via a variable to avoid confusing sed.
16060 lt_compile=`echo "$ac_compile" | $SED \
16061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16063 -e 's:$: $lt_compiler_flag:'`
16064 (eval echo "\"\$as_me:16064: $lt_compile\"" >&5)
16065 (eval "$lt_compile" 2>conftest.err)
16066 ac_status=$?
16067 cat conftest.err >&5
16068 echo "$as_me:16068: \$? = $ac_status" >&5
16069 if (exit $ac_status) && test -s "$ac_outfile"; then
16070 # The compiler can only warn and ignore the option if not recognized
16071 # So say no if there are warnings other than the usual output.
16072 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16075 lt_prog_compiler_pic_works_GCJ=yes
16076 fi
16077 fi
16078 $rm conftest*
16079
16080fi
16081echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16082echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16083
16084if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16085 case $lt_prog_compiler_pic_GCJ in
16086 "" | " "*) ;;
16087 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16088 esac
16089else
16090 lt_prog_compiler_pic_GCJ=
16091 lt_prog_compiler_can_build_shared_GCJ=no
16092fi
16093
16094fi
16095case $host_os in
16096 # For platforms which do not support PIC, -DPIC is meaningless:
16097 *djgpp*)
16098 lt_prog_compiler_pic_GCJ=
16099 ;;
16100 *)
16101 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16102 ;;
16103esac
16104
16105#
16106# Check to make sure the static flag actually works.
16107#
16108wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16109echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16110echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16111if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113else
16114 lt_prog_compiler_static_works_GCJ=no
16115 save_LDFLAGS="$LDFLAGS"
16116 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16117 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16119 # The linker can only warn and ignore the option if not recognized
16120 # So say no if there are warnings
16121 if test -s conftest.err; then
16122 # Append any errors to the config.log.
16123 cat conftest.err 1>&5
16124 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16126 if diff conftest.exp conftest.er2 >/dev/null; then
16127 lt_prog_compiler_static_works_GCJ=yes
16128 fi
16129 else
16130 lt_prog_compiler_static_works_GCJ=yes
16131 fi
16132 fi
16133 $rm conftest*
16134 LDFLAGS="$save_LDFLAGS"
16135
16136fi
16137echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16138echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16139
16140if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16141 :
16142else
16143 lt_prog_compiler_static_GCJ=
16144fi
16145
16146
16147echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16148echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16149if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151else
16152 lt_cv_prog_compiler_c_o_GCJ=no
16153 $rm -r conftest 2>/dev/null
16154 mkdir conftest
16155 cd conftest
16156 mkdir out
16157 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16158
16159 lt_compiler_flag="-o out/conftest2.$ac_objext"
16160 # Insert the option either (1) after the last *FLAGS variable, or
16161 # (2) before a word containing "conftest.", or (3) at the end.
16162 # Note that $ac_compile itself does not contain backslashes and begins
16163 # with a dollar sign (not a hyphen), so the echo should work correctly.
16164 lt_compile=`echo "$ac_compile" | $SED \
16165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16167 -e 's:$: $lt_compiler_flag:'`
16168 (eval echo "\"\$as_me:16168: $lt_compile\"" >&5)
16169 (eval "$lt_compile" 2>out/conftest.err)
16170 ac_status=$?
16171 cat out/conftest.err >&5
16172 echo "$as_me:16172: \$? = $ac_status" >&5
16173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16174 then
16175 # The compiler can only warn and ignore the option if not recognized
16176 # So say no if there are warnings
16177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16180 lt_cv_prog_compiler_c_o_GCJ=yes
16181 fi
16182 fi
16183 chmod u+w . 2>&5
16184 $rm conftest*
16185 # SGI C++ compiler will create directory out/ii_files/ for
16186 # template instantiation
16187 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16188 $rm out/* && rmdir out
16189 cd ..
16190 rmdir conftest
16191 $rm conftest*
16192
16193fi
16194echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16195echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16196
16197
16198hard_links="nottested"
16199if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16200 # do not overwrite the value of need_locks provided by the user
16201 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16202echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16203 hard_links=yes
16204 $rm conftest*
16205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16206 touch conftest.a
16207 ln conftest.a conftest.b 2>&5 || hard_links=no
16208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16209 echo "$as_me:$LINENO: result: $hard_links" >&5
16210echo "${ECHO_T}$hard_links" >&6
16211 if test "$hard_links" = no; then
16212 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16213echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16214 need_locks=warn
16215 fi
16216else
16217 need_locks=no
16218fi
16219
16220echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16221echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16222
16223 runpath_var=
16224 allow_undefined_flag_GCJ=
16225 enable_shared_with_static_runtimes_GCJ=no
16226 archive_cmds_GCJ=
16227 archive_expsym_cmds_GCJ=
16228 old_archive_From_new_cmds_GCJ=
16229 old_archive_from_expsyms_cmds_GCJ=
16230 export_dynamic_flag_spec_GCJ=
16231 whole_archive_flag_spec_GCJ=
16232 thread_safe_flag_spec_GCJ=
16233 hardcode_libdir_flag_spec_GCJ=
16234 hardcode_libdir_flag_spec_ld_GCJ=
16235 hardcode_libdir_separator_GCJ=
16236 hardcode_direct_GCJ=no
16237 hardcode_minus_L_GCJ=no
16238 hardcode_shlibpath_var_GCJ=unsupported
16239 link_all_deplibs_GCJ=unknown
16240 hardcode_automatic_GCJ=no
16241 module_cmds_GCJ=
16242 module_expsym_cmds_GCJ=
16243 always_export_symbols_GCJ=no
16244 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16245 # include_expsyms should be a list of space-separated symbols to be *always*
16246 # included in the symbol list
16247 include_expsyms_GCJ=
16248 # exclude_expsyms can be an extended regexp of symbols to exclude
16249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16251 # as well as any symbol that contains `d'.
16252 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16254 # platforms (ab)use it in PIC code, but their linkers get confused if
16255 # the symbol is explicitly referenced. Since portable code cannot
16256 # rely on this symbol name, it's probably fine to never include it in
16257 # preloaded symbol tables.
16258 extract_expsyms_cmds=
16259 # Just being paranoid about ensuring that cc_basename is set.
16260 for cc_temp in $compiler""; do
16261 case $cc_temp in
16262 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16263 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16264 \-*) ;;
16265 *) break;;
16266 esac
16267done
16268cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16269
16270 case $host_os in
16271 cygwin* | mingw* | pw32*)
16272 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16273 # When not using gcc, we currently assume that we are using
16274 # Microsoft Visual C++.
16275 if test "$GCC" != yes; then
16276 with_gnu_ld=no
16277 fi
16278 ;;
16279 interix*)
16280 # we just hope/assume this is gcc and not c89 (= MSVC++)
16281 with_gnu_ld=yes
16282 ;;
16283 openbsd*)
16284 with_gnu_ld=no
16285 ;;
16286 esac
16287
16288 ld_shlibs_GCJ=yes
16289 if test "$with_gnu_ld" = yes; then
16290 # If archive_cmds runs LD, not CC, wlarc should be empty
16291 wlarc='${wl}'
16292
16293 # Set some defaults for GNU ld with shared library support. These
16294 # are reset later if shared libraries are not supported. Putting them
16295 # here allows them to be overridden if necessary.
16296 runpath_var=LD_RUN_PATH
16297 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16298 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16299 # ancient GNU ld didn't support --whole-archive et. al.
16300 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16301 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16302 else
16303 whole_archive_flag_spec_GCJ=
16304 fi
16305 supports_anon_versioning=no
16306 case `$LD -v 2>/dev/null` in
16307 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16308 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16309 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16310 *\ 2.11.*) ;; # other 2.11 versions
16311 *) supports_anon_versioning=yes ;;
16312 esac
16313
16314 # See if GNU ld supports shared libraries.
16315 case $host_os in
16316 aix3* | aix4* | aix5*)
16317 # On AIX/PPC, the GNU linker is very broken
16318 if test "$host_cpu" != ia64; then
16319 ld_shlibs_GCJ=no
16320 cat <<EOF 1>&2
16321
16322*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16323*** to be unable to reliably create shared libraries on AIX.
16324*** Therefore, libtool is disabling shared libraries support. If you
16325*** really care for shared libraries, you may want to modify your PATH
16326*** so that a non-GNU linker is found, and then restart.
16327
16328EOF
16329 fi
16330 ;;
16331
16332 amigaos*)
16333 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)'
16334 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16335 hardcode_minus_L_GCJ=yes
16336
16337 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16338 # that the semantics of dynamic libraries on AmigaOS, at least up
16339 # to version 4, is to share data among multiple programs linked
16340 # with the same dynamic library. Since this doesn't match the
16341 # behavior of shared libraries on other platforms, we can't use
16342 # them.
16343 ld_shlibs_GCJ=no
16344 ;;
16345
16346 beos*)
16347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16348 allow_undefined_flag_GCJ=unsupported
16349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16350 # support --undefined. This deserves some investigation. FIXME
16351 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16352 else
16353 ld_shlibs_GCJ=no
16354 fi
16355 ;;
16356
16357 cygwin* | mingw* | pw32*)
16358 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16359 # as there is no search path for DLLs.
16360 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16361 allow_undefined_flag_GCJ=unsupported
16362 always_export_symbols_GCJ=no
16363 enable_shared_with_static_runtimes_GCJ=yes
16364 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16365
16366 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16367 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16368 # If the export-symbols file already is a .def file (1st line
16369 # is EXPORTS), use it as is; otherwise, prepend...
16370 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16371 cp $export_symbols $output_objdir/$soname.def;
16372 else
16373 echo EXPORTS > $output_objdir/$soname.def;
16374 cat $export_symbols >> $output_objdir/$soname.def;
16375 fi~
16376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16377 else
16378 ld_shlibs_GCJ=no
16379 fi
16380 ;;
16381
16382 interix3*)
16383 hardcode_direct_GCJ=no
16384 hardcode_shlibpath_var_GCJ=no
16385 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16386 export_dynamic_flag_spec_GCJ='${wl}-E'
16387 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16388 # Instead, shared libraries are loaded at an image base (0x10000000 by
16389 # default) and relocated if they conflict, which is a slow very memory
16390 # consuming and fragmenting process. To avoid this, we pick a random,
16391 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16392 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16393 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'
16394 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'
16395 ;;
16396
16397 linux*)
16398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16399 tmp_addflag=
16400 case $cc_basename,$host_cpu in
16401 pgcc*) # Portland Group C compiler
16402 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'
16403 tmp_addflag=' $pic_flag'
16404 ;;
16405 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16406 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'
16407 tmp_addflag=' $pic_flag -Mnomain' ;;
16408 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16409 tmp_addflag=' -i_dynamic' ;;
16410 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16411 tmp_addflag=' -i_dynamic -nofor_main' ;;
16412 ifc* | ifort*) # Intel Fortran compiler
16413 tmp_addflag=' -nofor_main' ;;
16414 esac
16415 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16416
16417 if test $supports_anon_versioning = yes; then
16418 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16420 $echo "local: *; };" >> $output_objdir/$libname.ver~
16421 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16422 fi
16423 else
16424 ld_shlibs_GCJ=no
16425 fi
16426 ;;
16427
16428 netbsd*)
16429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16430 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16431 wlarc=
16432 else
16433 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16434 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16435 fi
16436 ;;
16437
16438 solaris*)
16439 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16440 ld_shlibs_GCJ=no
16441 cat <<EOF 1>&2
16442
16443*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16444*** create shared libraries on Solaris systems. Therefore, libtool
16445*** is disabling shared libraries support. We urge you to upgrade GNU
16446*** binutils to release 2.9.1 or newer. Another option is to modify
16447*** your PATH or compiler configuration so that the native linker is
16448*** used, and then restart.
16449
16450EOF
16451 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16452 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16453 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16454 else
16455 ld_shlibs_GCJ=no
16456 fi
16457 ;;
16458
16459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16460 case `$LD -v 2>&1` in
16461 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16462 ld_shlibs_GCJ=no
16463 cat <<_LT_EOF 1>&2
16464
16465*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16466*** reliably create shared libraries on SCO systems. Therefore, libtool
16467*** is disabling shared libraries support. We urge you to upgrade GNU
16468*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16469*** your PATH or compiler configuration so that the native linker is
16470*** used, and then restart.
16471
16472_LT_EOF
16473 ;;
16474 *)
16475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16476 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16477 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16478 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16479 else
16480 ld_shlibs_GCJ=no
16481 fi
16482 ;;
16483 esac
16484 ;;
16485
16486 sunos4*)
16487 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16488 wlarc=
16489 hardcode_direct_GCJ=yes
16490 hardcode_shlibpath_var_GCJ=no
16491 ;;
16492
16493 *)
16494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16495 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16496 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16497 else
16498 ld_shlibs_GCJ=no
16499 fi
16500 ;;
16501 esac
16502
16503 if test "$ld_shlibs_GCJ" = no; then
16504 runpath_var=
16505 hardcode_libdir_flag_spec_GCJ=
16506 export_dynamic_flag_spec_GCJ=
16507 whole_archive_flag_spec_GCJ=
16508 fi
16509 else
16510 # PORTME fill in a description of your system's linker (not GNU ld)
16511 case $host_os in
16512 aix3*)
16513 allow_undefined_flag_GCJ=unsupported
16514 always_export_symbols_GCJ=yes
16515 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'
16516 # Note: this linker hardcodes the directories in LIBPATH if there
16517 # are no directories specified by -L.
16518 hardcode_minus_L_GCJ=yes
16519 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16520 # Neither direct hardcoding nor static linking is supported with a
16521 # broken collect2.
16522 hardcode_direct_GCJ=unsupported
16523 fi
16524 ;;
16525
16526 aix4* | aix5*)
16527 if test "$host_cpu" = ia64; then
16528 # On IA64, the linker does run time linking by default, so we don't
16529 # have to do anything special.
16530 aix_use_runtimelinking=no
16531 exp_sym_flag='-Bexport'
16532 no_entry_flag=""
16533 else
16534 # If we're using GNU nm, then we don't want the "-C" option.
16535 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16536 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16537 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'
16538 else
16539 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'
16540 fi
16541 aix_use_runtimelinking=no
16542
16543 # Test if we are trying to use run time linking or normal
16544 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16545 # need to do runtime linking.
16546 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16547 for ld_flag in $LDFLAGS; do
16548 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16549 aix_use_runtimelinking=yes
16550 break
16551 fi
16552 done
16553 ;;
16554 esac
16555
16556 exp_sym_flag='-bexport'
16557 no_entry_flag='-bnoentry'
16558 fi
16559
16560 # When large executables or shared objects are built, AIX ld can
16561 # have problems creating the table of contents. If linking a library
16562 # or program results in "error TOC overflow" add -mminimal-toc to
16563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16565
16566 archive_cmds_GCJ=''
16567 hardcode_direct_GCJ=yes
16568 hardcode_libdir_separator_GCJ=':'
16569 link_all_deplibs_GCJ=yes
16570
16571 if test "$GCC" = yes; then
16572 case $host_os in aix4.[012]|aix4.[012].*)
16573 # We only want to do this on AIX 4.2 and lower, the check
16574 # below for broken collect2 doesn't work under 4.3+
16575 collect2name=`${CC} -print-prog-name=collect2`
16576 if test -f "$collect2name" && \
16577 strings "$collect2name" | grep resolve_lib_name >/dev/null
16578 then
16579 # We have reworked collect2
16580 hardcode_direct_GCJ=yes
16581 else
16582 # We have old collect2
16583 hardcode_direct_GCJ=unsupported
16584 # It fails to find uninstalled libraries when the uninstalled
16585 # path is not listed in the libpath. Setting hardcode_minus_L
16586 # to unsupported forces relinking
16587 hardcode_minus_L_GCJ=yes
16588 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16589 hardcode_libdir_separator_GCJ=
16590 fi
16591 ;;
16592 esac
16593 shared_flag='-shared'
16594 if test "$aix_use_runtimelinking" = yes; then
16595 shared_flag="$shared_flag "'${wl}-G'
16596 fi
16597 else
16598 # not using gcc
16599 if test "$host_cpu" = ia64; then
16600 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16601 # chokes on -Wl,-G. The following line is correct:
16602 shared_flag='-G'
16603 else
16604 if test "$aix_use_runtimelinking" = yes; then
16605 shared_flag='${wl}-G'
16606 else
16607 shared_flag='${wl}-bM:SRE'
16608 fi
16609 fi
16610 fi
16611
16612 # It seems that -bexpall does not export symbols beginning with
16613 # underscore (_), so it is better to generate a list of symbols to export.
16614 always_export_symbols_GCJ=yes
16615 if test "$aix_use_runtimelinking" = yes; then
16616 # Warning - without using the other runtime loading flags (-brtl),
16617 # -berok will link without error, but may produce a broken library.
16618 allow_undefined_flag_GCJ='-berok'
16619 # Determine the default libpath from the value encoded in an empty executable.
16620 cat >conftest.$ac_ext <<_ACEOF
16621/* confdefs.h. */
16622_ACEOF
16623cat confdefs.h >>conftest.$ac_ext
16624cat >>conftest.$ac_ext <<_ACEOF
16625/* end confdefs.h. */
16626
16627int
16628main ()
16629{
16630
16631 ;
16632 return 0;
16633}
16634_ACEOF
16635rm -f conftest.$ac_objext conftest$ac_exeext
16636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16637 (eval $ac_link) 2>conftest.er1
16638 ac_status=$?
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
16644 { ac_try='test -z "$ac_c_werror_flag"
16645 || test ! -s conftest.err'
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest$ac_exeext'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657
16658aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16659}'`
16660# Check for a 64-bit object if we didn't find anything.
16661if 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; }
16662}'`; fi
16663else
16664 echo "$as_me: failed program was:" >&5
16665sed 's/^/| /' conftest.$ac_ext >&5
16666
16667fi
16668rm -f conftest.err conftest.$ac_objext \
16669 conftest$ac_exeext conftest.$ac_ext
16670if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16671
16672 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16673 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"
16674 else
16675 if test "$host_cpu" = ia64; then
16676 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16677 allow_undefined_flag_GCJ="-z nodefs"
16678 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"
16679 else
16680 # Determine the default libpath from the value encoded in an empty executable.
16681 cat >conftest.$ac_ext <<_ACEOF
16682/* confdefs.h. */
16683_ACEOF
16684cat confdefs.h >>conftest.$ac_ext
16685cat >>conftest.$ac_ext <<_ACEOF
16686/* end confdefs.h. */
16687
16688int
16689main ()
16690{
16691
16692 ;
16693 return 0;
16694}
16695_ACEOF
16696rm -f conftest.$ac_objext conftest$ac_exeext
16697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16698 (eval $ac_link) 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag"
16706 || test ! -s conftest.err'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; } &&
16712 { ac_try='test -s conftest$ac_exeext'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718
16719aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16720}'`
16721# Check for a 64-bit object if we didn't find anything.
16722if 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; }
16723}'`; fi
16724else
16725 echo "$as_me: failed program was:" >&5
16726sed 's/^/| /' conftest.$ac_ext >&5
16727
16728fi
16729rm -f conftest.err conftest.$ac_objext \
16730 conftest$ac_exeext conftest.$ac_ext
16731if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16732
16733 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16734 # Warning - without using the other run time loading flags,
16735 # -berok will link without error, but may produce a broken library.
16736 no_undefined_flag_GCJ=' ${wl}-bernotok'
16737 allow_undefined_flag_GCJ=' ${wl}-berok'
16738 # Exported symbols can be pulled into shared objects from archives
16739 whole_archive_flag_spec_GCJ='$convenience'
16740 archive_cmds_need_lc_GCJ=yes
16741 # This is similar to how AIX traditionally builds its shared libraries.
16742 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'
16743 fi
16744 fi
16745 ;;
16746
16747 amigaos*)
16748 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)'
16749 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16750 hardcode_minus_L_GCJ=yes
16751 # see comment about different semantics on the GNU ld section
16752 ld_shlibs_GCJ=no
16753 ;;
16754
16755 bsdi[45]*)
16756 export_dynamic_flag_spec_GCJ=-rdynamic
16757 ;;
16758
16759 cygwin* | mingw* | pw32*)
16760 # When not using gcc, we currently assume that we are using
16761 # Microsoft Visual C++.
16762 # hardcode_libdir_flag_spec is actually meaningless, as there is
16763 # no search path for DLLs.
16764 hardcode_libdir_flag_spec_GCJ=' '
16765 allow_undefined_flag_GCJ=unsupported
16766 # Tell ltmain to make .lib files, not .a files.
16767 libext=lib
16768 # Tell ltmain to make .dll files, not .so files.
16769 shrext_cmds=".dll"
16770 # FIXME: Setting linknames here is a bad hack.
16771 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16772 # The linker will automatically build a .lib file if we build a DLL.
16773 old_archive_From_new_cmds_GCJ='true'
16774 # FIXME: Should let the user specify the lib program.
16775 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16776 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16777 enable_shared_with_static_runtimes_GCJ=yes
16778 ;;
16779
16780 darwin* | rhapsody*)
16781 case $host_os in
16782 rhapsody* | darwin1.[012])
16783 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16784 ;;
16785 *) # Darwin 1.3 on
16786 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16787 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16788 else
16789 case ${MACOSX_DEPLOYMENT_TARGET} in
16790 10.[012])
16791 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16792 ;;
16793 10.*)
16794 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16795 ;;
16796 esac
16797 fi
16798 ;;
16799 esac
16800 archive_cmds_need_lc_GCJ=no
16801 hardcode_direct_GCJ=no
16802 hardcode_automatic_GCJ=yes
16803 hardcode_shlibpath_var_GCJ=unsupported
16804 whole_archive_flag_spec_GCJ=''
16805 link_all_deplibs_GCJ=yes
16806 if test "$GCC" = yes ; then
16807 output_verbose_link_cmd='echo'
16808 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16809 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16810 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16811 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}'
16812 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}'
16813 else
16814 case $cc_basename in
16815 xlc*)
16816 output_verbose_link_cmd='echo'
16817 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16818 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16820 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}'
16821 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}'
16822 ;;
16823 *)
16824 ld_shlibs_GCJ=no
16825 ;;
16826 esac
16827 fi
16828 ;;
16829
16830 dgux*)
16831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16833 hardcode_shlibpath_var_GCJ=no
16834 ;;
16835
16836 freebsd1*)
16837 ld_shlibs_GCJ=no
16838 ;;
16839
16840 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16841 # support. Future versions do this automatically, but an explicit c++rt0.o
16842 # does not break anything, and helps significantly (at the cost of a little
16843 # extra space).
16844 freebsd2.2*)
16845 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16846 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16847 hardcode_direct_GCJ=yes
16848 hardcode_shlibpath_var_GCJ=no
16849 ;;
16850
16851 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16852 freebsd2*)
16853 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16854 hardcode_direct_GCJ=yes
16855 hardcode_minus_L_GCJ=yes
16856 hardcode_shlibpath_var_GCJ=no
16857 ;;
16858
16859 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16860 freebsd* | kfreebsd*-gnu | dragonfly*)
16861 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16862 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16863 hardcode_direct_GCJ=yes
16864 hardcode_shlibpath_var_GCJ=no
16865 ;;
16866
16867 hpux9*)
16868 if test "$GCC" = yes; then
16869 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'
16870 else
16871 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'
16872 fi
16873 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16874 hardcode_libdir_separator_GCJ=:
16875 hardcode_direct_GCJ=yes
16876
16877 # hardcode_minus_L: Not really in the search PATH,
16878 # but as the default location of the library.
16879 hardcode_minus_L_GCJ=yes
16880 export_dynamic_flag_spec_GCJ='${wl}-E'
16881 ;;
16882
16883 hpux10*)
16884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16885 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16886 else
16887 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16888 fi
16889 if test "$with_gnu_ld" = no; then
16890 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16891 hardcode_libdir_separator_GCJ=:
16892
16893 hardcode_direct_GCJ=yes
16894 export_dynamic_flag_spec_GCJ='${wl}-E'
16895
16896 # hardcode_minus_L: Not really in the search PATH,
16897 # but as the default location of the library.
16898 hardcode_minus_L_GCJ=yes
16899 fi
16900 ;;
16901
16902 hpux11*)
16903 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16904 case $host_cpu in
16905 hppa*64*)
16906 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16907 ;;
16908 ia64*)
16909 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16910 ;;
16911 *)
16912 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16913 ;;
16914 esac
16915 else
16916 case $host_cpu in
16917 hppa*64*)
16918 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16919 ;;
16920 ia64*)
16921 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16922 ;;
16923 *)
16924 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16925 ;;
16926 esac
16927 fi
16928 if test "$with_gnu_ld" = no; then
16929 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16930 hardcode_libdir_separator_GCJ=:
16931
16932 case $host_cpu in
16933 hppa*64*|ia64*)
16934 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16935 hardcode_direct_GCJ=no
16936 hardcode_shlibpath_var_GCJ=no
16937 ;;
16938 *)
16939 hardcode_direct_GCJ=yes
16940 export_dynamic_flag_spec_GCJ='${wl}-E'
16941
16942 # hardcode_minus_L: Not really in the search PATH,
16943 # but as the default location of the library.
16944 hardcode_minus_L_GCJ=yes
16945 ;;
16946 esac
16947 fi
16948 ;;
16949
16950 irix5* | irix6* | nonstopux*)
16951 if test "$GCC" = yes; then
16952 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'
16953 else
16954 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'
16955 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16956 fi
16957 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16958 hardcode_libdir_separator_GCJ=:
16959 link_all_deplibs_GCJ=yes
16960 ;;
16961
16962 netbsd*)
16963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16964 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16965 else
16966 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16967 fi
16968 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16969 hardcode_direct_GCJ=yes
16970 hardcode_shlibpath_var_GCJ=no
16971 ;;
16972
16973 newsos6)
16974 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16975 hardcode_direct_GCJ=yes
16976 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16977 hardcode_libdir_separator_GCJ=:
16978 hardcode_shlibpath_var_GCJ=no
16979 ;;
16980
16981 openbsd*)
16982 hardcode_direct_GCJ=yes
16983 hardcode_shlibpath_var_GCJ=no
16984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16985 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16986 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16988 export_dynamic_flag_spec_GCJ='${wl}-E'
16989 else
16990 case $host_os in
16991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16992 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16993 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16994 ;;
16995 *)
16996 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16998 ;;
16999 esac
17000 fi
17001 ;;
17002
17003 os2*)
17004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17005 hardcode_minus_L_GCJ=yes
17006 allow_undefined_flag_GCJ=unsupported
17007 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'
17008 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17009 ;;
17010
17011 osf3*)
17012 if test "$GCC" = yes; then
17013 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17014 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'
17015 else
17016 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17017 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'
17018 fi
17019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17020 hardcode_libdir_separator_GCJ=:
17021 ;;
17022
17023 osf4* | osf5*) # as osf3* with the addition of -msym flag
17024 if test "$GCC" = yes; then
17025 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17026 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'
17027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17028 else
17029 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17030 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'
17031 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~
17032 $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'
17033
17034 # Both c and cxx compiler support -rpath directly
17035 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17036 fi
17037 hardcode_libdir_separator_GCJ=:
17038 ;;
17039
17040 solaris*)
17041 no_undefined_flag_GCJ=' -z text'
17042 if test "$GCC" = yes; then
17043 wlarc='${wl}'
17044 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17045 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17046 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17047 else
17048 wlarc=''
17049 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17050 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17051 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17052 fi
17053 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17054 hardcode_shlibpath_var_GCJ=no
17055 case $host_os in
17056 solaris2.[0-5] | solaris2.[0-5].*) ;;
17057 *)
17058 # The compiler driver will combine linker options so we
17059 # cannot just pass the convience library names through
17060 # without $wl, iff we do not link with $LD.
17061 # Luckily, gcc supports the same syntax we need for Sun Studio.
17062 # Supported since Solaris 2.6 (maybe 2.5.1?)
17063 case $wlarc in
17064 '')
17065 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17066 *)
17067 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' ;;
17068 esac ;;
17069 esac
17070 link_all_deplibs_GCJ=yes
17071 ;;
17072
17073 sunos4*)
17074 if test "x$host_vendor" = xsequent; then
17075 # Use $CC to link under sequent, because it throws in some extra .o
17076 # files that make .init and .fini sections work.
17077 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17078 else
17079 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17080 fi
17081 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17082 hardcode_direct_GCJ=yes
17083 hardcode_minus_L_GCJ=yes
17084 hardcode_shlibpath_var_GCJ=no
17085 ;;
17086
17087 sysv4)
17088 case $host_vendor in
17089 sni)
17090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17091 hardcode_direct_GCJ=yes # is this really true???
17092 ;;
17093 siemens)
17094 ## LD is ld it makes a PLAMLIB
17095 ## CC just makes a GrossModule.
17096 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17097 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17098 hardcode_direct_GCJ=no
17099 ;;
17100 motorola)
17101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17103 ;;
17104 esac
17105 runpath_var='LD_RUN_PATH'
17106 hardcode_shlibpath_var_GCJ=no
17107 ;;
17108
17109 sysv4.3*)
17110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17111 hardcode_shlibpath_var_GCJ=no
17112 export_dynamic_flag_spec_GCJ='-Bexport'
17113 ;;
17114
17115 sysv4*MP*)
17116 if test -d /usr/nec; then
17117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17118 hardcode_shlibpath_var_GCJ=no
17119 runpath_var=LD_RUN_PATH
17120 hardcode_runpath_var=yes
17121 ld_shlibs_GCJ=yes
17122 fi
17123 ;;
17124
17125 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17126 no_undefined_flag_GCJ='${wl}-z,text'
17127 archive_cmds_need_lc_GCJ=no
17128 hardcode_shlibpath_var_GCJ=no
17129 runpath_var='LD_RUN_PATH'
17130
17131 if test "$GCC" = yes; then
17132 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17133 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17134 else
17135 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17136 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17137 fi
17138 ;;
17139
17140 sysv5* | sco3.2v5* | sco5v6*)
17141 # Note: We can NOT use -z defs as we might desire, because we do not
17142 # link with -lc, and that would cause any symbols used from libc to
17143 # always be unresolved, which means just about no library would
17144 # ever link correctly. If we're not using GNU ld we use -z text
17145 # though, which does catch some bad symbols but isn't as heavy-handed
17146 # as -z defs.
17147 no_undefined_flag_GCJ='${wl}-z,text'
17148 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17149 archive_cmds_need_lc_GCJ=no
17150 hardcode_shlibpath_var_GCJ=no
17151 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17152 hardcode_libdir_separator_GCJ=':'
17153 link_all_deplibs_GCJ=yes
17154 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17155 runpath_var='LD_RUN_PATH'
17156
17157 if test "$GCC" = yes; then
17158 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17159 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17160 else
17161 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17162 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17163 fi
17164 ;;
17165
17166 uts4*)
17167 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17168 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17169 hardcode_shlibpath_var_GCJ=no
17170 ;;
17171
17172 *)
17173 ld_shlibs_GCJ=no
17174 ;;
17175 esac
17176 fi
17177
17178echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17179echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17180test "$ld_shlibs_GCJ" = no && can_build_shared=no
17181
17182#
17183# Do we need to explicitly link libc?
17184#
17185case "x$archive_cmds_need_lc_GCJ" in
17186x|xyes)
17187 # Assume -lc should be added
17188 archive_cmds_need_lc_GCJ=yes
17189
17190 if test "$enable_shared" = yes && test "$GCC" = yes; then
17191 case $archive_cmds_GCJ in
17192 *'~'*)
17193 # FIXME: we may have to deal with multi-command sequences.
17194 ;;
17195 '$CC '*)
17196 # Test whether the compiler implicitly links with -lc since on some
17197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17198 # to ld, don't add -lc before -lgcc.
17199 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17200echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17201 $rm conftest*
17202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17203
17204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17205 (eval $ac_compile) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } 2>conftest.err; then
17209 soname=conftest
17210 lib=conftest
17211 libobjs=conftest.$ac_objext
17212 deplibs=
17213 wl=$lt_prog_compiler_wl_GCJ
17214 pic_flag=$lt_prog_compiler_pic_GCJ
17215 compiler_flags=-v
17216 linker_flags=-v
17217 verstring=
17218 output_objdir=.
17219 libname=conftest
17220 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17221 allow_undefined_flag_GCJ=
17222 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17223 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }
17227 then
17228 archive_cmds_need_lc_GCJ=no
17229 else
17230 archive_cmds_need_lc_GCJ=yes
17231 fi
17232 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17233 else
17234 cat conftest.err 1>&5
17235 fi
17236 $rm conftest*
17237 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17238echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17239 ;;
17240 esac
17241 fi
17242 ;;
17243esac
17244
17245echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17246echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17247library_names_spec=
17248libname_spec='lib$name'
17249soname_spec=
17250shrext_cmds=".so"
17251postinstall_cmds=
17252postuninstall_cmds=
17253finish_cmds=
17254finish_eval=
17255shlibpath_var=
17256shlibpath_overrides_runpath=unknown
17257version_type=none
17258dynamic_linker="$host_os ld.so"
17259sys_lib_dlsearch_path_spec="/lib /usr/lib"
17260if test "$GCC" = yes; then
17261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17262 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17263 # if the path contains ";" then we assume it to be the separator
17264 # otherwise default to the standard path separator (i.e. ":") - it is
17265 # assumed that no part of a normal pathname contains ";" but that should
17266 # okay in the real world where ";" in dirpaths is itself problematic.
17267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17268 else
17269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17270 fi
17271else
17272 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17273fi
17274need_lib_prefix=unknown
17275hardcode_into_libs=no
17276
17277# when you set need_version to no, make sure it does not cause -set_version
17278# flags to be left without arguments
17279need_version=unknown
17280
17281case $host_os in
17282aix3*)
17283 version_type=linux
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17285 shlibpath_var=LIBPATH
17286
17287 # AIX 3 has no versioning support, so we append a major version to the name.
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 ;;
17290
17291aix4* | aix5*)
17292 version_type=linux
17293 need_lib_prefix=no
17294 need_version=no
17295 hardcode_into_libs=yes
17296 if test "$host_cpu" = ia64; then
17297 # AIX 5 supports IA64
17298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 else
17301 # With GCC up to 2.95.x, collect2 would create an import file
17302 # for dependence libraries. The import file would start with
17303 # the line `#! .'. This would cause the generated library to
17304 # depend on `.', always an invalid library. This was fixed in
17305 # development snapshots of GCC prior to 3.0.
17306 case $host_os in
17307 aix4 | aix4.[01] | aix4.[01].*)
17308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17309 echo ' yes '
17310 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17311 :
17312 else
17313 can_build_shared=no
17314 fi
17315 ;;
17316 esac
17317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17318 # soname into executable. Probably we can add versioning support to
17319 # collect2, so additional links can be useful in future.
17320 if test "$aix_use_runtimelinking" = yes; then
17321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17322 # instead of lib<name>.a to let people know that these are not
17323 # typical AIX shared libraries.
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325 else
17326 # We preserve .a as extension for shared libraries through AIX4.2
17327 # and later when we are not doing run time linking.
17328 library_names_spec='${libname}${release}.a $libname.a'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 fi
17331 shlibpath_var=LIBPATH
17332 fi
17333 ;;
17334
17335amigaos*)
17336 library_names_spec='$libname.ixlibrary $libname.a'
17337 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17338 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'
17339 ;;
17340
17341beos*)
17342 library_names_spec='${libname}${shared_ext}'
17343 dynamic_linker="$host_os ld.so"
17344 shlibpath_var=LIBRARY_PATH
17345 ;;
17346
17347bsdi[45]*)
17348 version_type=linux
17349 need_version=no
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17355 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17356 # the default ld.so.conf also contains /usr/contrib/lib and
17357 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17358 # libtool to hard-code these into programs
17359 ;;
17360
17361cygwin* | mingw* | pw32*)
17362 version_type=windows
17363 shrext_cmds=".dll"
17364 need_version=no
17365 need_lib_prefix=no
17366
17367 case $GCC,$host_os in
17368 yes,cygwin* | yes,mingw* | yes,pw32*)
17369 library_names_spec='$libname.dll.a'
17370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17371 postinstall_cmds='base_file=`basename \${file}`~
17372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17373 dldir=$destdir/`dirname \$dlpath`~
17374 test -d \$dldir || mkdir -p \$dldir~
17375 $install_prog $dir/$dlname \$dldir/$dlname~
17376 chmod a+x \$dldir/$dlname'
17377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17378 dlpath=$dir/\$dldll~
17379 $rm \$dlpath'
17380 shlibpath_overrides_runpath=yes
17381
17382 case $host_os in
17383 cygwin*)
17384 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17386 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17387 ;;
17388 mingw*)
17389 # MinGW DLLs use traditional 'lib' prefix
17390 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17391 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17392 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17393 # It is most probably a Windows format PATH printed by
17394 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17395 # path with ; separators, and with drive letters. We can handle the
17396 # drive letters (cygwin fileutils understands them), so leave them,
17397 # especially as we might pass files found there to a mingw objdump,
17398 # which wouldn't understand a cygwinified path. Ahh.
17399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17400 else
17401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17402 fi
17403 ;;
17404 pw32*)
17405 # pw32 DLLs use 'pw' prefix rather than 'lib'
17406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17407 ;;
17408 esac
17409 ;;
17410
17411 linux*)
17412 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17414 supports_anon_versioning=no
17415 case `$LD -v 2>/dev/null` in
17416 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17417 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17418 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17419 *\ 2.11.*) ;; # other 2.11 versions
17420 *) supports_anon_versioning=yes ;;
17421 esac
17422 if test $supports_anon_versioning = yes; then
17423 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17424cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17425$echo "local: *; };" >> $output_objdir/$libname.ver~
17426 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17427 else
17428 $archive_expsym_cmds="$archive_cmds"
17429 fi
17430 else
17431 ld_shlibs=no
17432 fi
17433 ;;
17434
17435 *)
17436 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17437 ;;
17438 esac
17439 dynamic_linker='Win32 ld.exe'
17440 # FIXME: first we should search . and the directory the executable is in
17441 shlibpath_var=PATH
17442 ;;
17443
17444darwin* | rhapsody*)
17445 dynamic_linker="$host_os dyld"
17446 version_type=darwin
17447 need_lib_prefix=no
17448 need_version=no
17449 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17450 soname_spec='${libname}${release}${major}$shared_ext'
17451 shlibpath_overrides_runpath=yes
17452 shlibpath_var=DYLD_LIBRARY_PATH
17453 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17454 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17455 if test "$GCC" = yes; then
17456 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"`
17457 else
17458 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17459 fi
17460 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17461 ;;
17462
17463dgux*)
17464 version_type=linux
17465 need_lib_prefix=no
17466 need_version=no
17467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17468 soname_spec='${libname}${release}${shared_ext}$major'
17469 shlibpath_var=LD_LIBRARY_PATH
17470 ;;
17471
17472freebsd1*)
17473 dynamic_linker=no
17474 ;;
17475
17476kfreebsd*-gnu)
17477 version_type=linux
17478 need_lib_prefix=no
17479 need_version=no
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 shlibpath_var=LD_LIBRARY_PATH
17483 shlibpath_overrides_runpath=no
17484 hardcode_into_libs=yes
17485 dynamic_linker='GNU ld.so'
17486 ;;
17487
17488freebsd* | dragonfly*)
17489 # DragonFly does not have aout. When/if they implement a new
17490 # versioning mechanism, adjust this.
17491 if test -x /usr/bin/objformat; then
17492 objformat=`/usr/bin/objformat`
17493 else
17494 case $host_os in
17495 freebsd[123]*) objformat=aout ;;
17496 *) objformat=elf ;;
17497 esac
17498 fi
17499 # Handle Gentoo/FreeBSD as it was Linux
17500 case $host_vendor in
17501 gentoo)
17502 version_type=linux ;;
17503 *)
17504 version_type=freebsd-$objformat ;;
17505 esac
17506
17507 case $version_type in
17508 freebsd-elf*)
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17510 need_version=no
17511 need_lib_prefix=no
17512 ;;
17513 freebsd-*)
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17515 need_version=yes
17516 ;;
17517 linux)
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17519 soname_spec='${libname}${release}${shared_ext}$major'
17520 need_lib_prefix=no
17521 need_version=no
17522 ;;
17523 esac
17524 shlibpath_var=LD_LIBRARY_PATH
17525 case $host_os in
17526 freebsd2*)
17527 shlibpath_overrides_runpath=yes
17528 ;;
17529 freebsd3.[01]* | freebsdelf3.[01]*)
17530 shlibpath_overrides_runpath=yes
17531 hardcode_into_libs=yes
17532 ;;
17533 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17534 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17535 shlibpath_overrides_runpath=no
17536 hardcode_into_libs=yes
17537 ;;
17538 freebsd*) # from 4.6 on
17539 shlibpath_overrides_runpath=yes
17540 hardcode_into_libs=yes
17541 ;;
17542 esac
17543 ;;
17544
17545gnu*)
17546 version_type=linux
17547 need_lib_prefix=no
17548 need_version=no
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 hardcode_into_libs=yes
17553 ;;
17554
17555hpux9* | hpux10* | hpux11*)
17556 # Give a soname corresponding to the major version so that dld.sl refuses to
17557 # link against other versions.
17558 version_type=sunos
17559 need_lib_prefix=no
17560 need_version=no
17561 case $host_cpu in
17562 ia64*)
17563 shrext_cmds='.so'
17564 hardcode_into_libs=yes
17565 dynamic_linker="$host_os dld.so"
17566 shlibpath_var=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 if test "X$HPUX_IA64_MODE" = X32; then
17571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17572 else
17573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17574 fi
17575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17576 ;;
17577 hppa*64*)
17578 shrext_cmds='.sl'
17579 hardcode_into_libs=yes
17580 dynamic_linker="$host_os dld.sl"
17581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584 soname_spec='${libname}${release}${shared_ext}$major'
17585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17587 ;;
17588 *)
17589 shrext_cmds='.sl'
17590 dynamic_linker="$host_os dld.sl"
17591 shlibpath_var=SHLIB_PATH
17592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594 soname_spec='${libname}${release}${shared_ext}$major'
17595 ;;
17596 esac
17597 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17598 postinstall_cmds='chmod 555 $lib'
17599 ;;
17600
17601interix3*)
17602 version_type=linux
17603 need_lib_prefix=no
17604 need_version=no
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17606 soname_spec='${libname}${release}${shared_ext}$major'
17607 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath=no
17610 hardcode_into_libs=yes
17611 ;;
17612
17613irix5* | irix6* | nonstopux*)
17614 case $host_os in
17615 nonstopux*) version_type=nonstopux ;;
17616 *)
17617 if test "$lt_cv_prog_gnu_ld" = yes; then
17618 version_type=linux
17619 else
17620 version_type=irix
17621 fi ;;
17622 esac
17623 need_lib_prefix=no
17624 need_version=no
17625 soname_spec='${libname}${release}${shared_ext}$major'
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17627 case $host_os in
17628 irix5* | nonstopux*)
17629 libsuff= shlibsuff=
17630 ;;
17631 *)
17632 case $LD in # libtool.m4 will add one of these switches to LD
17633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17634 libsuff= shlibsuff= libmagic=32-bit;;
17635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17636 libsuff=32 shlibsuff=N32 libmagic=N32;;
17637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17639 *) libsuff= shlibsuff= libmagic=never-match;;
17640 esac
17641 ;;
17642 esac
17643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17644 shlibpath_overrides_runpath=no
17645 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17646 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17647 hardcode_into_libs=yes
17648 ;;
17649
17650# No shared lib support for Linux oldld, aout, or coff.
17651linux*oldld* | linux*aout* | linux*coff*)
17652 dynamic_linker=no
17653 ;;
17654
17655# This must be Linux ELF.
17656linux*)
17657 version_type=linux
17658 need_lib_prefix=no
17659 need_version=no
17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17661 soname_spec='${libname}${release}${shared_ext}$major'
17662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17663 shlibpath_var=LD_LIBRARY_PATH
17664 shlibpath_overrides_runpath=no
17665 # This implies no fast_install, which is unacceptable.
17666 # Some rework will be needed to allow for fast_install
17667 # before this can be enabled.
17668 hardcode_into_libs=yes
17669
17670 # Append ld.so.conf contents to the search path
17671 if test -f /etc/ld.so.conf; then
17672 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' ' '`
17673 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17674 fi
17675
17676 # We used to test for /lib/ld.so.1 and disable shared libraries on
17677 # powerpc, because MkLinux only supported shared libraries with the
17678 # GNU dynamic linker. Since this was broken with cross compilers,
17679 # most powerpc-linux boxes support dynamic linking these days and
17680 # people can always --disable-shared, the test was removed, and we
17681 # assume the GNU/Linux dynamic linker is in use.
17682 dynamic_linker='GNU/Linux ld.so'
17683 ;;
17684
17685knetbsd*-gnu)
17686 version_type=linux
17687 need_lib_prefix=no
17688 need_version=no
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17690 soname_spec='${libname}${release}${shared_ext}$major'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=no
17693 hardcode_into_libs=yes
17694 dynamic_linker='GNU ld.so'
17695 ;;
17696
17697netbsd*)
17698 version_type=sunos
17699 need_lib_prefix=no
17700 need_version=no
17701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17704 dynamic_linker='NetBSD (a.out) ld.so'
17705 else
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17707 soname_spec='${libname}${release}${shared_ext}$major'
17708 dynamic_linker='NetBSD ld.elf_so'
17709 fi
17710 shlibpath_var=LD_LIBRARY_PATH
17711 shlibpath_overrides_runpath=yes
17712 hardcode_into_libs=yes
17713 ;;
17714
17715newsos6)
17716 version_type=linux
17717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17718 shlibpath_var=LD_LIBRARY_PATH
17719 shlibpath_overrides_runpath=yes
17720 ;;
17721
17722nto-qnx*)
17723 version_type=linux
17724 need_lib_prefix=no
17725 need_version=no
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17727 soname_spec='${libname}${release}${shared_ext}$major'
17728 shlibpath_var=LD_LIBRARY_PATH
17729 shlibpath_overrides_runpath=yes
17730 ;;
17731
17732openbsd*)
17733 version_type=sunos
17734 sys_lib_dlsearch_path_spec="/usr/lib"
17735 need_lib_prefix=no
17736 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17737 case $host_os in
17738 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17739 *) need_version=no ;;
17740 esac
17741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17743 shlibpath_var=LD_LIBRARY_PATH
17744 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17745 case $host_os in
17746 openbsd2.[89] | openbsd2.[89].*)
17747 shlibpath_overrides_runpath=no
17748 ;;
17749 *)
17750 shlibpath_overrides_runpath=yes
17751 ;;
17752 esac
17753 else
17754 shlibpath_overrides_runpath=yes
17755 fi
17756 ;;
17757
17758os2*)
17759 libname_spec='$name'
17760 shrext_cmds=".dll"
17761 need_lib_prefix=no
17762 library_names_spec='$libname${shared_ext} $libname.a'
17763 dynamic_linker='OS/2 ld.exe'
17764 shlibpath_var=LIBPATH
17765 ;;
17766
17767osf3* | osf4* | osf5*)
17768 version_type=osf
17769 need_lib_prefix=no
17770 need_version=no
17771 soname_spec='${libname}${release}${shared_ext}$major'
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17773 shlibpath_var=LD_LIBRARY_PATH
17774 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17775 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17776 ;;
17777
17778solaris*)
17779 version_type=linux
17780 need_lib_prefix=no
17781 need_version=no
17782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17783 soname_spec='${libname}${release}${shared_ext}$major'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath=yes
17786 hardcode_into_libs=yes
17787 # ldd complains unless libraries are executable
17788 postinstall_cmds='chmod +x $lib'
17789 ;;
17790
17791sunos4*)
17792 version_type=sunos
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17794 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17795 shlibpath_var=LD_LIBRARY_PATH
17796 shlibpath_overrides_runpath=yes
17797 if test "$with_gnu_ld" = yes; then
17798 need_lib_prefix=no
17799 fi
17800 need_version=yes
17801 ;;
17802
17803sysv4 | sysv4.3*)
17804 version_type=linux
17805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17806 soname_spec='${libname}${release}${shared_ext}$major'
17807 shlibpath_var=LD_LIBRARY_PATH
17808 case $host_vendor in
17809 sni)
17810 shlibpath_overrides_runpath=no
17811 need_lib_prefix=no
17812 export_dynamic_flag_spec='${wl}-Blargedynsym'
17813 runpath_var=LD_RUN_PATH
17814 ;;
17815 siemens)
17816 need_lib_prefix=no
17817 ;;
17818 motorola)
17819 need_lib_prefix=no
17820 need_version=no
17821 shlibpath_overrides_runpath=no
17822 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17823 ;;
17824 esac
17825 ;;
17826
17827sysv4*MP*)
17828 if test -d /usr/nec ;then
17829 version_type=linux
17830 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17831 soname_spec='$libname${shared_ext}.$major'
17832 shlibpath_var=LD_LIBRARY_PATH
17833 fi
17834 ;;
17835
17836sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17837 version_type=freebsd-elf
17838 need_lib_prefix=no
17839 need_version=no
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17841 soname_spec='${libname}${release}${shared_ext}$major'
17842 shlibpath_var=LD_LIBRARY_PATH
17843 hardcode_into_libs=yes
17844 if test "$with_gnu_ld" = yes; then
17845 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17846 shlibpath_overrides_runpath=no
17847 else
17848 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17849 shlibpath_overrides_runpath=yes
17850 case $host_os in
17851 sco3.2v5*)
17852 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17853 ;;
17854 esac
17855 fi
17856 sys_lib_dlsearch_path_spec='/usr/lib'
17857 ;;
17858
17859uts4*)
17860 version_type=linux
17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17862 soname_spec='${libname}${release}${shared_ext}$major'
17863 shlibpath_var=LD_LIBRARY_PATH
17864 ;;
17865
17866*)
17867 dynamic_linker=no
17868 ;;
17869esac
17870echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17871echo "${ECHO_T}$dynamic_linker" >&6
17872test "$dynamic_linker" = no && can_build_shared=no
17873
17874variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17875if test "$GCC" = yes; then
17876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17877fi
17878
17879echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17880echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17881hardcode_action_GCJ=
17882if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17883 test -n "$runpath_var_GCJ" || \
17884 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17885
17886 # We can hardcode non-existant directories.
17887 if test "$hardcode_direct_GCJ" != no &&
17888 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17889 # have to relink, otherwise we might link with an installed library
17890 # when we should be linking with a yet-to-be-installed one
17891 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17892 test "$hardcode_minus_L_GCJ" != no; then
17893 # Linking always hardcodes the temporary library directory.
17894 hardcode_action_GCJ=relink
17895 else
17896 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17897 hardcode_action_GCJ=immediate
17898 fi
17899else
17900 # We cannot hardcode anything, or else we can only hardcode existing
17901 # directories.
17902 hardcode_action_GCJ=unsupported
17903fi
17904echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17905echo "${ECHO_T}$hardcode_action_GCJ" >&6
17906
17907if test "$hardcode_action_GCJ" = relink; then
17908 # Fast installation is not supported
17909 enable_fast_install=no
17910elif test "$shlibpath_overrides_runpath" = yes ||
17911 test "$enable_shared" = no; then
17912 # Fast installation is not necessary
17913 enable_fast_install=needless
17914fi
17915
17916
17917# The else clause should only fire when bootstrapping the
17918# libtool distribution, otherwise you forgot to ship ltmain.sh
17919# with your package, and you will get complaints that there are
17920# no rules to generate ltmain.sh.
17921if test -f "$ltmain"; then
17922 # See if we are running on zsh, and set the options which allow our commands through
17923 # without removal of \ escapes.
17924 if test -n "${ZSH_VERSION+set}" ; then
17925 setopt NO_GLOB_SUBST
17926 fi
17927 # Now quote all the things that may contain metacharacters while being
17928 # careful not to overquote the AC_SUBSTed values. We take copies of the
17929 # variables and quote the copies for generation of the libtool script.
17930 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17931 SED SHELL STRIP \
17932 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17933 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17934 deplibs_check_method reload_flag reload_cmds need_locks \
17935 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17936 lt_cv_sys_global_symbol_to_c_name_address \
17937 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17938 old_postinstall_cmds old_postuninstall_cmds \
17939 compiler_GCJ \
17940 CC_GCJ \
17941 LD_GCJ \
17942 lt_prog_compiler_wl_GCJ \
17943 lt_prog_compiler_pic_GCJ \
17944 lt_prog_compiler_static_GCJ \
17945 lt_prog_compiler_no_builtin_flag_GCJ \
17946 export_dynamic_flag_spec_GCJ \
17947 thread_safe_flag_spec_GCJ \
17948 whole_archive_flag_spec_GCJ \
17949 enable_shared_with_static_runtimes_GCJ \
17950 old_archive_cmds_GCJ \
17951 old_archive_from_new_cmds_GCJ \
17952 predep_objects_GCJ \
17953 postdep_objects_GCJ \
17954 predeps_GCJ \
17955 postdeps_GCJ \
17956 compiler_lib_search_path_GCJ \
17957 archive_cmds_GCJ \
17958 archive_expsym_cmds_GCJ \
17959 postinstall_cmds_GCJ \
17960 postuninstall_cmds_GCJ \
17961 old_archive_from_expsyms_cmds_GCJ \
17962 allow_undefined_flag_GCJ \
17963 no_undefined_flag_GCJ \
17964 export_symbols_cmds_GCJ \
17965 hardcode_libdir_flag_spec_GCJ \
17966 hardcode_libdir_flag_spec_ld_GCJ \
17967 hardcode_libdir_separator_GCJ \
17968 hardcode_automatic_GCJ \
17969 module_cmds_GCJ \
17970 module_expsym_cmds_GCJ \
17971 lt_cv_prog_compiler_c_o_GCJ \
17972 exclude_expsyms_GCJ \
17973 include_expsyms_GCJ; do
17974
17975 case $var in
17976 old_archive_cmds_GCJ | \
17977 old_archive_from_new_cmds_GCJ | \
17978 archive_cmds_GCJ | \
17979 archive_expsym_cmds_GCJ | \
17980 module_cmds_GCJ | \
17981 module_expsym_cmds_GCJ | \
17982 old_archive_from_expsyms_cmds_GCJ | \
17983 export_symbols_cmds_GCJ | \
17984 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17985 postinstall_cmds | postuninstall_cmds | \
17986 old_postinstall_cmds | old_postuninstall_cmds | \
17987 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17988 # Double-quote double-evaled strings.
17989 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17990 ;;
17991 *)
17992 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17993 ;;
17994 esac
17995 done
17996
17997 case $lt_echo in
17998 *'\$0 --fallback-echo"')
17999 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18000 ;;
18001 esac
18002
18003cfgfile="$ofile"
18004
18005 cat <<__EOF__ >> "$cfgfile"
18006# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18007
18008# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18009
18010# Shell to use when invoking shell scripts.
18011SHELL=$lt_SHELL
18012
18013# Whether or not to build shared libraries.
18014build_libtool_libs=$enable_shared
18015
18016# Whether or not to build static libraries.
18017build_old_libs=$enable_static
18018
18019# Whether or not to add -lc for building shared libraries.
18020build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18021
18022# Whether or not to disallow shared libs when runtime libs are static
18023allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18024
18025# Whether or not to optimize for fast installation.
18026fast_install=$enable_fast_install
18027
18028# The host system.
18029host_alias=$host_alias
18030host=$host
18031host_os=$host_os
18032
18033# The build system.
18034build_alias=$build_alias
18035build=$build
18036build_os=$build_os
18037
18038# An echo program that does not interpret backslashes.
18039echo=$lt_echo
18040
18041# The archiver.
18042AR=$lt_AR
18043AR_FLAGS=$lt_AR_FLAGS
18044
18045# A C compiler.
18046LTCC=$lt_LTCC
18047
18048# LTCC compiler flags.
18049LTCFLAGS=$lt_LTCFLAGS
18050
18051# A language-specific compiler.
18052CC=$lt_compiler_GCJ
18053
18054# Is the compiler the GNU C compiler?
18055with_gcc=$GCC_GCJ
18056
18057# An ERE matcher.
18058EGREP=$lt_EGREP
18059
18060# The linker used to build libraries.
18061LD=$lt_LD_GCJ
18062
18063# Whether we need hard or soft links.
18064LN_S=$lt_LN_S
18065
18066# A BSD-compatible nm program.
18067NM=$lt_NM
18068
18069# A symbol stripping program
18070STRIP=$lt_STRIP
18071
18072# Used to examine libraries when file_magic_cmd begins "file"
18073MAGIC_CMD=$MAGIC_CMD
18074
18075# Used on cygwin: DLL creation program.
18076DLLTOOL="$DLLTOOL"
18077
18078# Used on cygwin: object dumper.
18079OBJDUMP="$OBJDUMP"
18080
18081# Used on cygwin: assembler.
18082AS="$AS"
18083
18084# The name of the directory that contains temporary libtool files.
18085objdir=$objdir
18086
18087# How to create reloadable object files.
18088reload_flag=$lt_reload_flag
18089reload_cmds=$lt_reload_cmds
18090
18091# How to pass a linker flag through the compiler.
18092wl=$lt_lt_prog_compiler_wl_GCJ
18093
18094# Object file suffix (normally "o").
18095objext="$ac_objext"
18096
18097# Old archive suffix (normally "a").
18098libext="$libext"
18099
18100# Shared library suffix (normally ".so").
18101shrext_cmds='$shrext_cmds'
18102
18103# Executable file suffix (normally "").
18104exeext="$exeext"
18105
18106# Additional compiler flags for building library objects.
18107pic_flag=$lt_lt_prog_compiler_pic_GCJ
18108pic_mode=$pic_mode
18109
18110# What is the maximum length of a command?
18111max_cmd_len=$lt_cv_sys_max_cmd_len
18112
18113# Does compiler simultaneously support -c and -o options?
18114compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18115
18116# Must we lock files when doing compilation?
18117need_locks=$lt_need_locks
18118
18119# Do we need the lib prefix for modules?
18120need_lib_prefix=$need_lib_prefix
18121
18122# Do we need a version for libraries?
18123need_version=$need_version
18124
18125# Whether dlopen is supported.
18126dlopen_support=$enable_dlopen
18127
18128# Whether dlopen of programs is supported.
18129dlopen_self=$enable_dlopen_self
18130
18131# Whether dlopen of statically linked programs is supported.
18132dlopen_self_static=$enable_dlopen_self_static
18133
18134# Compiler flag to prevent dynamic linking.
18135link_static_flag=$lt_lt_prog_compiler_static_GCJ
18136
18137# Compiler flag to turn off builtin functions.
18138no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18139
18140# Compiler flag to allow reflexive dlopens.
18141export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18142
18143# Compiler flag to generate shared objects directly from archives.
18144whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18145
18146# Compiler flag to generate thread-safe objects.
18147thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18148
18149# Library versioning type.
18150version_type=$version_type
18151
18152# Format of library name prefix.
18153libname_spec=$lt_libname_spec
18154
18155# List of archive names. First name is the real one, the rest are links.
18156# The last name is the one that the linker finds with -lNAME.
18157library_names_spec=$lt_library_names_spec
18158
18159# The coded name of the library, if different from the real name.
18160soname_spec=$lt_soname_spec
18161
18162# Commands used to build and install an old-style archive.
18163RANLIB=$lt_RANLIB
18164old_archive_cmds=$lt_old_archive_cmds_GCJ
18165old_postinstall_cmds=$lt_old_postinstall_cmds
18166old_postuninstall_cmds=$lt_old_postuninstall_cmds
18167
18168# Create an old-style archive from a shared archive.
18169old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18170
18171# Create a temporary old-style archive to link instead of a shared archive.
18172old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18173
18174# Commands used to build and install a shared archive.
18175archive_cmds=$lt_archive_cmds_GCJ
18176archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18177postinstall_cmds=$lt_postinstall_cmds
18178postuninstall_cmds=$lt_postuninstall_cmds
18179
18180# Commands used to build a loadable module (assumed same as above if empty)
18181module_cmds=$lt_module_cmds_GCJ
18182module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18183
18184# Commands to strip libraries.
18185old_striplib=$lt_old_striplib
18186striplib=$lt_striplib
18187
18188# Dependencies to place before the objects being linked to create a
18189# shared library.
18190predep_objects=$lt_predep_objects_GCJ
18191
18192# Dependencies to place after the objects being linked to create a
18193# shared library.
18194postdep_objects=$lt_postdep_objects_GCJ
18195
18196# Dependencies to place before the objects being linked to create a
18197# shared library.
18198predeps=$lt_predeps_GCJ
18199
18200# Dependencies to place after the objects being linked to create a
18201# shared library.
18202postdeps=$lt_postdeps_GCJ
18203
18204# The library search path used internally by the compiler when linking
18205# a shared library.
18206compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18207
18208# Method to check whether dependent libraries are shared objects.
18209deplibs_check_method=$lt_deplibs_check_method
18210
18211# Command to use when deplibs_check_method == file_magic.
18212file_magic_cmd=$lt_file_magic_cmd
18213
18214# Flag that allows shared libraries with undefined symbols to be built.
18215allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18216
18217# Flag that forces no undefined symbols.
18218no_undefined_flag=$lt_no_undefined_flag_GCJ
18219
18220# Commands used to finish a libtool library installation in a directory.
18221finish_cmds=$lt_finish_cmds
18222
18223# Same as above, but a single script fragment to be evaled but not shown.
18224finish_eval=$lt_finish_eval
18225
18226# Take the output of nm and produce a listing of raw symbols and C names.
18227global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18228
18229# Transform the output of nm in a proper C declaration
18230global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18231
18232# Transform the output of nm in a C name address pair
18233global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18234
18235# This is the shared library runtime path variable.
18236runpath_var=$runpath_var
18237
18238# This is the shared library path variable.
18239shlibpath_var=$shlibpath_var
18240
18241# Is shlibpath searched before the hard-coded library search path?
18242shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18243
18244# How to hardcode a shared library path into an executable.
18245hardcode_action=$hardcode_action_GCJ
18246
18247# Whether we should hardcode library paths into libraries.
18248hardcode_into_libs=$hardcode_into_libs
18249
18250# Flag to hardcode \$libdir into a binary during linking.
18251# This must work even if \$libdir does not exist.
18252hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18253
18254# If ld is used when linking, flag to hardcode \$libdir into
18255# a binary during linking. This must work even if \$libdir does
18256# not exist.
18257hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18258
18259# Whether we need a single -rpath flag with a separated argument.
18260hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18261
18262# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18263# resulting binary.
18264hardcode_direct=$hardcode_direct_GCJ
18265
18266# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18267# resulting binary.
18268hardcode_minus_L=$hardcode_minus_L_GCJ
18269
18270# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18271# the resulting binary.
18272hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18273
18274# Set to yes if building a shared library automatically hardcodes DIR into the library
18275# and all subsequent libraries and executables linked against it.
18276hardcode_automatic=$hardcode_automatic_GCJ
18277
18278# Variables whose values should be saved in libtool wrapper scripts and
18279# restored at relink time.
18280variables_saved_for_relink="$variables_saved_for_relink"
18281
18282# Whether libtool must link a program against all its dependency libraries.
18283link_all_deplibs=$link_all_deplibs_GCJ
18284
18285# Compile-time system search path for libraries
18286sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18287
18288# Run-time system search path for libraries
18289sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18290
18291# Fix the shell variable \$srcfile for the compiler.
18292fix_srcfile_path="$fix_srcfile_path_GCJ"
18293
18294# Set to yes if exported symbols are required.
18295always_export_symbols=$always_export_symbols_GCJ
18296
18297# The commands to list exported symbols.
18298export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18299
18300# The commands to extract the exported symbol list from a shared archive.
18301extract_expsyms_cmds=$lt_extract_expsyms_cmds
18302
18303# Symbols that should not be listed in the preloaded symbols.
18304exclude_expsyms=$lt_exclude_expsyms_GCJ
18305
18306# Symbols that must always be exported.
18307include_expsyms=$lt_include_expsyms_GCJ
18308
18309# ### END LIBTOOL TAG CONFIG: $tagname
18310
18311__EOF__
18312
18313
18314else
18315 # If there is no Makefile yet, we rely on a make rule to execute
18316 # `config.status --recheck' to rerun these tests and create the
18317 # libtool script then.
18318 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18319 if test -f "$ltmain_in"; then
18320 test -f Makefile && make "$ltmain"
18321 fi
18322fi
18323
18324
18325ac_ext=c
18326ac_cpp='$CPP $CPPFLAGS'
18327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18329ac_compiler_gnu=$ac_cv_c_compiler_gnu
18330
18331CC="$lt_save_CC"
18332
18333 else
18334 tagname=""
18335 fi
18336 ;;
18337
18338 RC)
18339
18340
18341
18342# Source file extension for RC test sources.
18343ac_ext=rc
18344
18345# Object file extension for compiled RC test sources.
18346objext=o
18347objext_RC=$objext
18348
18349# Code to be used in simple compile tests
18350lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18351
18352# Code to be used in simple link tests
18353lt_simple_link_test_code="$lt_simple_compile_test_code"
18354
18355# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18356
18357# If no C compiler was specified, use CC.
18358LTCC=${LTCC-"$CC"}
18359
18360# If no C compiler flags were specified, use CFLAGS.
18361LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18362
18363# Allow CC to be a program name with arguments.
18364compiler=$CC
18365
18366
18367# save warnings/boilerplate of simple test code
18368ac_outfile=conftest.$ac_objext
18369printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18370eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18371_lt_compiler_boilerplate=`cat conftest.err`
18372$rm conftest*
18373
18374ac_outfile=conftest.$ac_objext
18375printf "$lt_simple_link_test_code" >conftest.$ac_ext
18376eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18377_lt_linker_boilerplate=`cat conftest.err`
18378$rm conftest*
18379
18380
18381# Allow CC to be a program name with arguments.
18382lt_save_CC="$CC"
18383CC=${RC-"windres"}
18384compiler=$CC
18385compiler_RC=$CC
18386for cc_temp in $compiler""; do
18387 case $cc_temp in
18388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18390 \-*) ;;
18391 *) break;;
18392 esac
18393done
18394cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18395
18396lt_cv_prog_compiler_c_o_RC=yes
18397
18398# The else clause should only fire when bootstrapping the
18399# libtool distribution, otherwise you forgot to ship ltmain.sh
18400# with your package, and you will get complaints that there are
18401# no rules to generate ltmain.sh.
18402if test -f "$ltmain"; then
18403 # See if we are running on zsh, and set the options which allow our commands through
18404 # without removal of \ escapes.
18405 if test -n "${ZSH_VERSION+set}" ; then
18406 setopt NO_GLOB_SUBST
18407 fi
18408 # Now quote all the things that may contain metacharacters while being
18409 # careful not to overquote the AC_SUBSTed values. We take copies of the
18410 # variables and quote the copies for generation of the libtool script.
18411 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18412 SED SHELL STRIP \
18413 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18414 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18415 deplibs_check_method reload_flag reload_cmds need_locks \
18416 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18417 lt_cv_sys_global_symbol_to_c_name_address \
18418 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18419 old_postinstall_cmds old_postuninstall_cmds \
18420 compiler_RC \
18421 CC_RC \
18422 LD_RC \
18423 lt_prog_compiler_wl_RC \
18424 lt_prog_compiler_pic_RC \
18425 lt_prog_compiler_static_RC \
18426 lt_prog_compiler_no_builtin_flag_RC \
18427 export_dynamic_flag_spec_RC \
18428 thread_safe_flag_spec_RC \
18429 whole_archive_flag_spec_RC \
18430 enable_shared_with_static_runtimes_RC \
18431 old_archive_cmds_RC \
18432 old_archive_from_new_cmds_RC \
18433 predep_objects_RC \
18434 postdep_objects_RC \
18435 predeps_RC \
18436 postdeps_RC \
18437 compiler_lib_search_path_RC \
18438 archive_cmds_RC \
18439 archive_expsym_cmds_RC \
18440 postinstall_cmds_RC \
18441 postuninstall_cmds_RC \
18442 old_archive_from_expsyms_cmds_RC \
18443 allow_undefined_flag_RC \
18444 no_undefined_flag_RC \
18445 export_symbols_cmds_RC \
18446 hardcode_libdir_flag_spec_RC \
18447 hardcode_libdir_flag_spec_ld_RC \
18448 hardcode_libdir_separator_RC \
18449 hardcode_automatic_RC \
18450 module_cmds_RC \
18451 module_expsym_cmds_RC \
18452 lt_cv_prog_compiler_c_o_RC \
18453 exclude_expsyms_RC \
18454 include_expsyms_RC; do
18455
18456 case $var in
18457 old_archive_cmds_RC | \
18458 old_archive_from_new_cmds_RC | \
18459 archive_cmds_RC | \
18460 archive_expsym_cmds_RC | \
18461 module_cmds_RC | \
18462 module_expsym_cmds_RC | \
18463 old_archive_from_expsyms_cmds_RC | \
18464 export_symbols_cmds_RC | \
18465 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18466 postinstall_cmds | postuninstall_cmds | \
18467 old_postinstall_cmds | old_postuninstall_cmds | \
18468 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18469 # Double-quote double-evaled strings.
18470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18471 ;;
18472 *)
18473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18474 ;;
18475 esac
18476 done
18477
18478 case $lt_echo in
18479 *'\$0 --fallback-echo"')
18480 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18481 ;;
18482 esac
18483
18484cfgfile="$ofile"
18485
18486 cat <<__EOF__ >> "$cfgfile"
18487# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18488
18489# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18490
18491# Shell to use when invoking shell scripts.
18492SHELL=$lt_SHELL
18493
18494# Whether or not to build shared libraries.
18495build_libtool_libs=$enable_shared
18496
18497# Whether or not to build static libraries.
18498build_old_libs=$enable_static
18499
18500# Whether or not to add -lc for building shared libraries.
18501build_libtool_need_lc=$archive_cmds_need_lc_RC
18502
18503# Whether or not to disallow shared libs when runtime libs are static
18504allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18505
18506# Whether or not to optimize for fast installation.
18507fast_install=$enable_fast_install
18508
18509# The host system.
18510host_alias=$host_alias
18511host=$host
18512host_os=$host_os
18513
18514# The build system.
18515build_alias=$build_alias
18516build=$build
18517build_os=$build_os
18518
18519# An echo program that does not interpret backslashes.
18520echo=$lt_echo
18521
18522# The archiver.
18523AR=$lt_AR
18524AR_FLAGS=$lt_AR_FLAGS
18525
18526# A C compiler.
18527LTCC=$lt_LTCC
18528
18529# LTCC compiler flags.
18530LTCFLAGS=$lt_LTCFLAGS
18531
18532# A language-specific compiler.
18533CC=$lt_compiler_RC
18534
18535# Is the compiler the GNU C compiler?
18536with_gcc=$GCC_RC
18537
18538# An ERE matcher.
18539EGREP=$lt_EGREP
18540
18541# The linker used to build libraries.
18542LD=$lt_LD_RC
18543
18544# Whether we need hard or soft links.
18545LN_S=$lt_LN_S
18546
18547# A BSD-compatible nm program.
18548NM=$lt_NM
18549
18550# A symbol stripping program
18551STRIP=$lt_STRIP
18552
18553# Used to examine libraries when file_magic_cmd begins "file"
18554MAGIC_CMD=$MAGIC_CMD
18555
18556# Used on cygwin: DLL creation program.
18557DLLTOOL="$DLLTOOL"
18558
18559# Used on cygwin: object dumper.
18560OBJDUMP="$OBJDUMP"
18561
18562# Used on cygwin: assembler.
18563AS="$AS"
18564
18565# The name of the directory that contains temporary libtool files.
18566objdir=$objdir
18567
18568# How to create reloadable object files.
18569reload_flag=$lt_reload_flag
18570reload_cmds=$lt_reload_cmds
18571
18572# How to pass a linker flag through the compiler.
18573wl=$lt_lt_prog_compiler_wl_RC
18574
18575# Object file suffix (normally "o").
18576objext="$ac_objext"
18577
18578# Old archive suffix (normally "a").
18579libext="$libext"
18580
18581# Shared library suffix (normally ".so").
18582shrext_cmds='$shrext_cmds'
18583
18584# Executable file suffix (normally "").
18585exeext="$exeext"
18586
18587# Additional compiler flags for building library objects.
18588pic_flag=$lt_lt_prog_compiler_pic_RC
18589pic_mode=$pic_mode
18590
18591# What is the maximum length of a command?
18592max_cmd_len=$lt_cv_sys_max_cmd_len
18593
18594# Does compiler simultaneously support -c and -o options?
18595compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18596
18597# Must we lock files when doing compilation?
18598need_locks=$lt_need_locks
18599
18600# Do we need the lib prefix for modules?
18601need_lib_prefix=$need_lib_prefix
18602
18603# Do we need a version for libraries?
18604need_version=$need_version
18605
18606# Whether dlopen is supported.
18607dlopen_support=$enable_dlopen
18608
18609# Whether dlopen of programs is supported.
18610dlopen_self=$enable_dlopen_self
18611
18612# Whether dlopen of statically linked programs is supported.
18613dlopen_self_static=$enable_dlopen_self_static
18614
18615# Compiler flag to prevent dynamic linking.
18616link_static_flag=$lt_lt_prog_compiler_static_RC
18617
18618# Compiler flag to turn off builtin functions.
18619no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18620
18621# Compiler flag to allow reflexive dlopens.
18622export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18623
18624# Compiler flag to generate shared objects directly from archives.
18625whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18626
18627# Compiler flag to generate thread-safe objects.
18628thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18629
18630# Library versioning type.
18631version_type=$version_type
18632
18633# Format of library name prefix.
18634libname_spec=$lt_libname_spec
18635
18636# List of archive names. First name is the real one, the rest are links.
18637# The last name is the one that the linker finds with -lNAME.
18638library_names_spec=$lt_library_names_spec
18639
18640# The coded name of the library, if different from the real name.
18641soname_spec=$lt_soname_spec
18642
18643# Commands used to build and install an old-style archive.
18644RANLIB=$lt_RANLIB
18645old_archive_cmds=$lt_old_archive_cmds_RC
18646old_postinstall_cmds=$lt_old_postinstall_cmds
18647old_postuninstall_cmds=$lt_old_postuninstall_cmds
18648
18649# Create an old-style archive from a shared archive.
18650old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18651
18652# Create a temporary old-style archive to link instead of a shared archive.
18653old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18654
18655# Commands used to build and install a shared archive.
18656archive_cmds=$lt_archive_cmds_RC
18657archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18658postinstall_cmds=$lt_postinstall_cmds
18659postuninstall_cmds=$lt_postuninstall_cmds
18660
18661# Commands used to build a loadable module (assumed same as above if empty)
18662module_cmds=$lt_module_cmds_RC
18663module_expsym_cmds=$lt_module_expsym_cmds_RC
18664
18665# Commands to strip libraries.
18666old_striplib=$lt_old_striplib
18667striplib=$lt_striplib
18668
18669# Dependencies to place before the objects being linked to create a
18670# shared library.
18671predep_objects=$lt_predep_objects_RC
18672
18673# Dependencies to place after the objects being linked to create a
18674# shared library.
18675postdep_objects=$lt_postdep_objects_RC
18676
18677# Dependencies to place before the objects being linked to create a
18678# shared library.
18679predeps=$lt_predeps_RC
18680
18681# Dependencies to place after the objects being linked to create a
18682# shared library.
18683postdeps=$lt_postdeps_RC
18684
18685# The library search path used internally by the compiler when linking
18686# a shared library.
18687compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18688
18689# Method to check whether dependent libraries are shared objects.
18690deplibs_check_method=$lt_deplibs_check_method
18691
18692# Command to use when deplibs_check_method == file_magic.
18693file_magic_cmd=$lt_file_magic_cmd
18694
18695# Flag that allows shared libraries with undefined symbols to be built.
18696allow_undefined_flag=$lt_allow_undefined_flag_RC
18697
18698# Flag that forces no undefined symbols.
18699no_undefined_flag=$lt_no_undefined_flag_RC
18700
18701# Commands used to finish a libtool library installation in a directory.
18702finish_cmds=$lt_finish_cmds
18703
18704# Same as above, but a single script fragment to be evaled but not shown.
18705finish_eval=$lt_finish_eval
18706
18707# Take the output of nm and produce a listing of raw symbols and C names.
18708global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18709
18710# Transform the output of nm in a proper C declaration
18711global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18712
18713# Transform the output of nm in a C name address pair
18714global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18715
18716# This is the shared library runtime path variable.
18717runpath_var=$runpath_var
18718
18719# This is the shared library path variable.
18720shlibpath_var=$shlibpath_var
18721
18722# Is shlibpath searched before the hard-coded library search path?
18723shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18724
18725# How to hardcode a shared library path into an executable.
18726hardcode_action=$hardcode_action_RC
18727
18728# Whether we should hardcode library paths into libraries.
18729hardcode_into_libs=$hardcode_into_libs
18730
18731# Flag to hardcode \$libdir into a binary during linking.
18732# This must work even if \$libdir does not exist.
18733hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18734
18735# If ld is used when linking, flag to hardcode \$libdir into
18736# a binary during linking. This must work even if \$libdir does
18737# not exist.
18738hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18739
18740# Whether we need a single -rpath flag with a separated argument.
18741hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18742
18743# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18744# resulting binary.
18745hardcode_direct=$hardcode_direct_RC
18746
18747# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18748# resulting binary.
18749hardcode_minus_L=$hardcode_minus_L_RC
18750
18751# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18752# the resulting binary.
18753hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18754
18755# Set to yes if building a shared library automatically hardcodes DIR into the library
18756# and all subsequent libraries and executables linked against it.
18757hardcode_automatic=$hardcode_automatic_RC
18758
18759# Variables whose values should be saved in libtool wrapper scripts and
18760# restored at relink time.
18761variables_saved_for_relink="$variables_saved_for_relink"
18762
18763# Whether libtool must link a program against all its dependency libraries.
18764link_all_deplibs=$link_all_deplibs_RC
18765
18766# Compile-time system search path for libraries
18767sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18768
18769# Run-time system search path for libraries
18770sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18771
18772# Fix the shell variable \$srcfile for the compiler.
18773fix_srcfile_path="$fix_srcfile_path_RC"
18774
18775# Set to yes if exported symbols are required.
18776always_export_symbols=$always_export_symbols_RC
18777
18778# The commands to list exported symbols.
18779export_symbols_cmds=$lt_export_symbols_cmds_RC
18780
18781# The commands to extract the exported symbol list from a shared archive.
18782extract_expsyms_cmds=$lt_extract_expsyms_cmds
18783
18784# Symbols that should not be listed in the preloaded symbols.
18785exclude_expsyms=$lt_exclude_expsyms_RC
18786
18787# Symbols that must always be exported.
18788include_expsyms=$lt_include_expsyms_RC
18789
18790# ### END LIBTOOL TAG CONFIG: $tagname
18791
18792__EOF__
18793
18794
18795else
18796 # If there is no Makefile yet, we rely on a make rule to execute
18797 # `config.status --recheck' to rerun these tests and create the
18798 # libtool script then.
18799 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18800 if test -f "$ltmain_in"; then
18801 test -f Makefile && make "$ltmain"
18802 fi
18803fi
18804
18805
18806ac_ext=c
18807ac_cpp='$CPP $CPPFLAGS'
18808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18810ac_compiler_gnu=$ac_cv_c_compiler_gnu
18811
18812CC="$lt_save_CC"
18813
18814 ;;
18815
18816 *)
18817 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18818echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18819 { (exit 1); exit 1; }; }
18820 ;;
18821 esac
18822
18823 # Append the new tag name to the list of available tags.
18824 if test -n "$tagname" ; then
18825 available_tags="$available_tags $tagname"
18826 fi
18827 fi
18828 done
18829 IFS="$lt_save_ifs"
18830
18831 # Now substitute the updated list of available tags.
18832 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18833 mv "${ofile}T" "$ofile"
18834 chmod +x "$ofile"
18835 else
18836 rm -f "${ofile}T"
18837 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18838echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18839 { (exit 1); exit 1; }; }
18840 fi
18841fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018842
18843
18844
18845# This can be used to rebuild libtool when needed
18846LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18847
18848# Always use our own libtool.
18849LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18850
18851# Prevent multiple expansion
18852
18853
18854
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018873# Checks for header files.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018874echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18875echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18876if test "${ac_cv_header_stdc+set}" = set; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
18878else
18879 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018880/* confdefs.h. */
18881_ACEOF
18882cat confdefs.h >>conftest.$ac_ext
18883cat >>conftest.$ac_ext <<_ACEOF
18884/* end confdefs.h. */
18885#include <stdlib.h>
18886#include <stdarg.h>
18887#include <string.h>
18888#include <float.h>
18889
18890int
18891main ()
18892{
18893
18894 ;
18895 return 0;
18896}
18897_ACEOF
18898rm -f conftest.$ac_objext
18899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018900 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018901 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018907 { ac_try='test -z "$ac_c_werror_flag"
18908 || test ! -s conftest.err'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; }; then
18920 ac_cv_header_stdc=yes
18921else
18922 echo "$as_me: failed program was:" >&5
18923sed 's/^/| /' conftest.$ac_ext >&5
18924
18925ac_cv_header_stdc=no
18926fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018928
18929if test $ac_cv_header_stdc = yes; then
18930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18931 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018932/* confdefs.h. */
18933_ACEOF
18934cat confdefs.h >>conftest.$ac_ext
18935cat >>conftest.$ac_ext <<_ACEOF
18936/* end confdefs.h. */
18937#include <string.h>
18938
18939_ACEOF
18940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18941 $EGREP "memchr" >/dev/null 2>&1; then
18942 :
18943else
18944 ac_cv_header_stdc=no
18945fi
18946rm -f conftest*
18947
18948fi
18949
18950if test $ac_cv_header_stdc = yes; then
18951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18952 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018953/* confdefs.h. */
18954_ACEOF
18955cat confdefs.h >>conftest.$ac_ext
18956cat >>conftest.$ac_ext <<_ACEOF
18957/* end confdefs.h. */
18958#include <stdlib.h>
18959
18960_ACEOF
18961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18962 $EGREP "free" >/dev/null 2>&1; then
18963 :
18964else
18965 ac_cv_header_stdc=no
18966fi
18967rm -f conftest*
18968
18969fi
18970
18971if test $ac_cv_header_stdc = yes; then
18972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18973 if test "$cross_compiling" = yes; then
18974 :
18975else
18976 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018977/* confdefs.h. */
18978_ACEOF
18979cat confdefs.h >>conftest.$ac_ext
18980cat >>conftest.$ac_ext <<_ACEOF
18981/* end confdefs.h. */
18982#include <ctype.h>
18983#if ((' ' & 0x0FF) == 0x020)
18984# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18985# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18986#else
18987# define ISLOWER(c) \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060018988 (('a' <= (c) && (c) <= 'i') \
18989 || ('j' <= (c) && (c) <= 'r') \
18990 || ('s' <= (c) && (c) <= 'z'))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060018991# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18992#endif
18993
18994#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18995int
18996main ()
18997{
18998 int i;
18999 for (i = 0; i < 256; i++)
19000 if (XOR (islower (i), ISLOWER (i))
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019001 || toupper (i) != TOUPPER (i))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019002 exit(2);
19003 exit (0);
19004}
19005_ACEOF
19006rm -f conftest$ac_exeext
19007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19008 (eval $ac_link) 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 :
19018else
19019 echo "$as_me: program exited with status $ac_status" >&5
19020echo "$as_me: failed program was:" >&5
19021sed 's/^/| /' conftest.$ac_ext >&5
19022
19023( exit $ac_status )
19024ac_cv_header_stdc=no
19025fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019026rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019027fi
19028fi
19029fi
19030echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19031echo "${ECHO_T}$ac_cv_header_stdc" >&6
19032if test $ac_cv_header_stdc = yes; then
19033
19034cat >>confdefs.h <<\_ACEOF
19035#define STDC_HEADERS 1
19036_ACEOF
19037
19038fi
19039
19040
19041
19042
19043
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019044for ac_header in malloc.h stdlib.h string.h strings.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019045do
19046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19047if eval "test \"\${$as_ac_Header+set}\" = set"; then
19048 echo "$as_me:$LINENO: checking for $ac_header" >&5
19049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19050if eval "test \"\${$as_ac_Header+set}\" = set"; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19052fi
19053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19055else
19056 # Is the header compilable?
19057echo "$as_me:$LINENO: checking $ac_header usability" >&5
19058echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19059cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019060/* confdefs.h. */
19061_ACEOF
19062cat confdefs.h >>conftest.$ac_ext
19063cat >>conftest.$ac_ext <<_ACEOF
19064/* end confdefs.h. */
19065$ac_includes_default
19066#include <$ac_header>
19067_ACEOF
19068rm -f conftest.$ac_objext
19069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019070 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019071 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019077 { ac_try='test -z "$ac_c_werror_flag"
19078 || test ! -s conftest.err'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_header_compiler=yes
19091else
19092 echo "$as_me: failed program was:" >&5
19093sed 's/^/| /' conftest.$ac_ext >&5
19094
19095ac_header_compiler=no
19096fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019098echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19099echo "${ECHO_T}$ac_header_compiler" >&6
19100
19101# Is the header present?
19102echo "$as_me:$LINENO: checking $ac_header presence" >&5
19103echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19104cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019105/* confdefs.h. */
19106_ACEOF
19107cat confdefs.h >>conftest.$ac_ext
19108cat >>conftest.$ac_ext <<_ACEOF
19109/* end confdefs.h. */
19110#include <$ac_header>
19111_ACEOF
19112if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } >/dev/null; then
19120 if test -s conftest.err; then
19121 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019123 else
19124 ac_cpp_err=
19125 fi
19126else
19127 ac_cpp_err=yes
19128fi
19129if test -z "$ac_cpp_err"; then
19130 ac_header_preproc=yes
19131else
19132 echo "$as_me: failed program was:" >&5
19133sed 's/^/| /' conftest.$ac_ext >&5
19134
19135 ac_header_preproc=no
19136fi
19137rm -f conftest.err conftest.$ac_ext
19138echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19139echo "${ECHO_T}$ac_header_preproc" >&6
19140
19141# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19143 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19148 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019149 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019150 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019163 (
19164 cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019165## ------------------------------------------------------ ##
19166## Report this to png-mng-implement@lists.sourceforge.net ##
19167## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019168_ASBOX
19169 ) |
19170 sed "s/^/$as_me: WARNING: /" >&2
19171 ;;
19172esac
19173echo "$as_me:$LINENO: checking for $ac_header" >&5
19174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19175if eval "test \"\${$as_ac_Header+set}\" = set"; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19177else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019178 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019179fi
19180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19182
19183fi
19184if test `eval echo '${'$as_ac_Header'}'` = yes; then
19185 cat >>confdefs.h <<_ACEOF
19186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19187_ACEOF
19188
19189fi
19190
19191done
19192
19193
19194# Checks for typedefs, structures, and compiler characteristics.
19195echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19196echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19197if test "${ac_cv_c_const+set}" = set; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19199else
19200 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019201/* confdefs.h. */
19202_ACEOF
19203cat confdefs.h >>conftest.$ac_ext
19204cat >>conftest.$ac_ext <<_ACEOF
19205/* end confdefs.h. */
19206
19207int
19208main ()
19209{
19210/* FIXME: Include the comments suggested by Paul. */
19211#ifndef __cplusplus
19212 /* Ultrix mips cc rejects this. */
19213 typedef int charset[2];
19214 const charset x;
19215 /* SunOS 4.1.1 cc rejects this. */
19216 char const *const *ccp;
19217 char **p;
19218 /* NEC SVR4.0.2 mips cc rejects this. */
19219 struct point {int x, y;};
19220 static struct point const zero = {0,0};
19221 /* AIX XL C 1.02.0.0 rejects this.
19222 It does not let you subtract one const X* pointer from another in
19223 an arm of an if-expression whose if-part is not a constant
19224 expression */
19225 const char *g = "string";
19226 ccp = &g + (g ? g-g : 0);
19227 /* HPUX 7.0 cc rejects these. */
19228 ++ccp;
19229 p = (char**) ccp;
19230 ccp = (char const *const *) p;
19231 { /* SCO 3.2v4 cc rejects this. */
19232 char *t;
19233 char const *s = 0 ? (char *) 0 : (char const *) 0;
19234
19235 *t++ = 0;
19236 }
19237 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19238 int x[] = {25, 17};
19239 const int *foo = &x[0];
19240 ++foo;
19241 }
19242 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19243 typedef const int *iptr;
19244 iptr p = 0;
19245 ++p;
19246 }
19247 { /* AIX XL C 1.02.0.0 rejects this saying
19248 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19249 struct s { int j; const int *ap[3]; };
19250 struct s *b; b->j = 5;
19251 }
19252 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19253 const int foo = 10;
19254 }
19255#endif
19256
19257 ;
19258 return 0;
19259}
19260_ACEOF
19261rm -f conftest.$ac_objext
19262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019263 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019264 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019270 { ac_try='test -z "$ac_c_werror_flag"
19271 || test ! -s conftest.err'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; } &&
19277 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; }; then
19283 ac_cv_c_const=yes
19284else
19285 echo "$as_me: failed program was:" >&5
19286sed 's/^/| /' conftest.$ac_ext >&5
19287
19288ac_cv_c_const=no
19289fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019291fi
19292echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19293echo "${ECHO_T}$ac_cv_c_const" >&6
19294if test $ac_cv_c_const = no; then
19295
19296cat >>confdefs.h <<\_ACEOF
19297#define const
19298_ACEOF
19299
19300fi
19301
19302echo "$as_me:$LINENO: checking for size_t" >&5
19303echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19304if test "${ac_cv_type_size_t+set}" = set; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19306else
19307 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
19313$ac_includes_default
19314int
19315main ()
19316{
19317if ((size_t *) 0)
19318 return 0;
19319if (sizeof (size_t))
19320 return 0;
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext
19326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019327 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019328 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019334 { ac_try='test -z "$ac_c_werror_flag"
19335 || test ! -s conftest.err'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; } &&
19341 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 ac_cv_type_size_t=yes
19348else
19349 echo "$as_me: failed program was:" >&5
19350sed 's/^/| /' conftest.$ac_ext >&5
19351
19352ac_cv_type_size_t=no
19353fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019355fi
19356echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19357echo "${ECHO_T}$ac_cv_type_size_t" >&6
19358if test $ac_cv_type_size_t = yes; then
19359 :
19360else
19361
19362cat >>confdefs.h <<_ACEOF
19363#define size_t unsigned
19364_ACEOF
19365
19366fi
19367
19368echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19369echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19370if test "${ac_cv_struct_tm+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372else
19373 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019374/* confdefs.h. */
19375_ACEOF
19376cat confdefs.h >>conftest.$ac_ext
19377cat >>conftest.$ac_ext <<_ACEOF
19378/* end confdefs.h. */
19379#include <sys/types.h>
19380#include <time.h>
19381
19382int
19383main ()
19384{
19385struct tm *tp; tp->tm_sec;
19386 ;
19387 return 0;
19388}
19389_ACEOF
19390rm -f conftest.$ac_objext
19391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019392 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019393 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019394 grep -v '^ *+' conftest.er1 >conftest.err
19395 rm -f conftest.er1
19396 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019399 { ac_try='test -z "$ac_c_werror_flag"
19400 || test ! -s conftest.err'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_cv_struct_tm=time.h
19413else
19414 echo "$as_me: failed program was:" >&5
19415sed 's/^/| /' conftest.$ac_ext >&5
19416
19417ac_cv_struct_tm=sys/time.h
19418fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019420fi
19421echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19422echo "${ECHO_T}$ac_cv_struct_tm" >&6
19423if test $ac_cv_struct_tm = sys/time.h; then
19424
19425cat >>confdefs.h <<\_ACEOF
19426#define TM_IN_SYS_TIME 1
19427_ACEOF
19428
19429fi
19430
19431
19432# Checks for library functions.
19433
19434for ac_header in stdlib.h
19435do
19436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19437if eval "test \"\${$as_ac_Header+set}\" = set"; then
19438 echo "$as_me:$LINENO: checking for $ac_header" >&5
19439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19440if eval "test \"\${$as_ac_Header+set}\" = set"; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19442fi
19443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19445else
19446 # Is the header compilable?
19447echo "$as_me:$LINENO: checking $ac_header usability" >&5
19448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19449cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019450/* confdefs.h. */
19451_ACEOF
19452cat confdefs.h >>conftest.$ac_ext
19453cat >>conftest.$ac_ext <<_ACEOF
19454/* end confdefs.h. */
19455$ac_includes_default
19456#include <$ac_header>
19457_ACEOF
19458rm -f conftest.$ac_objext
19459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019460 (eval $ac_compile) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019461 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019462 grep -v '^ *+' conftest.er1 >conftest.err
19463 rm -f conftest.er1
19464 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019467 { ac_try='test -z "$ac_c_werror_flag"
19468 || test ! -s conftest.err'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; } &&
19474 { ac_try='test -s conftest.$ac_objext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476 (eval $ac_try) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; }; then
19480 ac_header_compiler=yes
19481else
19482 echo "$as_me: failed program was:" >&5
19483sed 's/^/| /' conftest.$ac_ext >&5
19484
19485ac_header_compiler=no
19486fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19489echo "${ECHO_T}$ac_header_compiler" >&6
19490
19491# Is the header present?
19492echo "$as_me:$LINENO: checking $ac_header presence" >&5
19493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19494cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019495/* confdefs.h. */
19496_ACEOF
19497cat confdefs.h >>conftest.$ac_ext
19498cat >>conftest.$ac_ext <<_ACEOF
19499/* end confdefs.h. */
19500#include <$ac_header>
19501_ACEOF
19502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } >/dev/null; then
19510 if test -s conftest.err; then
19511 ac_cpp_err=$ac_c_preproc_warn_flag
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019513 else
19514 ac_cpp_err=
19515 fi
19516else
19517 ac_cpp_err=yes
19518fi
19519if test -z "$ac_cpp_err"; then
19520 ac_header_preproc=yes
19521else
19522 echo "$as_me: failed program was:" >&5
19523sed 's/^/| /' conftest.$ac_ext >&5
19524
19525 ac_header_preproc=no
19526fi
19527rm -f conftest.err conftest.$ac_ext
19528echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19529echo "${ECHO_T}$ac_header_preproc" >&6
19530
19531# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19533 yes:no: )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19535echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19537echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19538 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019539 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019540 no:yes:* )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19544echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19546echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19548echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19552echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019553 (
19554 cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019555## ------------------------------------------------------ ##
19556## Report this to png-mng-implement@lists.sourceforge.net ##
19557## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019558_ASBOX
19559 ) |
19560 sed "s/^/$as_me: WARNING: /" >&2
19561 ;;
19562esac
19563echo "$as_me:$LINENO: checking for $ac_header" >&5
19564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19565if eval "test \"\${$as_ac_Header+set}\" = set"; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019568 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019569fi
19570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19572
19573fi
19574if test `eval echo '${'$as_ac_Header'}'` = yes; then
19575 cat >>confdefs.h <<_ACEOF
19576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19577_ACEOF
19578
19579fi
19580
19581done
19582
19583echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19584echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19585if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19587else
19588 if test "$cross_compiling" = yes; then
19589 ac_cv_func_malloc_0_nonnull=no
19590else
19591 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019592/* confdefs.h. */
19593_ACEOF
19594cat confdefs.h >>conftest.$ac_ext
19595cat >>conftest.$ac_ext <<_ACEOF
19596/* end confdefs.h. */
19597#if STDC_HEADERS || HAVE_STDLIB_H
19598# include <stdlib.h>
19599#else
19600char *malloc ();
19601#endif
19602
19603int
19604main ()
19605{
19606exit (malloc (0) ? 0 : 1);
19607 ;
19608 return 0;
19609}
19610_ACEOF
19611rm -f conftest$ac_exeext
19612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19613 (eval $ac_link) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19622 ac_cv_func_malloc_0_nonnull=yes
19623else
19624 echo "$as_me: program exited with status $ac_status" >&5
19625echo "$as_me: failed program was:" >&5
19626sed 's/^/| /' conftest.$ac_ext >&5
19627
19628( exit $ac_status )
19629ac_cv_func_malloc_0_nonnull=no
19630fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019631rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019632fi
19633fi
19634echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19635echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19636if test $ac_cv_func_malloc_0_nonnull = yes; then
19637
19638cat >>confdefs.h <<\_ACEOF
19639#define HAVE_MALLOC 1
19640_ACEOF
19641
19642else
19643 cat >>confdefs.h <<\_ACEOF
19644#define HAVE_MALLOC 0
19645_ACEOF
19646
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019647 case $LIBOBJS in
19648 "malloc.$ac_objext" | \
19649 *" malloc.$ac_objext" | \
19650 "malloc.$ac_objext "* | \
19651 *" malloc.$ac_objext "* ) ;;
19652 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
19653esac
19654
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019655
19656cat >>confdefs.h <<\_ACEOF
19657#define malloc rpl_malloc
19658_ACEOF
19659
19660fi
19661
19662
19663
19664echo "$as_me:$LINENO: checking for working strtod" >&5
19665echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
19666if test "${ac_cv_func_strtod+set}" = set; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19668else
19669 if test "$cross_compiling" = yes; then
19670 ac_cv_func_strtod=no
19671else
19672 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019673/* confdefs.h. */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h. */
19678
19679double strtod ();
19680int
19681main()
19682{
19683 {
19684 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
19685 char *string = " +69";
19686 char *term;
19687 double value;
19688 value = strtod (string, &term);
19689 if (value != 69 || term != (string + 4))
19690 exit (1);
19691 }
19692
19693 {
19694 /* Under Solaris 2.4, strtod returns the wrong value for the
19695 terminating character under some conditions. */
19696 char *string = "NaN";
19697 char *term;
19698 strtod (string, &term);
19699 if (term != string && *(term - 1) == 0)
19700 exit (1);
19701 }
19702 exit (0);
19703}
19704
19705_ACEOF
19706rm -f conftest$ac_exeext
19707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19708 (eval $ac_link) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19714 ac_status=$?
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; }; then
19717 ac_cv_func_strtod=yes
19718else
19719 echo "$as_me: program exited with status $ac_status" >&5
19720echo "$as_me: failed program was:" >&5
19721sed 's/^/| /' conftest.$ac_ext >&5
19722
19723( exit $ac_status )
19724ac_cv_func_strtod=no
19725fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019726rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019727fi
19728fi
19729echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
19730echo "${ECHO_T}$ac_cv_func_strtod" >&6
19731if test $ac_cv_func_strtod = no; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019732 case $LIBOBJS in
19733 "strtod.$ac_objext" | \
19734 *" strtod.$ac_objext" | \
19735 "strtod.$ac_objext "* | \
19736 *" strtod.$ac_objext "* ) ;;
19737 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
19738esac
19739
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019740echo "$as_me:$LINENO: checking for pow" >&5
19741echo $ECHO_N "checking for pow... $ECHO_C" >&6
19742if test "${ac_cv_func_pow+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19744else
19745 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019746/* confdefs.h. */
19747_ACEOF
19748cat confdefs.h >>conftest.$ac_ext
19749cat >>conftest.$ac_ext <<_ACEOF
19750/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019751/* Define pow to an innocuous variant, in case <limits.h> declares pow.
19752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19753#define pow innocuous_pow
19754
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019755/* System header to define __stub macros and hopefully few prototypes,
19756 which can conflict with char pow (); below.
19757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19758 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019759
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019760#ifdef __STDC__
19761# include <limits.h>
19762#else
19763# include <assert.h>
19764#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019765
19766#undef pow
19767
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019768/* Override any gcc2 internal prototype to avoid an error. */
19769#ifdef __cplusplus
19770extern "C"
19771{
19772#endif
19773/* We use char because int might match the return type of a gcc2
19774 builtin and then its argument prototype would still apply. */
19775char pow ();
19776/* The GNU C library defines this for functions which it implements
19777 to always fail with ENOSYS. Some functions are actually named
19778 something starting with __ and the normal name is an alias. */
19779#if defined (__stub_pow) || defined (__stub___pow)
19780choke me
19781#else
19782char (*f) () = pow;
19783#endif
19784#ifdef __cplusplus
19785}
19786#endif
19787
19788int
19789main ()
19790{
19791return f != pow;
19792 ;
19793 return 0;
19794}
19795_ACEOF
19796rm -f conftest.$ac_objext conftest$ac_exeext
19797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019798 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019799 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019800 grep -v '^ *+' conftest.er1 >conftest.err
19801 rm -f conftest.er1
19802 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019805 { ac_try='test -z "$ac_c_werror_flag"
19806 || test ! -s conftest.err'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19809 ac_status=$?
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; } &&
19812 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19818 ac_cv_func_pow=yes
19819else
19820 echo "$as_me: failed program was:" >&5
19821sed 's/^/| /' conftest.$ac_ext >&5
19822
19823ac_cv_func_pow=no
19824fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019825rm -f conftest.err conftest.$ac_objext \
19826 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019827fi
19828echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
19829echo "${ECHO_T}$ac_cv_func_pow" >&6
19830
19831if test $ac_cv_func_pow = no; then
19832 echo "$as_me:$LINENO: checking for pow in -lm" >&5
19833echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
19834if test "${ac_cv_lib_m_pow+set}" = set; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19836else
19837 ac_check_lib_save_LIBS=$LIBS
19838LIBS="-lm $LIBS"
19839cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019840/* confdefs.h. */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h. */
19845
19846/* Override any gcc2 internal prototype to avoid an error. */
19847#ifdef __cplusplus
19848extern "C"
19849#endif
19850/* We use char because int might match the return type of a gcc2
19851 builtin and then its argument prototype would still apply. */
19852char pow ();
19853int
19854main ()
19855{
19856pow ();
19857 ;
19858 return 0;
19859}
19860_ACEOF
19861rm -f conftest.$ac_objext conftest$ac_exeext
19862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019863 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019864 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019870 { ac_try='test -z "$ac_c_werror_flag"
19871 || test ! -s conftest.err'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_cv_lib_m_pow=yes
19884else
19885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888ac_cv_lib_m_pow=no
19889fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019890rm -f conftest.err conftest.$ac_objext \
19891 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019892LIBS=$ac_check_lib_save_LIBS
19893fi
19894echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
19895echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
19896if test $ac_cv_lib_m_pow = yes; then
19897 POW_LIB=-lm
19898else
19899 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
19900echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
19901fi
19902
19903fi
19904
19905fi
19906
19907
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019908for ac_func in memset
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019909do
19910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19911echo "$as_me:$LINENO: checking for $ac_func" >&5
19912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19913if eval "test \"\${$as_ac_var+set}\" = set"; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19915else
19916 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019917/* confdefs.h. */
19918_ACEOF
19919cat confdefs.h >>conftest.$ac_ext
19920cat >>conftest.$ac_ext <<_ACEOF
19921/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19924#define $ac_func innocuous_$ac_func
19925
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019926/* System header to define __stub macros and hopefully few prototypes,
19927 which can conflict with char $ac_func (); below.
19928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19929 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019930
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019931#ifdef __STDC__
19932# include <limits.h>
19933#else
19934# include <assert.h>
19935#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019936
19937#undef $ac_func
19938
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019939/* Override any gcc2 internal prototype to avoid an error. */
19940#ifdef __cplusplus
19941extern "C"
19942{
19943#endif
19944/* We use char because int might match the return type of a gcc2
19945 builtin and then its argument prototype would still apply. */
19946char $ac_func ();
19947/* The GNU C library defines this for functions which it implements
19948 to always fail with ENOSYS. Some functions are actually named
19949 something starting with __ and the normal name is an alias. */
19950#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19951choke me
19952#else
19953char (*f) () = $ac_func;
19954#endif
19955#ifdef __cplusplus
19956}
19957#endif
19958
19959int
19960main ()
19961{
19962return f != $ac_func;
19963 ;
19964 return 0;
19965}
19966_ACEOF
19967rm -f conftest.$ac_objext conftest$ac_exeext
19968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019969 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019970 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019976 { ac_try='test -z "$ac_c_werror_flag"
19977 || test ! -s conftest.err'
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; } &&
19983 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989 eval "$as_ac_var=yes"
19990else
19991 echo "$as_me: failed program was:" >&5
19992sed 's/^/| /' conftest.$ac_ext >&5
19993
19994eval "$as_ac_var=no"
19995fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060019996rm -f conftest.err conftest.$ac_objext \
19997 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060019998fi
19999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20001if test `eval echo '${'$as_ac_var'}'` = yes; then
20002 cat >>confdefs.h <<_ACEOF
20003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20004_ACEOF
20005
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020006else
20007 { { echo "$as_me:$LINENO: error: memset not found in libc" >&5
20008echo "$as_me: error: memset not found in libc" >&2;}
20009 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020010fi
20011done
20012
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020013
20014for ac_func in pow
20015do
20016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20017echo "$as_me:$LINENO: checking for $ac_func" >&5
20018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20019if eval "test \"\${$as_ac_var+set}\" = set"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021else
20022 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020023/* confdefs.h. */
20024_ACEOF
20025cat confdefs.h >>conftest.$ac_ext
20026cat >>conftest.$ac_ext <<_ACEOF
20027/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20030#define $ac_func innocuous_$ac_func
20031
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020032/* System header to define __stub macros and hopefully few prototypes,
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020033 which can conflict with char $ac_func (); below.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20035 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020036
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020037#ifdef __STDC__
20038# include <limits.h>
20039#else
20040# include <assert.h>
20041#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020042
20043#undef $ac_func
20044
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020045/* Override any gcc2 internal prototype to avoid an error. */
20046#ifdef __cplusplus
20047extern "C"
20048{
20049#endif
20050/* We use char because int might match the return type of a gcc2
20051 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020052char $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020053/* The GNU C library defines this for functions which it implements
20054 to always fail with ENOSYS. Some functions are actually named
20055 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020057choke me
20058#else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020059char (*f) () = $ac_func;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020060#endif
20061#ifdef __cplusplus
20062}
20063#endif
20064
20065int
20066main ()
20067{
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020068return f != $ac_func;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020069 ;
20070 return 0;
20071}
20072_ACEOF
20073rm -f conftest.$ac_objext conftest$ac_exeext
20074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020075 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020076 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020077 grep -v '^ *+' conftest.er1 >conftest.err
20078 rm -f conftest.er1
20079 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020082 { ac_try='test -z "$ac_c_werror_flag"
20083 || test ! -s conftest.err'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; } &&
20089 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020095 eval "$as_ac_var=yes"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020096else
20097 echo "$as_me: failed program was:" >&5
20098sed 's/^/| /' conftest.$ac_ext >&5
20099
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020100eval "$as_ac_var=no"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020101fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020102rm -f conftest.err conftest.$ac_objext \
20103 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020104fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20106echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20107if test `eval echo '${'$as_ac_var'}'` = yes; then
20108 cat >>confdefs.h <<_ACEOF
20109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20110_ACEOF
20111
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020112else
20113
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020114echo "$as_me:$LINENO: checking for pow in -lm" >&5
20115echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
20116if test "${ac_cv_lib_m_pow+set}" = set; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020117 echo $ECHO_N "(cached) $ECHO_C" >&6
20118else
20119 ac_check_lib_save_LIBS=$LIBS
20120LIBS="-lm $LIBS"
20121cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020122/* confdefs.h. */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
20126/* end confdefs.h. */
20127
20128/* Override any gcc2 internal prototype to avoid an error. */
20129#ifdef __cplusplus
20130extern "C"
20131#endif
20132/* We use char because int might match the return type of a gcc2
20133 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020134char pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020135int
20136main ()
20137{
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020138pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020139 ;
20140 return 0;
20141}
20142_ACEOF
20143rm -f conftest.$ac_objext conftest$ac_exeext
20144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020145 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020146 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020147 grep -v '^ *+' conftest.er1 >conftest.err
20148 rm -f conftest.er1
20149 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020152 { ac_try='test -z "$ac_c_werror_flag"
20153 || test ! -s conftest.err'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; } &&
20159 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161 (eval $ac_try) 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020165 ac_cv_lib_m_pow=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020166else
20167 echo "$as_me: failed program was:" >&5
20168sed 's/^/| /' conftest.$ac_ext >&5
20169
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020170ac_cv_lib_m_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020171fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020172rm -f conftest.err conftest.$ac_objext \
20173 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020174LIBS=$ac_check_lib_save_LIBS
20175fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020176echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20177echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
20178if test $ac_cv_lib_m_pow = yes; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020179 cat >>confdefs.h <<_ACEOF
20180#define HAVE_LIBM 1
20181_ACEOF
20182
20183 LIBS="-lm $LIBS"
20184
20185else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020186 { { echo "$as_me:$LINENO: error: cannot find pow" >&5
20187echo "$as_me: error: cannot find pow" >&2;}
20188 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020189fi
20190
20191fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020192done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020193
20194
20195echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
20196echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
20197if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20199else
20200 ac_check_lib_save_LIBS=$LIBS
20201LIBS="-lz $LIBS"
20202cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020203/* confdefs.h. */
20204_ACEOF
20205cat confdefs.h >>conftest.$ac_ext
20206cat >>conftest.$ac_ext <<_ACEOF
20207/* end confdefs.h. */
20208
20209/* Override any gcc2 internal prototype to avoid an error. */
20210#ifdef __cplusplus
20211extern "C"
20212#endif
20213/* We use char because int might match the return type of a gcc2
20214 builtin and then its argument prototype would still apply. */
20215char zlibVersion ();
20216int
20217main ()
20218{
20219zlibVersion ();
20220 ;
20221 return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext conftest$ac_exeext
20225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020226 (eval $ac_link) 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020227 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest$ac_exeext'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_lib_z_zlibVersion=yes
20247else
20248 echo "$as_me: failed program was:" >&5
20249sed 's/^/| /' conftest.$ac_ext >&5
20250
20251ac_cv_lib_z_zlibVersion=no
20252fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020253rm -f conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020255LIBS=$ac_check_lib_save_LIBS
20256fi
20257echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
20258echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
20259if test $ac_cv_lib_z_zlibVersion = yes; then
20260 cat >>confdefs.h <<_ACEOF
20261#define HAVE_LIBZ 1
20262_ACEOF
20263
20264 LIBS="-lz $LIBS"
20265
20266else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020267 { { echo "$as_me:$LINENO: error: zlib not installed" >&5
20268echo "$as_me: error: zlib not installed" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020269 { (exit 1); exit 1; }; }
20270fi
20271
20272
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020273# Substitutions for .in files
20274
20275
20276
20277
20278# Additional arguments (and substitutions)
20279# Allow the pkg-config directory to be set
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020280
20281# Check whether --with-pkgconfigdir or --without-pkgconfigdir was given.
20282if test "${with_pkgconfigdir+set}" = set; then
20283 withval="$with_pkgconfigdir"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020284 pkgconfigdir=${withval}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020285else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020286 pkgconfigdir='${libdir}/pkgconfig'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020287fi;
20288
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020289
20290{ echo "$as_me:$LINENO: pkgconfig directory is ${pkgconfigdir}" >&5
20291echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
20292
20293# Make the *-config binary config scripts optional
20294
20295# Check whether --with-binconfigs or --without-binconfigs was given.
20296if test "${with_binconfigs+set}" = set; then
20297 withval="$with_binconfigs"
20298 if test "${withval}" = no; then
20299 binconfigs=
20300 { echo "$as_me:$LINENO: libpng-config scripts will not be built" >&5
20301echo "$as_me: libpng-config scripts will not be built" >&6;}
20302 else
20303 binconfigs='${binconfigs}'
20304 fi
20305else
20306 binconfigs='${binconfigs}'
20307fi;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020308
20309
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020310# Allow the old version number library, libpng.so, to be removed from
20311# the build
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020312
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020313# Check whether --with-libpng-compat or --without-libpng-compat was given.
20314if test "${with_libpng_compat+set}" = set; then
20315 withval="$with_libpng_compat"
20316 if test "${withval}" = no; then
20317 compatlib=
20318 { echo "$as_me:$LINENO: libpng.so will not be build" >&5
20319echo "$as_me: libpng.so will not be build" >&6;}
20320 else
20321 compatlib=libpng.la
20322 fi
20323else
20324 compatlib=libpng.la
20325fi;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020326
20327
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020328# Config files, substituting as above
20329 ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc.in"
20330
20331 ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
20332
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020333
20334cat >confcache <<\_ACEOF
20335# This file is a shell script that caches the results of configure
20336# tests run on this system so they can be shared between configure
20337# scripts and configure runs, see configure's option --config-cache.
20338# It is not useful on other systems. If it contains results you don't
20339# want to keep, you may remove or edit it.
20340#
20341# config.status only pays attention to the cache file if you give it
20342# the --recheck option to rerun configure.
20343#
20344# `ac_cv_env_foo' variables (set or unset) will be overridden when
20345# loading this file, other *unset* `ac_cv_foo' will be assigned the
20346# following values.
20347
20348_ACEOF
20349
20350# The following way of writing the cache mishandles newlines in values,
20351# but we know of no workaround that is simple, portable, and efficient.
20352# So, don't put newlines in cache variables' values.
20353# Ultrix sh set writes to stderr and can't be redirected directly,
20354# and sets the high bit in the cache file unless we assign to the vars.
20355{
20356 (set) 2>&1 |
20357 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20358 *ac_space=\ *)
20359 # `set' does not quote correctly, so add quotes (double-quote
20360 # substitution turns \\\\ into \\, and sed turns \\ into \).
20361 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020362 "s/'/'\\\\''/g;
20363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020364 ;;
20365 *)
20366 # `set' quotes correctly as required by POSIX, so do not add quotes.
20367 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020368 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020369 ;;
20370 esac;
20371} |
20372 sed '
20373 t clear
20374 : clear
20375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20376 t end
20377 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20378 : end' >>confcache
20379if diff $cache_file confcache >/dev/null 2>&1; then :; else
20380 if test -w $cache_file; then
20381 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20382 cat confcache >$cache_file
20383 else
20384 echo "not updating unwritable cache $cache_file"
20385 fi
20386fi
20387rm -f confcache
20388
20389test "x$prefix" = xNONE && prefix=$ac_default_prefix
20390# Let make expand exec_prefix.
20391test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20392
20393# VPATH may cause trouble with some makes, so we remove $(srcdir),
20394# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20395# trailing colons and then remove the whole line if VPATH becomes empty
20396# (actually we leave an empty line to preserve line numbers).
20397if test "x$srcdir" = x.; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020399s/:*\$(srcdir):*/:/;
20400s/:*\${srcdir}:*/:/;
20401s/:*@srcdir@:*/:/;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020402s/^\([^=]*=[ ]*\):*/\1/;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020403s/:*$//;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020404s/^[^=]*=[ ]*$//;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020405}'
20406fi
20407
20408DEFS=-DHAVE_CONFIG_H
20409
20410ac_libobjs=
20411ac_ltlibobjs=
20412for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20413 # 1. Remove the extension, and $U if already installed.
20414 ac_i=`echo "$ac_i" |
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020415 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020416 # 2. Add them.
20417 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20418 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20419done
20420LIBOBJS=$ac_libobjs
20421
20422LTLIBOBJS=$ac_ltlibobjs
20423
20424
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020425if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20426 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20427Usually this means the macro was only invoked conditionally." >&5
20428echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20429Usually this means the macro was only invoked conditionally." >&2;}
20430 { (exit 1); exit 1; }; }
20431fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020432if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20433 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20434Usually this means the macro was only invoked conditionally." >&5
20435echo "$as_me: error: conditional \"AMDEP\" was never defined.
20436Usually this means the macro was only invoked conditionally." >&2;}
20437 { (exit 1); exit 1; }; }
20438fi
20439if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20440 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20441Usually this means the macro was only invoked conditionally." >&5
20442echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20443Usually this means the macro was only invoked conditionally." >&2;}
20444 { (exit 1); exit 1; }; }
20445fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020446if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20447 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20448Usually this means the macro was only invoked conditionally." >&5
20449echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20450Usually this means the macro was only invoked conditionally." >&2;}
20451 { (exit 1); exit 1; }; }
20452fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020453
20454: ${CONFIG_STATUS=./config.status}
20455ac_clean_files_save=$ac_clean_files
20456ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20457{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20458echo "$as_me: creating $CONFIG_STATUS" >&6;}
20459cat >$CONFIG_STATUS <<_ACEOF
20460#! $SHELL
20461# Generated by $as_me.
20462# Run this file to recreate the current configuration.
20463# Compiler output produced by configure, useful for debugging
20464# configure, is in config.log if it exists.
20465
20466debug=false
20467ac_cs_recheck=false
20468ac_cs_silent=false
20469SHELL=\${CONFIG_SHELL-$SHELL}
20470_ACEOF
20471
20472cat >>$CONFIG_STATUS <<\_ACEOF
20473## --------------------- ##
20474## M4sh Initialization. ##
20475## --------------------- ##
20476
20477# Be Bourne compatible
20478if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20479 emulate sh
20480 NULLCMD=:
20481 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20482 # is contrary to our usage. Disable this feature.
20483 alias -g '${1+"$@"}'='"$@"'
20484elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20485 set -o posix
20486fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020487DUALCASE=1; export DUALCASE # for MKS sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020488
20489# Support unset when possible.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020490if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020491 as_unset=unset
20492else
20493 as_unset=false
20494fi
20495
20496
20497# Work around bugs in pre-3.0 UWIN ksh.
20498$as_unset ENV MAIL MAILPATH
20499PS1='$ '
20500PS2='> '
20501PS4='+ '
20502
20503# NLS nuisances.
20504for as_var in \
20505 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20506 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20507 LC_TELEPHONE LC_TIME
20508do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020509 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020510 eval $as_var=C; export $as_var
20511 else
20512 $as_unset $as_var
20513 fi
20514done
20515
20516# Required to use basename.
20517if expr a : '\(a\)' >/dev/null 2>&1; then
20518 as_expr=expr
20519else
20520 as_expr=false
20521fi
20522
20523if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20524 as_basename=basename
20525else
20526 as_basename=false
20527fi
20528
20529
20530# Name of the executable.
20531as_me=`$as_basename "$0" ||
20532$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20533 X"$0" : 'X\(//\)$' \| \
20534 X"$0" : 'X\(/\)$' \| \
20535 . : '\(.\)' 2>/dev/null ||
20536echo X/"$0" |
20537 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20538 /^X\/\(\/\/\)$/{ s//\1/; q; }
20539 /^X\/\(\/\).*/{ s//\1/; q; }
20540 s/.*/./; q'`
20541
20542
20543# PATH needs CR, and LINENO needs CR and PATH.
20544# Avoid depending upon Character Ranges.
20545as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20546as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20547as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20548as_cr_digits='0123456789'
20549as_cr_alnum=$as_cr_Letters$as_cr_digits
20550
20551# The user is always right.
20552if test "${PATH_SEPARATOR+set}" != set; then
20553 echo "#! /bin/sh" >conf$$.sh
20554 echo "exit 0" >>conf$$.sh
20555 chmod +x conf$$.sh
20556 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20557 PATH_SEPARATOR=';'
20558 else
20559 PATH_SEPARATOR=:
20560 fi
20561 rm -f conf$$.sh
20562fi
20563
20564
20565 as_lineno_1=$LINENO
20566 as_lineno_2=$LINENO
20567 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20568 test "x$as_lineno_1" != "x$as_lineno_2" &&
20569 test "x$as_lineno_3" = "x$as_lineno_2" || {
20570 # Find who we are. Look in the path if we contain no path at all
20571 # relative or not.
20572 case $0 in
20573 *[\\/]* ) as_myself=$0 ;;
20574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20575for as_dir in $PATH
20576do
20577 IFS=$as_save_IFS
20578 test -z "$as_dir" && as_dir=.
20579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20580done
20581
20582 ;;
20583 esac
20584 # We did not find ourselves, most probably we were run as `sh COMMAND'
20585 # in which case we are not to be found in the path.
20586 if test "x$as_myself" = x; then
20587 as_myself=$0
20588 fi
20589 if test ! -f "$as_myself"; then
20590 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20591echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20592 { (exit 1); exit 1; }; }
20593 fi
20594 case $CONFIG_SHELL in
20595 '')
20596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20597for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20598do
20599 IFS=$as_save_IFS
20600 test -z "$as_dir" && as_dir=.
20601 for as_base in sh bash ksh sh5; do
20602 case $as_dir in
20603 /*)
20604 if ("$as_dir/$as_base" -c '
20605 as_lineno_1=$LINENO
20606 as_lineno_2=$LINENO
20607 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20608 test "x$as_lineno_1" != "x$as_lineno_2" &&
20609 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20610 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20611 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20612 CONFIG_SHELL=$as_dir/$as_base
20613 export CONFIG_SHELL
20614 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20615 fi;;
20616 esac
20617 done
20618done
20619;;
20620 esac
20621
20622 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20623 # uniformly replaced by the line number. The first 'sed' inserts a
20624 # line-number line before each line; the second 'sed' does the real
20625 # work. The second script uses 'N' to pair each line-number line
20626 # with the numbered line, and appends trailing '-' during
20627 # substitution so that $LINENO is not a special case at line end.
20628 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20629 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20630 sed '=' <$as_myself |
20631 sed '
20632 N
20633 s,$,-,
20634 : loop
20635 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20636 t loop
20637 s,-$,,
20638 s,^['$as_cr_digits']*\n,,
20639 ' >$as_me.lineno &&
20640 chmod +x $as_me.lineno ||
20641 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20642echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20643 { (exit 1); exit 1; }; }
20644
20645 # Don't try to exec as it changes $[0], causing all sort of problems
20646 # (the dirname of $[0] is not the place where we might find the
20647 # original and so on. Autoconf is especially sensible to this).
20648 . ./$as_me.lineno
20649 # Exit status is that of the last command.
20650 exit
20651}
20652
20653
20654case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20655 *c*,-n*) ECHO_N= ECHO_C='
20656' ECHO_T=' ' ;;
20657 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20658 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20659esac
20660
20661if expr a : '\(a\)' >/dev/null 2>&1; then
20662 as_expr=expr
20663else
20664 as_expr=false
20665fi
20666
20667rm -f conf$$ conf$$.exe conf$$.file
20668echo >conf$$.file
20669if ln -s conf$$.file conf$$ 2>/dev/null; then
20670 # We could just check for DJGPP; but this test a) works b) is more generic
20671 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20672 if test -f conf$$.exe; then
20673 # Don't use ln at all; we don't have any links
20674 as_ln_s='cp -p'
20675 else
20676 as_ln_s='ln -s'
20677 fi
20678elif ln conf$$.file conf$$ 2>/dev/null; then
20679 as_ln_s=ln
20680else
20681 as_ln_s='cp -p'
20682fi
20683rm -f conf$$ conf$$.exe conf$$.file
20684
20685if mkdir -p . 2>/dev/null; then
20686 as_mkdir_p=:
20687else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020688 test -d ./-p && rmdir ./-p
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020689 as_mkdir_p=false
20690fi
20691
20692as_executable_p="test -f"
20693
20694# Sed expression to map a string onto a valid CPP name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020695as_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 -060020696
20697# Sed expression to map a string onto a valid variable name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020698as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020699
20700
20701# IFS
20702# We need space, tab and new line, in precisely that order.
20703as_nl='
20704'
20705IFS=" $as_nl"
20706
20707# CDPATH.
20708$as_unset CDPATH
20709
20710exec 6>&1
20711
20712# Open the log real soon, to keep \$[0] and so on meaningful, and to
20713# report actual input values of CONFIG_FILES etc. instead of their
20714# values after options handling. Logging --version etc. is OK.
20715exec 5>>config.log
20716{
20717 echo
20718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20719## Running $as_me. ##
20720_ASBOX
20721} >&5
20722cat >&5 <<_CSEOF
20723
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020724This file was extended by libpng $as_me 1.2.9beta4, which was
20725generated by GNU Autoconf 2.59. Invocation command line was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020726
20727 CONFIG_FILES = $CONFIG_FILES
20728 CONFIG_HEADERS = $CONFIG_HEADERS
20729 CONFIG_LINKS = $CONFIG_LINKS
20730 CONFIG_COMMANDS = $CONFIG_COMMANDS
20731 $ $0 $@
20732
20733_CSEOF
20734echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20735echo >&5
20736_ACEOF
20737
20738# Files that config.status was made for.
20739if test -n "$ac_config_files"; then
20740 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20741fi
20742
20743if test -n "$ac_config_headers"; then
20744 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20745fi
20746
20747if test -n "$ac_config_links"; then
20748 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20749fi
20750
20751if test -n "$ac_config_commands"; then
20752 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20753fi
20754
20755cat >>$CONFIG_STATUS <<\_ACEOF
20756
20757ac_cs_usage="\
20758\`$as_me' instantiates files from templates according to the
20759current configuration.
20760
20761Usage: $0 [OPTIONS] [FILE]...
20762
20763 -h, --help print this help, then exit
20764 -V, --version print version number, then exit
20765 -q, --quiet do not print progress messages
20766 -d, --debug don't remove temporary files
20767 --recheck update $as_me by reconfiguring in the same conditions
20768 --file=FILE[:TEMPLATE]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020769 instantiate the configuration file FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020770 --header=FILE[:TEMPLATE]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020771 instantiate the configuration header FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020772
20773Configuration files:
20774$config_files
20775
20776Configuration headers:
20777$config_headers
20778
20779Configuration commands:
20780$config_commands
20781
20782Report bugs to <bug-autoconf@gnu.org>."
20783_ACEOF
20784
20785cat >>$CONFIG_STATUS <<_ACEOF
20786ac_cs_version="\\
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020787libpng config.status 1.2.9beta4
20788configured by $0, generated by GNU Autoconf 2.59,
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020789 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20790
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020791Copyright (C) 2003 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020792This config.status script is free software; the Free Software Foundation
20793gives unlimited permission to copy, distribute and modify it."
20794srcdir=$srcdir
20795INSTALL="$INSTALL"
20796_ACEOF
20797
20798cat >>$CONFIG_STATUS <<\_ACEOF
20799# If no file are specified by the user, then we need to provide default
20800# value. By we need to know if files were specified by the user.
20801ac_need_defaults=:
20802while test $# != 0
20803do
20804 case $1 in
20805 --*=*)
20806 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20807 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20808 ac_shift=:
20809 ;;
20810 -*)
20811 ac_option=$1
20812 ac_optarg=$2
20813 ac_shift=shift
20814 ;;
20815 *) # This is not an option, so the user has probably given explicit
20816 # arguments.
20817 ac_option=$1
20818 ac_need_defaults=false;;
20819 esac
20820
20821 case $ac_option in
20822 # Handling of the options.
20823_ACEOF
20824cat >>$CONFIG_STATUS <<\_ACEOF
20825 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20826 ac_cs_recheck=: ;;
20827 --version | --vers* | -V )
20828 echo "$ac_cs_version"; exit 0 ;;
20829 --he | --h)
20830 # Conflict between --help and --header
20831 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20832Try \`$0 --help' for more information." >&5
20833echo "$as_me: error: ambiguous option: $1
20834Try \`$0 --help' for more information." >&2;}
20835 { (exit 1); exit 1; }; };;
20836 --help | --hel | -h )
20837 echo "$ac_cs_usage"; exit 0 ;;
20838 --debug | --d* | -d )
20839 debug=: ;;
20840 --file | --fil | --fi | --f )
20841 $ac_shift
20842 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20843 ac_need_defaults=false;;
20844 --header | --heade | --head | --hea )
20845 $ac_shift
20846 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20847 ac_need_defaults=false;;
20848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20850 ac_cs_silent=: ;;
20851
20852 # This is an error.
20853 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20854Try \`$0 --help' for more information." >&5
20855echo "$as_me: error: unrecognized option: $1
20856Try \`$0 --help' for more information." >&2;}
20857 { (exit 1); exit 1; }; } ;;
20858
20859 *) ac_config_targets="$ac_config_targets $1" ;;
20860
20861 esac
20862 shift
20863done
20864
20865ac_configure_extra_args=
20866
20867if $ac_cs_silent; then
20868 exec 6>/dev/null
20869 ac_configure_extra_args="$ac_configure_extra_args --silent"
20870fi
20871
20872_ACEOF
20873cat >>$CONFIG_STATUS <<_ACEOF
20874if \$ac_cs_recheck; then
20875 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20876 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20877fi
20878
20879_ACEOF
20880
20881cat >>$CONFIG_STATUS <<_ACEOF
20882#
20883# INIT-COMMANDS section.
20884#
20885
20886AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20887
20888_ACEOF
20889
20890
20891
20892cat >>$CONFIG_STATUS <<\_ACEOF
20893for ac_config_target in $ac_config_targets
20894do
20895 case "$ac_config_target" in
20896 # Handling of arguments.
20897 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020898 "libpng.pc" ) CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc.in" ;;
20899 "libpng-config" ) CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020900 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20901 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20902 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20903echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20904 { (exit 1); exit 1; }; };;
20905 esac
20906done
20907
20908# If the user did not use the arguments to specify the items to instantiate,
20909# then the envvar interface is used. Set only those that are not.
20910# We use the long form for the default assignment because of an extremely
20911# bizarre bug on SunOS 4.1.3.
20912if $ac_need_defaults; then
20913 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20914 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20916fi
20917
20918# Have a temporary directory for convenience. Make it in the build tree
20919# simply because there is no reason to put it here, and in addition,
20920# creating and moving files from /tmp can sometimes cause problems.
20921# Create a temporary directory, and hook for its removal unless debugging.
20922$debug ||
20923{
20924 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20925 trap '{ (exit 1); exit 1; }' 1 2 13 15
20926}
20927
20928# Create a (secure) tmp directory for tmp files.
20929
20930{
20931 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20932 test -n "$tmp" && test -d "$tmp"
20933} ||
20934{
20935 tmp=./confstat$$-$RANDOM
20936 (umask 077 && mkdir $tmp)
20937} ||
20938{
20939 echo "$me: cannot create a temporary directory in ." >&2
20940 { (exit 1); exit 1; }
20941}
20942
20943_ACEOF
20944
20945cat >>$CONFIG_STATUS <<_ACEOF
20946
20947#
20948# CONFIG_FILES section.
20949#
20950
20951# No need to generate the scripts if there are no CONFIG_FILES.
20952# This happens for instance when ./config.status config.h
20953if test -n "\$CONFIG_FILES"; then
20954 # Protect against being on the right side of a sed subst in config.status.
20955 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20956 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20957s,@SHELL@,$SHELL,;t t
20958s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20959s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20960s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20961s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20962s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20963s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20964s,@exec_prefix@,$exec_prefix,;t t
20965s,@prefix@,$prefix,;t t
20966s,@program_transform_name@,$program_transform_name,;t t
20967s,@bindir@,$bindir,;t t
20968s,@sbindir@,$sbindir,;t t
20969s,@libexecdir@,$libexecdir,;t t
20970s,@datadir@,$datadir,;t t
20971s,@sysconfdir@,$sysconfdir,;t t
20972s,@sharedstatedir@,$sharedstatedir,;t t
20973s,@localstatedir@,$localstatedir,;t t
20974s,@libdir@,$libdir,;t t
20975s,@includedir@,$includedir,;t t
20976s,@oldincludedir@,$oldincludedir,;t t
20977s,@infodir@,$infodir,;t t
20978s,@mandir@,$mandir,;t t
20979s,@build_alias@,$build_alias,;t t
20980s,@host_alias@,$host_alias,;t t
20981s,@target_alias@,$target_alias,;t t
20982s,@DEFS@,$DEFS,;t t
20983s,@ECHO_C@,$ECHO_C,;t t
20984s,@ECHO_N@,$ECHO_N,;t t
20985s,@ECHO_T@,$ECHO_T,;t t
20986s,@LIBS@,$LIBS,;t t
20987s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20988s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20989s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20990s,@CYGPATH_W@,$CYGPATH_W,;t t
20991s,@PACKAGE@,$PACKAGE,;t t
20992s,@VERSION@,$VERSION,;t t
20993s,@ACLOCAL@,$ACLOCAL,;t t
20994s,@AUTOCONF@,$AUTOCONF,;t t
20995s,@AUTOMAKE@,$AUTOMAKE,;t t
20996s,@AUTOHEADER@,$AUTOHEADER,;t t
20997s,@MAKEINFO@,$MAKEINFO,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060020998s,@install_sh@,$install_sh,;t t
20999s,@STRIP@,$STRIP,;t t
21000s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21001s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021002s,@mkdir_p@,$mkdir_p,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021003s,@AWK@,$AWK,;t t
21004s,@SET_MAKE@,$SET_MAKE,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021005s,@am__leading_dot@,$am__leading_dot,;t t
21006s,@AMTAR@,$AMTAR,;t t
21007s,@am__tar@,$am__tar,;t t
21008s,@am__untar@,$am__untar,;t t
21009s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21010s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21011s,@MAINT@,$MAINT,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021012s,@CC@,$CC,;t t
21013s,@CFLAGS@,$CFLAGS,;t t
21014s,@LDFLAGS@,$LDFLAGS,;t t
21015s,@CPPFLAGS@,$CPPFLAGS,;t t
21016s,@ac_ct_CC@,$ac_ct_CC,;t t
21017s,@EXEEXT@,$EXEEXT,;t t
21018s,@OBJEXT@,$OBJEXT,;t t
21019s,@DEPDIR@,$DEPDIR,;t t
21020s,@am__include@,$am__include,;t t
21021s,@am__quote@,$am__quote,;t t
21022s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21023s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21024s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21025s,@CCDEPMODE@,$CCDEPMODE,;t t
21026s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21027s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021028s,@LN_S@,$LN_S,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021029s,@build@,$build,;t t
21030s,@build_cpu@,$build_cpu,;t t
21031s,@build_vendor@,$build_vendor,;t t
21032s,@build_os@,$build_os,;t t
21033s,@host@,$host,;t t
21034s,@host_cpu@,$host_cpu,;t t
21035s,@host_vendor@,$host_vendor,;t t
21036s,@host_os@,$host_os,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021037s,@EGREP@,$EGREP,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021038s,@ECHO@,$ECHO,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021039s,@AR@,$AR,;t t
21040s,@ac_ct_AR@,$ac_ct_AR,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021041s,@RANLIB@,$RANLIB,;t t
21042s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21043s,@CPP@,$CPP,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021044s,@CXX@,$CXX,;t t
21045s,@CXXFLAGS@,$CXXFLAGS,;t t
21046s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21047s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21048s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21049s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21050s,@CXXCPP@,$CXXCPP,;t t
21051s,@F77@,$F77,;t t
21052s,@FFLAGS@,$FFLAGS,;t t
21053s,@ac_ct_F77@,$ac_ct_F77,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021054s,@LIBTOOL@,$LIBTOOL,;t t
21055s,@LIBOBJS@,$LIBOBJS,;t t
21056s,@POW_LIB@,$POW_LIB,;t t
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021057s,@PNGLIB_VERSION@,$PNGLIB_VERSION,;t t
21058s,@PNGLIB_MAJOR@,$PNGLIB_MAJOR,;t t
21059s,@PNGLIB_MINOR@,$PNGLIB_MINOR,;t t
21060s,@pkgconfigdir@,$pkgconfigdir,;t t
21061s,@binconfigs@,$binconfigs,;t t
21062s,@compatlib@,$compatlib,;t t
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021063s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21064CEOF
21065
21066_ACEOF
21067
21068 cat >>$CONFIG_STATUS <<\_ACEOF
21069 # Split the substitutions into bite-sized pieces for seds with
21070 # small command number limits, like on Digital OSF/1 and HP-UX.
21071 ac_max_sed_lines=48
21072 ac_sed_frag=1 # Number of current file.
21073 ac_beg=1 # First line for current file.
21074 ac_end=$ac_max_sed_lines # Line after last line for current file.
21075 ac_more_lines=:
21076 ac_sed_cmds=
21077 while $ac_more_lines; do
21078 if test $ac_beg -gt 1; then
21079 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21080 else
21081 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21082 fi
21083 if test ! -s $tmp/subs.frag; then
21084 ac_more_lines=false
21085 else
21086 # The purpose of the label and of the branching condition is to
21087 # speed up the sed processing (if there are no `@' at all, there
21088 # is no need to browse any of the substitutions).
21089 # These are the two extra sed commands mentioned above.
21090 (echo ':t
21091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21092 if test -z "$ac_sed_cmds"; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021093 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021094 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021095 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021096 fi
21097 ac_sed_frag=`expr $ac_sed_frag + 1`
21098 ac_beg=$ac_end
21099 ac_end=`expr $ac_end + $ac_max_sed_lines`
21100 fi
21101 done
21102 if test -z "$ac_sed_cmds"; then
21103 ac_sed_cmds=cat
21104 fi
21105fi # test -n "$CONFIG_FILES"
21106
21107_ACEOF
21108cat >>$CONFIG_STATUS <<\_ACEOF
21109for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21110 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21111 case $ac_file in
21112 - | *:- | *:-:* ) # input from stdin
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021113 cat >$tmp/stdin
21114 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21115 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021116 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021117 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021118 * ) ac_file_in=$ac_file.in ;;
21119 esac
21120
21121 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21122 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21123$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021124 X"$ac_file" : 'X\(//\)[^/]' \| \
21125 X"$ac_file" : 'X\(//\)$' \| \
21126 X"$ac_file" : 'X\(/\)' \| \
21127 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021128echo X"$ac_file" |
21129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21131 /^X\(\/\/\)$/{ s//\1/; q; }
21132 /^X\(\/\).*/{ s//\1/; q; }
21133 s/.*/./; q'`
21134 { if $as_mkdir_p; then
21135 mkdir -p "$ac_dir"
21136 else
21137 as_dir="$ac_dir"
21138 as_dirs=
21139 while test ! -d "$as_dir"; do
21140 as_dirs="$as_dir $as_dirs"
21141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21142$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021143 X"$as_dir" : 'X\(//\)[^/]' \| \
21144 X"$as_dir" : 'X\(//\)$' \| \
21145 X"$as_dir" : 'X\(/\)' \| \
21146 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021147echo X"$as_dir" |
21148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21150 /^X\(\/\/\)$/{ s//\1/; q; }
21151 /^X\(\/\).*/{ s//\1/; q; }
21152 s/.*/./; q'`
21153 done
21154 test ! -n "$as_dirs" || mkdir $as_dirs
21155 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21156echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21157 { (exit 1); exit 1; }; }; }
21158
21159 ac_builddir=.
21160
21161if test "$ac_dir" != .; then
21162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21163 # A "../" for each directory in $ac_dir_suffix.
21164 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21165else
21166 ac_dir_suffix= ac_top_builddir=
21167fi
21168
21169case $srcdir in
21170 .) # No --srcdir option. We are building in place.
21171 ac_srcdir=.
21172 if test -z "$ac_top_builddir"; then
21173 ac_top_srcdir=.
21174 else
21175 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21176 fi ;;
21177 [\\/]* | ?:[\\/]* ) # Absolute path.
21178 ac_srcdir=$srcdir$ac_dir_suffix;
21179 ac_top_srcdir=$srcdir ;;
21180 *) # Relative path.
21181 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21182 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21183esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021184
21185# Do not use `cd foo && pwd` to compute absolute paths, because
21186# the directories may not exist.
21187case `pwd` in
21188.) ac_abs_builddir="$ac_dir";;
21189*)
21190 case "$ac_dir" in
21191 .) ac_abs_builddir=`pwd`;;
21192 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21193 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21194 esac;;
21195esac
21196case $ac_abs_builddir in
21197.) ac_abs_top_builddir=${ac_top_builddir}.;;
21198*)
21199 case ${ac_top_builddir}. in
21200 .) ac_abs_top_builddir=$ac_abs_builddir;;
21201 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21202 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21203 esac;;
21204esac
21205case $ac_abs_builddir in
21206.) ac_abs_srcdir=$ac_srcdir;;
21207*)
21208 case $ac_srcdir in
21209 .) ac_abs_srcdir=$ac_abs_builddir;;
21210 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21211 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21212 esac;;
21213esac
21214case $ac_abs_builddir in
21215.) ac_abs_top_srcdir=$ac_top_srcdir;;
21216*)
21217 case $ac_top_srcdir in
21218 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21219 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21220 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21221 esac;;
21222esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021223
21224
21225 case $INSTALL in
21226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21227 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21228 esac
21229
21230 if test x"$ac_file" != x-; then
21231 { echo "$as_me:$LINENO: creating $ac_file" >&5
21232echo "$as_me: creating $ac_file" >&6;}
21233 rm -f "$ac_file"
21234 fi
21235 # Let's still pretend it is `configure' which instantiates (i.e., don't
21236 # use $as_me), people would be surprised to read:
21237 # /* config.h. Generated by config.status. */
21238 if test x"$ac_file" = x-; then
21239 configure_input=
21240 else
21241 configure_input="$ac_file. "
21242 fi
21243 configure_input=$configure_input"Generated from `echo $ac_file_in |
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021244 sed 's,.*/,,'` by configure."
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021245
21246 # First look for the input files in the build tree, otherwise in the
21247 # src tree.
21248 ac_file_inputs=`IFS=:
21249 for f in $ac_file_in; do
21250 case $f in
21251 -) echo $tmp/stdin ;;
21252 [\\/$]*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021253 # Absolute (can't be DOS-style, as IFS=:)
21254 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021255echo "$as_me: error: cannot find input file: $f" >&2;}
21256 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021257 echo "$f";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021258 *) # Relative
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021259 if test -f "$f"; then
21260 # Build tree
21261 echo "$f"
21262 elif test -f "$srcdir/$f"; then
21263 # Source tree
21264 echo "$srcdir/$f"
21265 else
21266 # /dev/null tree
21267 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021268echo "$as_me: error: cannot find input file: $f" >&2;}
21269 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021270 fi;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021271 esac
21272 done` || { (exit 1); exit 1; }
21273_ACEOF
21274cat >>$CONFIG_STATUS <<_ACEOF
21275 sed "$ac_vpsub
21276$extrasub
21277_ACEOF
21278cat >>$CONFIG_STATUS <<\_ACEOF
21279:t
21280/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21281s,@configure_input@,$configure_input,;t t
21282s,@srcdir@,$ac_srcdir,;t t
21283s,@abs_srcdir@,$ac_abs_srcdir,;t t
21284s,@top_srcdir@,$ac_top_srcdir,;t t
21285s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21286s,@builddir@,$ac_builddir,;t t
21287s,@abs_builddir@,$ac_abs_builddir,;t t
21288s,@top_builddir@,$ac_top_builddir,;t t
21289s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21290s,@INSTALL@,$ac_INSTALL,;t t
21291" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21292 rm -f $tmp/stdin
21293 if test x"$ac_file" != x-; then
21294 mv $tmp/out $ac_file
21295 else
21296 cat $tmp/out
21297 rm -f $tmp/out
21298 fi
21299
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021300 # Run the commands associated with the file.
21301 case $ac_file in
21302 libpng-config ) chmod +x libpng-config ;;
21303 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021304done
21305_ACEOF
21306cat >>$CONFIG_STATUS <<\_ACEOF
21307
21308#
21309# CONFIG_HEADER section.
21310#
21311
21312# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21313# NAME is the cpp macro being defined and VALUE is the value it is being given.
21314#
21315# ac_d sets the value in "#define NAME VALUE" lines.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021316ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21317ac_dB='[ ].*$,\1#\2'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021318ac_dC=' '
21319ac_dD=',;t'
21320# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021321ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021322ac_uB='$,\1#\2define\3'
21323ac_uC=' '
21324ac_uD=',;t'
21325
21326for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21328 case $ac_file in
21329 - | *:- | *:-:* ) # input from stdin
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021330 cat >$tmp/stdin
21331 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021333 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021334 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021335 * ) ac_file_in=$ac_file.in ;;
21336 esac
21337
21338 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21339echo "$as_me: creating $ac_file" >&6;}
21340
21341 # First look for the input files in the build tree, otherwise in the
21342 # src tree.
21343 ac_file_inputs=`IFS=:
21344 for f in $ac_file_in; do
21345 case $f in
21346 -) echo $tmp/stdin ;;
21347 [\\/$]*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021348 # Absolute (can't be DOS-style, as IFS=:)
21349 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021350echo "$as_me: error: cannot find input file: $f" >&2;}
21351 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021352 # Do quote $f, to prevent DOS paths from being IFS'd.
21353 echo "$f";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021354 *) # Relative
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021355 if test -f "$f"; then
21356 # Build tree
21357 echo "$f"
21358 elif test -f "$srcdir/$f"; then
21359 # Source tree
21360 echo "$srcdir/$f"
21361 else
21362 # /dev/null tree
21363 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021364echo "$as_me: error: cannot find input file: $f" >&2;}
21365 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021366 fi;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021367 esac
21368 done` || { (exit 1); exit 1; }
21369 # Remove the trailing spaces.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021370 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021371
21372_ACEOF
21373
21374# Transform confdefs.h into two sed scripts, `conftest.defines' and
21375# `conftest.undefs', that substitutes the proper values into
21376# config.h.in to produce config.h. The first handles `#define'
21377# templates, and the second `#undef' templates.
21378# And first: Protect against being on the right side of a sed subst in
21379# config.status. Protect against being in an unquoted here document
21380# in config.status.
21381rm -f conftest.defines conftest.undefs
21382# Using a here document instead of a string reduces the quoting nightmare.
21383# Putting comments in sed scripts is not portable.
21384#
21385# `end' is used to avoid that the second main sed command (meant for
21386# 0-ary CPP macros) applies to n-ary macro definitions.
21387# See the Autoconf documentation for `clear'.
21388cat >confdef2sed.sed <<\_ACEOF
21389s/[\\&,]/\\&/g
21390s,[\\$`],\\&,g
21391t clear
21392: clear
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021393s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021394t end
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021395s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021396: end
21397_ACEOF
21398# If some macros were called several times there might be several times
21399# the same #defines, which is useless. Nevertheless, we may not want to
21400# sort them, since we want the *last* AC-DEFINE to be honored.
21401uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21402sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21403rm -f confdef2sed.sed
21404
21405# This sed command replaces #undef with comments. This is necessary, for
21406# example, in the case of _POSIX_SOURCE, which is predefined and required
21407# on some systems where configure will not decide to define it.
21408cat >>conftest.undefs <<\_ACEOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021409s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021410_ACEOF
21411
21412# Break up conftest.defines because some shells have a limit on the size
21413# of here documents, and old seds have small limits too (100 cmds).
21414echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021415echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021416echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21417echo ' :' >>$CONFIG_STATUS
21418rm -f conftest.tail
21419while grep . conftest.defines >/dev/null
21420do
21421 # Write a limited-size here document to $tmp/defines.sed.
21422 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21423 # Speed up: don't consider the non `#define' lines.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021424 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021425 # Work around the forget-to-reset-the-flag bug.
21426 echo 't clr' >>$CONFIG_STATUS
21427 echo ': clr' >>$CONFIG_STATUS
21428 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21429 echo 'CEOF
21430 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21431 rm -f $tmp/in
21432 mv $tmp/out $tmp/in
21433' >>$CONFIG_STATUS
21434 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21435 rm -f conftest.defines
21436 mv conftest.tail conftest.defines
21437done
21438rm -f conftest.defines
21439echo ' fi # grep' >>$CONFIG_STATUS
21440echo >>$CONFIG_STATUS
21441
21442# Break up conftest.undefs because some shells have a limit on the size
21443# of here documents, and old seds have small limits too (100 cmds).
21444echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21445rm -f conftest.tail
21446while grep . conftest.undefs >/dev/null
21447do
21448 # Write a limited-size here document to $tmp/undefs.sed.
21449 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21450 # Speed up: don't consider the non `#undef'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021451 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021452 # Work around the forget-to-reset-the-flag bug.
21453 echo 't clr' >>$CONFIG_STATUS
21454 echo ': clr' >>$CONFIG_STATUS
21455 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21456 echo 'CEOF
21457 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21458 rm -f $tmp/in
21459 mv $tmp/out $tmp/in
21460' >>$CONFIG_STATUS
21461 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21462 rm -f conftest.undefs
21463 mv conftest.tail conftest.undefs
21464done
21465rm -f conftest.undefs
21466
21467cat >>$CONFIG_STATUS <<\_ACEOF
21468 # Let's still pretend it is `configure' which instantiates (i.e., don't
21469 # use $as_me), people would be surprised to read:
21470 # /* config.h. Generated by config.status. */
21471 if test x"$ac_file" = x-; then
21472 echo "/* Generated by configure. */" >$tmp/config.h
21473 else
21474 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21475 fi
21476 cat $tmp/in >>$tmp/config.h
21477 rm -f $tmp/in
21478 if test x"$ac_file" != x-; then
21479 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21480 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21481echo "$as_me: $ac_file is unchanged" >&6;}
21482 else
21483 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21484$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021485 X"$ac_file" : 'X\(//\)[^/]' \| \
21486 X"$ac_file" : 'X\(//\)$' \| \
21487 X"$ac_file" : 'X\(/\)' \| \
21488 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021489echo X"$ac_file" |
21490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21492 /^X\(\/\/\)$/{ s//\1/; q; }
21493 /^X\(\/\).*/{ s//\1/; q; }
21494 s/.*/./; q'`
21495 { if $as_mkdir_p; then
21496 mkdir -p "$ac_dir"
21497 else
21498 as_dir="$ac_dir"
21499 as_dirs=
21500 while test ! -d "$as_dir"; do
21501 as_dirs="$as_dir $as_dirs"
21502 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21503$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021504 X"$as_dir" : 'X\(//\)[^/]' \| \
21505 X"$as_dir" : 'X\(//\)$' \| \
21506 X"$as_dir" : 'X\(/\)' \| \
21507 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021508echo X"$as_dir" |
21509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21511 /^X\(\/\/\)$/{ s//\1/; q; }
21512 /^X\(\/\).*/{ s//\1/; q; }
21513 s/.*/./; q'`
21514 done
21515 test ! -n "$as_dirs" || mkdir $as_dirs
21516 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21517echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21518 { (exit 1); exit 1; }; }; }
21519
21520 rm -f $ac_file
21521 mv $tmp/config.h $ac_file
21522 fi
21523 else
21524 cat $tmp/config.h
21525 rm -f $tmp/config.h
21526 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021527# Compute $ac_file's index in $config_headers.
21528_am_stamp_count=1
21529for _am_header in $config_headers :; do
21530 case $_am_header in
21531 $ac_file | $ac_file:* )
21532 break ;;
21533 * )
21534 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21535 esac
21536done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021537echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21538$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021539 X$ac_file : 'X\(//\)[^/]' \| \
21540 X$ac_file : 'X\(//\)$' \| \
21541 X$ac_file : 'X\(/\)' \| \
21542 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021543echo X$ac_file |
21544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21546 /^X\(\/\/\)$/{ s//\1/; q; }
21547 /^X\(\/\).*/{ s//\1/; q; }
21548 s/.*/./; q'`/stamp-h$_am_stamp_count
21549done
21550_ACEOF
21551cat >>$CONFIG_STATUS <<\_ACEOF
21552
21553#
21554# CONFIG_COMMANDS section.
21555#
21556for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21557 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21558 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21559 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21560$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021561 X"$ac_dest" : 'X\(//\)[^/]' \| \
21562 X"$ac_dest" : 'X\(//\)$' \| \
21563 X"$ac_dest" : 'X\(/\)' \| \
21564 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021565echo X"$ac_dest" |
21566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21568 /^X\(\/\/\)$/{ s//\1/; q; }
21569 /^X\(\/\).*/{ s//\1/; q; }
21570 s/.*/./; q'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021571 { if $as_mkdir_p; then
21572 mkdir -p "$ac_dir"
21573 else
21574 as_dir="$ac_dir"
21575 as_dirs=
21576 while test ! -d "$as_dir"; do
21577 as_dirs="$as_dir $as_dirs"
21578 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21580 X"$as_dir" : 'X\(//\)[^/]' \| \
21581 X"$as_dir" : 'X\(//\)$' \| \
21582 X"$as_dir" : 'X\(/\)' \| \
21583 . : '\(.\)' 2>/dev/null ||
21584echo X"$as_dir" |
21585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21587 /^X\(\/\/\)$/{ s//\1/; q; }
21588 /^X\(\/\).*/{ s//\1/; q; }
21589 s/.*/./; q'`
21590 done
21591 test ! -n "$as_dirs" || mkdir $as_dirs
21592 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21593echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21594 { (exit 1); exit 1; }; }; }
21595
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021596 ac_builddir=.
21597
21598if test "$ac_dir" != .; then
21599 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21600 # A "../" for each directory in $ac_dir_suffix.
21601 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21602else
21603 ac_dir_suffix= ac_top_builddir=
21604fi
21605
21606case $srcdir in
21607 .) # No --srcdir option. We are building in place.
21608 ac_srcdir=.
21609 if test -z "$ac_top_builddir"; then
21610 ac_top_srcdir=.
21611 else
21612 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21613 fi ;;
21614 [\\/]* | ?:[\\/]* ) # Absolute path.
21615 ac_srcdir=$srcdir$ac_dir_suffix;
21616 ac_top_srcdir=$srcdir ;;
21617 *) # Relative path.
21618 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21619 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21620esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021621
21622# Do not use `cd foo && pwd` to compute absolute paths, because
21623# the directories may not exist.
21624case `pwd` in
21625.) ac_abs_builddir="$ac_dir";;
21626*)
21627 case "$ac_dir" in
21628 .) ac_abs_builddir=`pwd`;;
21629 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21630 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21631 esac;;
21632esac
21633case $ac_abs_builddir in
21634.) ac_abs_top_builddir=${ac_top_builddir}.;;
21635*)
21636 case ${ac_top_builddir}. in
21637 .) ac_abs_top_builddir=$ac_abs_builddir;;
21638 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21639 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21640 esac;;
21641esac
21642case $ac_abs_builddir in
21643.) ac_abs_srcdir=$ac_srcdir;;
21644*)
21645 case $ac_srcdir in
21646 .) ac_abs_srcdir=$ac_abs_builddir;;
21647 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21648 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21649 esac;;
21650esac
21651case $ac_abs_builddir in
21652.) ac_abs_top_srcdir=$ac_top_srcdir;;
21653*)
21654 case $ac_top_srcdir in
21655 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21656 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21657 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21658 esac;;
21659esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021660
21661
21662 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21663echo "$as_me: executing $ac_dest commands" >&6;}
21664 case $ac_dest in
21665 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21666 # Strip MF so we end up with the name of the file.
21667 mf=`echo "$mf" | sed -e 's/:.*$//'`
21668 # Check whether this is an Automake generated Makefile or not.
21669 # We used to match only the files named `Makefile.in', but
21670 # some people rename them; so instead we look at the file content.
21671 # Grep'ing the first line is not enough: some people post-process
21672 # each Makefile.in and add a new line on top of each file to say so.
21673 # So let's grep whole file.
21674 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21675 dirpart=`(dirname "$mf") 2>/dev/null ||
21676$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021677 X"$mf" : 'X\(//\)[^/]' \| \
21678 X"$mf" : 'X\(//\)$' \| \
21679 X"$mf" : 'X\(/\)' \| \
21680 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021681echo X"$mf" |
21682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21684 /^X\(\/\/\)$/{ s//\1/; q; }
21685 /^X\(\/\).*/{ s//\1/; q; }
21686 s/.*/./; q'`
21687 else
21688 continue
21689 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021690 # Extract the definition of DEPDIR, am__include, and am__quote
21691 # from the Makefile without running `make'.
21692 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021693 test -z "$DEPDIR" && continue
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021694 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21695 test -z "am__include" && continue
21696 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021697 # When using ansi2knr, U may be empty or an underscore; expand it
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021698 U=`sed -n 's/^U = //p' < "$mf"`
21699 # Find all dependency output files, they are included files with
21700 # $(DEPDIR) in their names. We invoke sed twice because it is the
21701 # simplest approach to changing $(DEPDIR) to its actual value in the
21702 # expansion.
21703 for file in `sed -n "
21704 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021705 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21706 # Make sure the directory exists.
21707 test -f "$dirpart/$file" && continue
21708 fdir=`(dirname "$file") 2>/dev/null ||
21709$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021710 X"$file" : 'X\(//\)[^/]' \| \
21711 X"$file" : 'X\(//\)$' \| \
21712 X"$file" : 'X\(/\)' \| \
21713 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021714echo X"$file" |
21715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21717 /^X\(\/\/\)$/{ s//\1/; q; }
21718 /^X\(\/\).*/{ s//\1/; q; }
21719 s/.*/./; q'`
21720 { if $as_mkdir_p; then
21721 mkdir -p $dirpart/$fdir
21722 else
21723 as_dir=$dirpart/$fdir
21724 as_dirs=
21725 while test ! -d "$as_dir"; do
21726 as_dirs="$as_dir $as_dirs"
21727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060021729 X"$as_dir" : 'X\(//\)[^/]' \| \
21730 X"$as_dir" : 'X\(//\)$' \| \
21731 X"$as_dir" : 'X\(/\)' \| \
21732 . : '\(.\)' 2>/dev/null ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021733echo X"$as_dir" |
21734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21736 /^X\(\/\/\)$/{ s//\1/; q; }
21737 /^X\(\/\).*/{ s//\1/; q; }
21738 s/.*/./; q'`
21739 done
21740 test ! -n "$as_dirs" || mkdir $as_dirs
21741 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21742echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21743 { (exit 1); exit 1; }; }; }
21744
21745 # echo "creating $dirpart/$file"
21746 echo '# dummy' > "$dirpart/$file"
21747 done
21748done
21749 ;;
21750 esac
21751done
21752_ACEOF
21753
21754cat >>$CONFIG_STATUS <<\_ACEOF
21755
21756{ (exit 0); exit 0; }
21757_ACEOF
21758chmod +x $CONFIG_STATUS
21759ac_clean_files=$ac_clean_files_save
21760
21761
21762# configure is writing to config.log, and then calls config.status.
21763# config.status does its own redirection, appending to config.log.
21764# Unfortunately, on DOS this fails, as config.log is still kept open
21765# by configure, so config.status won't be able to write to it; its
21766# output is simply discarded. So we exec the FD to /dev/null,
21767# effectively closing config.log, so it can be properly (re)opened and
21768# appended to by config.status. When coming back to configure, we
21769# need to make the FD available again.
21770if test "$no_create" != yes; then
21771 ac_cs_success=:
21772 ac_config_status_args=
21773 test "$silent" = yes &&
21774 ac_config_status_args="$ac_config_status_args --quiet"
21775 exec 5>/dev/null
21776 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21777 exec 5>>config.log
21778 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21779 # would make configure fail if this is the last instruction.
21780 $ac_cs_success || { (exit 1); exit 1; }
21781fi
Glenn Randers-Pehrson520a7642000-03-21 05:13:06 -060021782