|
|
|
@ -1,4 +1,18 @@ |
|
|
|
|
## FreeType specific autoconf tests |
|
|
|
|
# generated automatically by aclocal 1.7.1 -*- Autoconf -*- |
|
|
|
|
|
|
|
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 |
|
|
|
|
# Free Software Foundation, Inc. |
|
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
|
|
# with or without modifications, as long as this notice is preserved. |
|
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
|
|
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
|
|
|
|
# PARTICULAR PURPOSE. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# serial 1 FT_MUNMAP_DECL |
|
|
|
|
|
|
|
|
|
AC_DEFUN(FT_MUNMAP_DECL, |
|
|
|
|
[AC_MSG_CHECKING([whether munmap must be declared]) |
|
|
|
@ -13,7 +27,8 @@ ft_cv_munmap_decl=no, |
|
|
|
|
ft_cv_munmap_decl=yes)]) |
|
|
|
|
AC_MSG_RESULT($ft_cv_munmap_decl) |
|
|
|
|
if test $ft_cv_munmap_decl = yes; then |
|
|
|
|
AC_DEFINE(NEED_MUNMAP_DECL) |
|
|
|
|
AC_DEFINE(NEED_MUNMAP_DECL,, |
|
|
|
|
[Define to 1 if munmap() is not defined in <sys/mman.h>]) |
|
|
|
|
fi]) |
|
|
|
|
|
|
|
|
|
AC_DEFUN(FT_MUNMAP_PARAM, |
|
|
|
@ -22,33 +37,12 @@ AC_TRY_COMPILE([ |
|
|
|
|
#include <unistd.h> |
|
|
|
|
#include <sys/mman.h> |
|
|
|
|
int munmap(void *, size_t);],, |
|
|
|
|
AC_MSG_RESULT([void *]);AC_DEFINE(MUNMAP_USES_VOIDP), |
|
|
|
|
AC_MSG_RESULT([void *]);AC_DEFINE(MUNMAP_USES_VOIDP,, |
|
|
|
|
[Define to 1 if the first argument of munmap is of type void *]), |
|
|
|
|
AC_MSG_RESULT([char *])) |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- |
|
|
|
|
## Copyright 1996, 1997, 1998, 1999, 2000, 2001 |
|
|
|
|
## Free Software Foundation, Inc. |
|
|
|
|
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
|
|
## |
|
|
|
|
## This program is free software; you can redistribute it and/or modify |
|
|
|
|
## it under the terms of the GNU General Public License as published by |
|
|
|
|
## the Free Software Foundation; either version 2 of the License, or |
|
|
|
|
## (at your option) any later version. |
|
|
|
|
## |
|
|
|
|
## This program is distributed in the hope that it will be useful, but |
|
|
|
|
## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
|
## General Public License for more details. |
|
|
|
|
## |
|
|
|
|
## You should have received a copy of the GNU General Public License |
|
|
|
|
## along with this program; if not, write to the Free Software |
|
|
|
|
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
|
|
## |
|
|
|
|
## As a special exception to the GNU General Public License, if you |
|
|
|
|
## distribute this file as part of a program that contains a |
|
|
|
|
## configuration script generated by Autoconf, you may include it under |
|
|
|
|
## the same distribution terms that you use for the rest of that program. |
|
|
|
|
|
|
|
|
|
# serial 46 AC_PROG_LIBTOOL |
|
|
|
|
|
|
|
|
@ -77,6 +71,8 @@ AC_REQUIRE([AC_PROG_CC])dnl |
|
|
|
|
AC_REQUIRE([AC_PROG_LD])dnl |
|
|
|
|
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
|
|
|
|
AC_REQUIRE([AC_PROG_NM])dnl |
|
|
|
|
AC_REQUIRE([LT_AC_PROG_SED])dnl |
|
|
|
|
|
|
|
|
|
AC_REQUIRE([AC_PROG_LN_S])dnl |
|
|
|
|
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
|
|
|
|
AC_REQUIRE([AC_OBJEXT])dnl |
|
|
|
@ -244,9 +240,12 @@ hpux*) # Its linker distinguishes data from code symbols |
|
|
|
|
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
|
|
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
|
|
;; |
|
|
|
|
irix*) |
|
|
|
|
irix* | nonstopux*) |
|
|
|
|
symcode='[[BCDEGRST]]' |
|
|
|
|
;; |
|
|
|
|
osf*) |
|
|
|
|
symcode='[[BCDEGQRST]]' |
|
|
|
|
;; |
|
|
|
|
solaris* | sysv5*) |
|
|
|
|
symcode='[[BDT]]' |
|
|
|
|
;; |
|
|
|
@ -343,7 +342,7 @@ EOF |
|
|
|
|
save_CFLAGS="$CFLAGS" |
|
|
|
|
LIBS="conftstm.$ac_objext" |
|
|
|
|
CFLAGS="$CFLAGS$no_builtin_flag" |
|
|
|
|
if AC_TRY_EVAL(ac_link) && test -s conftest; then |
|
|
|
|
if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then |
|
|
|
|
pipe_works=yes |
|
|
|
|
fi |
|
|
|
|
LIBS="$save_LIBS" |
|
|
|
@ -837,8 +836,6 @@ fi |
|
|
|
|
set dummy $CC |
|
|
|
|
compiler="[$]2" |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
AC_MSG_CHECKING([for objdir]) |
|
|
|
|
rm -f .libs 2>/dev/null |
|
|
|
|
mkdir .libs 2>/dev/null |
|
|
|
@ -850,12 +847,8 @@ else |
|
|
|
|
fi |
|
|
|
|
rmdir .libs 2>/dev/null |
|
|
|
|
AC_MSG_RESULT($objdir) |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
AC_ARG_WITH(pic, |
|
|
|
|
[ --with-pic try to use only PIC/non-PIC objects [default=use both]], |
|
|
|
|
pic_mode="$withval", pic_mode=default) |
|
|
|
@ -893,7 +886,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic, |
|
|
|
|
# like `-m68040'. |
|
|
|
|
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
|
|
;; |
|
|
|
|
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
|
|
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
|
|
# PIC is the default for these OSes. |
|
|
|
|
;; |
|
|
|
|
darwin* | rhapsody*) |
|
|
|
@ -936,7 +929,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic, |
|
|
|
|
lt_cv_prog_cc_pic='+Z' |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
irix5* | irix6*) |
|
|
|
|
irix5* | irix6* | nonstopux*) |
|
|
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
|
|
lt_cv_prog_cc_static='-non_shared' |
|
|
|
|
# PIC (with -KPIC) is the default. |
|
|
|
@ -980,11 +973,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic, |
|
|
|
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
|
|
lt_cv_prog_cc_pic='-KPIC' |
|
|
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
|
|
if test "x$host_vendor" = xsni; then |
|
|
|
|
lt_cv_prog_cc_wl='-LD' |
|
|
|
|
else |
|
|
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
|
|
fi |
|
|
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
uts4*) |
|
|
|
@ -1046,8 +1035,6 @@ else |
|
|
|
|
|
|
|
|
|
AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) |
|
|
|
|
fi |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
# Check for any special shared library compilation flags. |
|
|
|
|
if test -n "$lt_cv_prog_cc_shlib"; then |
|
|
|
@ -1059,8 +1046,6 @@ if test -n "$lt_cv_prog_cc_shlib"; then |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) |
|
|
|
|
AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl |
|
|
|
|
lt_cv_prog_cc_static_works=no |
|
|
|
@ -1080,12 +1065,8 @@ wl="$lt_cv_prog_cc_wl" |
|
|
|
|
link_static_flag="$lt_cv_prog_cc_static" |
|
|
|
|
no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
|
|
|
|
can_build_shared="$lt_cv_prog_cc_can_build_shared" |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
# Check to see if options -o and -c are simultaneously supported by compiler |
|
|
|
|
AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) |
|
|
|
|
AC_CACHE_VAL([lt_cv_compiler_c_o], [ |
|
|
|
@ -1153,11 +1134,7 @@ if test x"$compiler_c_o" = x"yes"; then |
|
|
|
|
else |
|
|
|
|
compiler_o_lo=no |
|
|
|
|
fi |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
# Check to see if we can do hard links to lock some files if needed |
|
|
|
|
hard_links="nottested" |
|
|
|
|
if test "$compiler_c_o" = no && test "$need_locks" != no; then |
|
|
|
@ -1177,11 +1154,7 @@ if test "$compiler_c_o" = no && test "$need_locks" != no; then |
|
|
|
|
else |
|
|
|
|
need_locks=no |
|
|
|
|
fi |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
if test "$GCC" = yes; then |
|
|
|
|
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
|
|
|
|
AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) |
|
|
|
@ -1207,11 +1180,7 @@ if test "$GCC" = yes; then |
|
|
|
|
no_builtin_flag=' -fno-builtin' |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
# See if the linker supports building shared libraries. |
|
|
|
|
AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) |
|
|
|
|
|
|
|
|
@ -1369,7 +1338,7 @@ EOF |
|
|
|
|
# If the export-symbols file already is a .def file (1st line |
|
|
|
|
# is EXPORTS), use it as is. |
|
|
|
|
# If DATA tags from a recent dlltool are present, honour them! |
|
|
|
|
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
|
|
|
|
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
|
|
|
|
cp $export_symbols $output_objdir/$soname-def; |
|
|
|
|
else |
|
|
|
|
echo EXPORTS > $output_objdir/$soname-def; |
|
|
|
@ -1378,6 +1347,7 @@ EOF |
|
|
|
|
set dummy \$symbol; |
|
|
|
|
case \[$]# in |
|
|
|
|
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
|
|
|
|
4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
|
|
|
|
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; |
|
|
|
|
esac; |
|
|
|
|
_lt_hint=`expr 1 + \$_lt_hint`; |
|
|
|
@ -1490,10 +1460,12 @@ else |
|
|
|
|
# need to do runtime linking. |
|
|
|
|
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
|
|
|
|
for ld_flag in $LDFLAGS; do |
|
|
|
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
|
|
|
case $ld_flag in |
|
|
|
|
*-brtl*) |
|
|
|
|
aix_use_runtimelinking=yes |
|
|
|
|
break |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
done |
|
|
|
|
esac |
|
|
|
|
|
|
|
|
@ -1565,7 +1537,7 @@ else |
|
|
|
|
allow_undefined_flag='${wl}-berok' |
|
|
|
|
# This is a bit strange, but is similar to how AIX traditionally builds |
|
|
|
|
# it's shared libraries. |
|
|
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname' |
|
|
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
@ -1607,8 +1579,9 @@ else |
|
|
|
|
esac |
|
|
|
|
# FIXME: Relying on posixy $() will cause problems for |
|
|
|
|
# cross-compilation, but unfortunately the echo tests do not |
|
|
|
|
# yet detect zsh echo's removal of \ escapes. |
|
|
|
|
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' |
|
|
|
|
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
|
|
|
|
# `"' quotes if we put them in here... so don't! |
|
|
|
|
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' |
|
|
|
|
# We need to add '_' to the symbols in $export_symbols first |
|
|
|
|
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
|
|
|
|
hardcode_direct=yes |
|
|
|
@ -1660,13 +1633,14 @@ else |
|
|
|
|
export_dynamic_flag_spec='${wl}-E' |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
irix5* | irix6*) |
|
|
|
|
irix5* | irix6* | nonstopux*) |
|
|
|
|
if test "$GCC" = yes; then |
|
|
|
|
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' |
|
|
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
|
|
else |
|
|
|
|
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' |
|
|
|
|
hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
|
|
fi |
|
|
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
|
|
hardcode_libdir_separator=: |
|
|
|
|
link_all_deplibs=yes |
|
|
|
|
;; |
|
|
|
@ -1694,7 +1668,7 @@ else |
|
|
|
|
hardcode_direct=yes |
|
|
|
|
hardcode_shlibpath_var=no |
|
|
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
|
|
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
|
|
export_dynamic_flag_spec='${wl}-E' |
|
|
|
|
else |
|
|
|
@ -1704,7 +1678,7 @@ else |
|
|
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
|
|
;; |
|
|
|
|
*) |
|
|
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
|
|
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
@ -1816,13 +1790,23 @@ EOF |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
sysv4) |
|
|
|
|
if test "x$host_vendor" = xsno; then |
|
|
|
|
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
|
|
hardcode_direct=yes # is this really true??? |
|
|
|
|
else |
|
|
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
|
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
|
|
fi |
|
|
|
|
case $host_vendor in |
|
|
|
|
sni) |
|
|
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
|
|
hardcode_direct=yes # is this really true??? |
|
|
|
|
;; |
|
|
|
|
siemens) |
|
|
|
|
## LD is ld it makes a PLAMLIB |
|
|
|
|
## CC just makes a GrossModule. |
|
|
|
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
|
|
reload_cmds='$CC -r -o $output$reload_objs' |
|
|
|
|
hardcode_direct=no |
|
|
|
|
;; |
|
|
|
|
motorola) |
|
|
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
|
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
runpath_var='LD_RUN_PATH' |
|
|
|
|
hardcode_shlibpath_var=no |
|
|
|
|
;; |
|
|
|
@ -1894,11 +1878,7 @@ EOF |
|
|
|
|
fi |
|
|
|
|
AC_MSG_RESULT([$ld_shlibs]) |
|
|
|
|
test "$ld_shlibs" = no && can_build_shared=no |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
# Check hardcoding attributes. |
|
|
|
|
AC_MSG_CHECKING([how to hardcode library paths into programs]) |
|
|
|
|
hardcode_action= |
|
|
|
@ -1924,11 +1904,7 @@ else |
|
|
|
|
hardcode_action=unsupported |
|
|
|
|
fi |
|
|
|
|
AC_MSG_RESULT([$hardcode_action]) |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
striplib= |
|
|
|
|
old_striplib= |
|
|
|
|
AC_MSG_CHECKING([whether stripping libraries is possible]) |
|
|
|
@ -1939,14 +1915,10 @@ if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
|
|
else |
|
|
|
|
AC_MSG_RESULT([no]) |
|
|
|
|
fi |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
# PORTME Fill in your ld.so characteristics |
|
|
|
|
AC_MSG_CHECKING([dynamic linker characteristics]) |
|
|
|
|
library_names_spec= |
|
|
|
@ -1975,6 +1947,9 @@ aix3*) |
|
|
|
|
|
|
|
|
|
aix4* | aix5*) |
|
|
|
|
version_type=linux |
|
|
|
|
need_lib_prefix=no |
|
|
|
|
need_version=no |
|
|
|
|
hardcode_into_libs=yes |
|
|
|
|
if test "$host_cpu" = ia64; then |
|
|
|
|
# AIX 5 supports IA64 |
|
|
|
|
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
|
|
|
@ -2013,6 +1988,7 @@ aix4* | aix5*) |
|
|
|
|
fi |
|
|
|
|
shlibpath_var=LIBPATH |
|
|
|
|
fi |
|
|
|
|
hardcode_into_libs=yes |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
amigaos*) |
|
|
|
@ -2060,7 +2036,7 @@ cygwin* | mingw* | pw32*) |
|
|
|
|
;; |
|
|
|
|
yes,mingw*) |
|
|
|
|
library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' |
|
|
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` |
|
|
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
|
|
|
|
;; |
|
|
|
|
yes,pw32*) |
|
|
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
|
|
|
@ -2143,14 +2119,17 @@ hpux9* | hpux10* | hpux11*) |
|
|
|
|
postinstall_cmds='chmod 555 $lib' |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
irix5* | irix6*) |
|
|
|
|
version_type=irix |
|
|
|
|
irix5* | irix6* | nonstopux*) |
|
|
|
|
case $host_os in |
|
|
|
|
nonstopux*) version_type=nonstopux ;; |
|
|
|
|
*) version_type=irix ;; |
|
|
|
|
esac |
|
|
|
|
need_lib_prefix=no |
|
|
|
|
need_version=no |
|
|
|
|
soname_spec='${libname}${release}.so$major' |
|
|
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
|
|
|
|
case $host_os in |
|
|
|
|
irix5*) |
|
|
|
|
irix5* | nonstopux*) |
|
|
|
|
libsuff= shlibsuff= |
|
|
|
|
;; |
|
|
|
|
*) |
|
|
|
@ -2254,11 +2233,12 @@ os2*) |
|
|
|
|
osf3* | osf4* | osf5*) |
|
|
|
|
version_type=osf |
|
|
|
|
need_version=no |
|
|
|
|
soname_spec='${libname}${release}.so' |
|
|
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
|
|
soname_spec='${libname}${release}.so$major' |
|
|
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
|
|
hardcode_into_libs=yes |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
sco3.2v5*) |
|
|
|
@ -2301,6 +2281,12 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
|
|
case $host_vendor in |
|
|
|
|
sni) |
|
|
|
|
shlibpath_overrides_runpath=no |
|
|
|
|
need_lib_prefix=no |
|
|
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
|
|
runpath_var=LD_RUN_PATH |
|
|
|
|
;; |
|
|
|
|
siemens) |
|
|
|
|
need_lib_prefix=no |
|
|
|
|
;; |
|
|
|
|
motorola) |
|
|
|
|
need_lib_prefix=no |
|
|
|
@ -2342,19 +2328,11 @@ sysv4*MP*) |
|
|
|
|
esac |
|
|
|
|
AC_MSG_RESULT([$dynamic_linker]) |
|
|
|
|
test "$dynamic_linker" = no && can_build_shared=no |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
# Report the final consequences. |
|
|
|
|
AC_MSG_CHECKING([if libtool supports shared libraries]) |
|
|
|
|
AC_MSG_RESULT([$can_build_shared]) |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
AC_MSG_CHECKING([whether to build shared libraries]) |
|
|
|
|
test "$can_build_shared" = "no" && enable_shared=no |
|
|
|
|
|
|
|
|
@ -2376,17 +2354,11 @@ aix4*) |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
AC_MSG_RESULT([$enable_shared]) |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
AC_MSG_CHECKING([whether to build static libraries]) |
|
|
|
|
# Make sure either enable_shared or enable_static is yes. |
|
|
|
|
test "$enable_shared" = yes || enable_static=yes |
|
|
|
|
AC_MSG_RESULT([$enable_static]) |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
if test "$hardcode_action" = relink; then |
|
|
|
|
# Fast installation is not supported |
|
|
|
@ -2404,8 +2376,6 @@ fi |
|
|
|
|
|
|
|
|
|
AC_LIBTOOL_DLOPEN_SELF |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
|
|
case $archive_cmds in |
|
|
|
|
*'~'*) |
|
|
|
@ -2448,11 +2418,7 @@ if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
|
|
esac |
|
|
|
|
fi |
|
|
|
|
need_lc=${lt_cv_archive_cmds_need_lc-yes} |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
## FIXME: this should be a separate macro |
|
|
|
|
## |
|
|
|
|
# The second clause should only fire when bootstrapping the |
|
|
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
|
|
# with your package, and you will get complaints that there are |
|
|
|
@ -2475,7 +2441,7 @@ if test -f "$ltmain"; then |
|
|
|
|
# Now quote all the things that may contain metacharacters while being |
|
|
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
|
|
# variables and quote the copies for generation of the libtool script. |
|
|
|
|
for var in echo old_CC old_CFLAGS \ |
|
|
|
|
for var in echo old_CC old_CFLAGS SED \ |
|
|
|
|
AR AR_FLAGS CC LD LN_S NM SHELL \ |
|
|
|
|
reload_flag reload_cmds wl \ |
|
|
|
|
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
|
|
|
@ -2537,8 +2503,11 @@ if test -f "$ltmain"; then |
|
|
|
|
# configuration script generated by Autoconf, you may include it under |
|
|
|
|
# the same distribution terms that you use for the rest of that program. |
|
|
|
|
|
|
|
|
|
# A sed that does not truncate output. |
|
|
|
|
SED=$lt_SED |
|
|
|
|
|
|
|
|
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
|
|
Xsed="sed -e s/^X//" |
|
|
|
|
Xsed="${SED} -e s/^X//" |
|
|
|
|
|
|
|
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
|
|
# if CDPATH is set. |
|
|
|
@ -3002,8 +2971,6 @@ EOF |
|
|
|
|
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
|
|
|
|
chmod +x "$ofile" |
|
|
|
|
fi |
|
|
|
|
## |
|
|
|
|
## END FIXME |
|
|
|
|
|
|
|
|
|
])# _LT_AC_LTCONFIG_HACK |
|
|
|
|
|
|
|
|
@ -3301,7 +3268,7 @@ test -n "$reload_flag" && reload_flag=" $reload_flag" |
|
|
|
|
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies |
|
|
|
|
# -- PORTME fill in with the dynamic library characteristics |
|
|
|
|
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
|
|
|
|
[AC_CACHE_CHECK([how to recognise dependant libraries], |
|
|
|
|
[AC_CACHE_CHECK([how to recognise dependent libraries], |
|
|
|
|
lt_cv_deplibs_check_method, |
|
|
|
|
[lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
|
|
|
lt_cv_file_magic_test_file= |
|
|
|
@ -3376,9 +3343,9 @@ hpux10.20*|hpux11*) |
|
|
|
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
irix5* | irix6*) |
|
|
|
|
irix5* | irix6* | nonstopux*) |
|
|
|
|
case $host_os in |
|
|
|
|
irix5*) |
|
|
|
|
irix5* | nonstopux*) |
|
|
|
|
# this will be overridden with pass_all, but let us keep it just in case |
|
|
|
|
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
|
|
|
|
;; |
|
|
|
@ -3400,7 +3367,7 @@ irix5* | irix6*) |
|
|
|
|
# This must be Linux ELF. |
|
|
|
|
linux-gnu*) |
|
|
|
|
case $host_cpu in |
|
|
|
|
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
|
|
|
|
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) |
|
|
|
|
lt_cv_deplibs_check_method=pass_all ;; |
|
|
|
|
*) |
|
|
|
|
# glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
|
@ -3471,6 +3438,9 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
|
|
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
|
|
|
|
lt_cv_file_magic_test_file=/lib/libc.so |
|
|
|
|
;; |
|
|
|
|
siemens) |
|
|
|
|
lt_cv_deplibs_check_method=pass_all |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
@ -3536,12 +3506,12 @@ esac |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for |
|
|
|
|
# the libltdl convenience library and INCLTDL to the include flags for |
|
|
|
|
# the libltdl convenience library and LTDLINCL to the include flags for |
|
|
|
|
# the libltdl header and adds --enable-ltdl-convenience to the |
|
|
|
|
# configure arguments. Note that LIBLTDL and INCLTDL are not |
|
|
|
|
# configure arguments. Note that LIBLTDL and LTDLINCL are not |
|
|
|
|
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not |
|
|
|
|
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed |
|
|
|
|
# with '${top_builddir}/' and INCLTDL will be prefixed with |
|
|
|
|
# with '${top_builddir}/' and LTDLINCL will be prefixed with |
|
|
|
|
# '${top_srcdir}/' (note the single quotes!). If your package is not |
|
|
|
|
# flat and you're not using automake, define top_builddir and |
|
|
|
|
# top_srcdir appropriately in the Makefiles. |
|
|
|
@ -3553,16 +3523,18 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
|
|
|
|
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
|
|
|
|
esac |
|
|
|
|
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
|
|
|
|
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
|
|
|
|
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
|
|
|
|
# For backwards non-gettext consistent compatibility... |
|
|
|
|
INCLTDL="$LTDLINCL" |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for |
|
|
|
|
# the libltdl installable library and INCLTDL to the include flags for |
|
|
|
|
# the libltdl installable library and LTDLINCL to the include flags for |
|
|
|
|
# the libltdl header and adds --enable-ltdl-install to the configure |
|
|
|
|
# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is |
|
|
|
|
# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is |
|
|
|
|
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed |
|
|
|
|
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will |
|
|
|
|
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed |
|
|
|
|
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed |
|
|
|
|
# with '${top_srcdir}/' (note the single quotes!). If your package is |
|
|
|
|
# not flat and you're not using automake, define top_builddir and |
|
|
|
|
# top_srcdir appropriately in the Makefiles. |
|
|
|
@ -3580,12 +3552,14 @@ AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
|
|
|
|
if test x"$enable_ltdl_install" = x"yes"; then |
|
|
|
|
ac_configure_args="$ac_configure_args --enable-ltdl-install" |
|
|
|
|
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
|
|
|
|
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
|
|
|
|
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
|
|
|
|
else |
|
|
|
|
ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
|
|
|
|
LIBLTDL="-lltdl" |
|
|
|
|
INCLTDL= |
|
|
|
|
LTDLINCL= |
|
|
|
|
fi |
|
|
|
|
# For backwards non-gettext consistent compatibility... |
|
|
|
|
INCLTDL="$LTDLINCL" |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# old names |
|
|
|
@ -3599,3 +3573,93 @@ AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) |
|
|
|
|
|
|
|
|
|
# This is just to silence aclocal about the macro not being used |
|
|
|
|
ifelse([AC_DISABLE_FAST_INSTALL]) |
|
|
|
|
|
|
|
|
|
# NOTE: This macro has been submitted for inclusion into # |
|
|
|
|
# GNU Autoconf as AC_PROG_SED. When it is available in # |
|
|
|
|
# a released version of Autoconf we should remove this # |
|
|
|
|
# macro and use it instead. # |
|
|
|
|
# LT_AC_PROG_SED |
|
|
|
|
# -------------- |
|
|
|
|
# Check for a fully-functional sed program, that truncates |
|
|
|
|
# as few characters as possible. Prefer GNU sed if found. |
|
|
|
|
AC_DEFUN([LT_AC_PROG_SED], |
|
|
|
|
[AC_MSG_CHECKING([for a sed that does not truncate output]) |
|
|
|
|
AC_CACHE_VAL(lt_cv_path_SED, |
|
|
|
|
[# Loop through the user's path and test for sed and gsed. |
|
|
|
|
# Then use that list of sed's as ones to test for truncation. |
|
|
|
|
as_executable_p="test -f" |
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
|
|
for as_dir in $PATH |
|
|
|
|
do |
|
|
|
|
IFS=$as_save_IFS |
|
|
|
|
test -z "$as_dir" && as_dir=. |
|
|
|
|
for ac_prog in sed gsed; do |
|
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
|
|
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
|
|
|
|
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
done |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
# Create a temporary directory, and hook for its removal unless debugging. |
|
|
|
|
$debug || |
|
|
|
|
{ |
|
|
|
|
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
|
|
|
|
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Create a (secure) tmp directory for tmp files. |
|
|
|
|
: ${TMPDIR=/tmp} |
|
|
|
|
{ |
|
|
|
|
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
|
|
|
|
test -n "$tmp" && test -d "$tmp" |
|
|
|
|
} || |
|
|
|
|
{ |
|
|
|
|
tmp=$TMPDIR/sed$$-$RANDOM |
|
|
|
|
(umask 077 && mkdir $tmp) |
|
|
|
|
} || |
|
|
|
|
{ |
|
|
|
|
echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
|
|
|
|
{ (exit 1); exit 1; } |
|
|
|
|
} |
|
|
|
|
_max=0 |
|
|
|
|
_count=0 |
|
|
|
|
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
|
|
|
|
# along with /bin/sed that truncates output. |
|
|
|
|
for _sed in $_sed_list /usr/xpg4/bin/sed; do |
|
|
|
|
test ! -f ${_sed} && break |
|
|
|
|
cat /dev/null > "$tmp/sed.in" |
|
|
|
|
_count=0 |
|
|
|
|
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
|
|
|
|
# Check for GNU sed and select it if it is found. |
|
|
|
|
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
|
|
|
|
lt_cv_path_SED=${_sed} |
|
|
|
|
break |
|
|
|
|
fi |
|
|
|
|
while true; do |
|
|
|
|
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
|
|
|
|
mv "$tmp/sed.tmp" "$tmp/sed.in" |
|
|
|
|
cp "$tmp/sed.in" "$tmp/sed.nl" |
|
|
|
|
echo >>"$tmp/sed.nl" |
|
|
|
|
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
|
|
|
|
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
|
|
|
|
# 40000 chars as input seems more than enough |
|
|
|
|
test $_count -gt 10 && break |
|
|
|
|
_count=`expr $_count + 1` |
|
|
|
|
if test $_count -gt $_max; then |
|
|
|
|
_max=$_count |
|
|
|
|
lt_cv_path_SED=$_sed |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
done |
|
|
|
|
rm -rf "$tmp" |
|
|
|
|
]) |
|
|
|
|
if test "X$SED" != "X"; then |
|
|
|
|
lt_cv_path_SED=$SED |
|
|
|
|
else |
|
|
|
|
SED=$lt_cv_path_SED |
|
|
|
|
fi |
|
|
|
|
AC_MSG_RESULT([$SED]) |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|