1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
4
# 2005, 2006 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
[m4_fatal([this file was generated for autoconf 2.61.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
14
19
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
15
20
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
218
224
glib_save_LIBS="$LIBS"
219
225
LIBS="$LIBS $INTLLIBS"
220
226
AC_CHECK_FUNCS(dcgettext)
228
AC_MSG_CHECKING([if msgfmt accepts -c])
229
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
232
"Content-Type: text/plain; charset=UTF-8\n"
233
"Project-Id-Version: test 1.0\n"
234
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
235
"Last-Translator: test <foo@bar.xx>\n"
236
"Language-Team: C <LL@li.org>\n"
237
"MIME-Version: 1.0\n"
238
"Content-Transfer-Encoding: 8bit\n"
239
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
240
AC_SUBST(MSGFMT_OPTS)
221
241
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
222
242
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
223
243
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
389
409
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
390
410
glib_save_prefix="$prefix"
391
411
glib_save_exec_prefix="$exec_prefix"
412
glib_save_datarootdir="$datarootdir"
392
413
test "x$prefix" = xNONE && prefix=$ac_default_prefix
393
414
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
415
datarootdir=`eval echo "${datarootdir}"`
394
416
if test "x$CATOBJEXT" = "x.mo" ; then
395
417
localedir=`eval echo "${libdir}/locale"`
410
433
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
436
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
438
# Create a temporary file with TEST-FILE as its contents and pass the
439
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
440
# 0 and perform ACTION-IF-FAIL for any other exit status.
441
AC_DEFUN([GLIB_RUN_PROG],
442
[cat >conftest.foo <<_ACEOF
445
if AC_RUN_LOG([$1 conftest.foo]); then
446
m4_ifval([$3], [$3], [:])
447
m4_ifvaln([$4], [else $4])dnl
448
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
449
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
414
454
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
415
# serial 35 IT_PROG_INTLTOOL
455
# serial 36 IT_PROG_INTLTOOL
416
456
AC_DEFUN([IT_PROG_INTLTOOL],
417
457
[AC_PREREQ([2.50])dnl
454
494
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
455
495
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
456
496
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
497
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
458
499
AC_SUBST(INTLTOOL_DESKTOP_RULE)
459
500
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
498
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
499
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
500
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
501
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
503
540
# Substitute ALL_LINGUAS so we can use it in po/Makefile
504
541
AC_SUBST(ALL_LINGUAS)
543
# Set DATADIRNAME correctly if it is not set yet
544
# (copied from glib-gettext.m4)
545
if test -z "$DATADIRNAME"; then
547
[AC_LANG_PROGRAM([[]],
548
[[extern int _nl_msg_cat_cntr;
549
return _nl_msg_cat_cntr]])],
553
dnl On Solaris, if bind_textdomain_codeset is in libc,
554
dnl GNU format message catalog is always supported,
555
dnl since both are added to the libc all together.
556
dnl Hence, we'd like to go with DATADIRNAME=share
558
AC_CHECK_FUNC(bind_textdomain_codeset,
559
[DATADIRNAME=share], [DATADIRNAME=lib])
566
AC_SUBST(DATADIRNAME)
506
568
IT_PO_SUBDIR([po])
508
570
dnl The following is very similar to
525
587
for file in intltool-extract intltool-merge intltool-update; do
526
588
sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
527
589
-e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
528
-e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
529
-e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
530
-e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
531
-e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
532
590
-e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
533
591
< ${ac_aux_dir}/${file}.in > ${file}.out
534
592
if cmp -s ${file} ${file}.out 2>/dev/null; then
844
900
# Check for compiler boilerplate output or warnings with
845
901
# the simple compiler test code.
846
902
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
847
[ac_outfile=conftest.$ac_objext
848
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
903
[AC_REQUIRE([LT_AC_PROG_SED])dnl
904
ac_outfile=conftest.$ac_objext
905
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
849
906
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
850
907
_lt_compiler_boilerplate=`cat conftest.err`
857
914
# Check for linker boilerplate output or warnings with
858
915
# the simple link test code.
859
916
AC_DEFUN([_LT_LINKER_BOILERPLATE],
860
[ac_outfile=conftest.$ac_objext
861
printf "$lt_simple_link_test_code" >conftest.$ac_ext
917
[AC_REQUIRE([LT_AC_PROG_SED])dnl
918
ac_outfile=conftest.$ac_objext
919
echo "$lt_simple_link_test_code" >conftest.$ac_ext
862
920
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
863
921
_lt_linker_boilerplate=`cat conftest.err`
874
932
# If we don't find anything, use the default library path according
875
933
# to the aix ld manual.
876
934
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
877
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
878
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
936
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
938
/Import File Strings/,/^$/ {
944
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
880
945
# Check for a 64-bit object if we didn't find anything.
881
if 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; }
946
if test -z "$aix_libpath"; then
947
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
883
949
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
884
950
])# _LT_AC_SYS_LIBPATH_AIX
1110
1176
rm -rf conftest*
1113
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1179
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1180
s390*-*linux*|sparc*-*linux*)
1114
1181
# Find out which ABI we are using.
1115
1182
echo 'int i;' > conftest.$ac_ext
1116
1183
if AC_TRY_EVAL(ac_compile); then
1117
1184
case `/usr/bin/file conftest.o` in
1187
x86_64-*kfreebsd*-gnu)
1188
LD="${LD-ld} -m elf_i386_fbsd"
1120
1190
x86_64-*linux*)
1121
1191
LD="${LD-ld} -m elf_i386"
1204
1277
AC_CACHE_CHECK([$1], [$2],
1206
1279
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1207
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1280
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1208
1281
lt_compiler_flag="$3"
1209
1282
# Insert the option either (1) after the last *FLAGS variable, or
1210
1283
# (2) before a word containing "conftest.", or (3) at the end.
1245
1318
# ------------------------------------------------------------
1246
1319
# Check whether the given compiler option works
1247
1320
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1248
[AC_CACHE_CHECK([$1], [$2],
1321
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1322
AC_CACHE_CHECK([$1], [$2],
1250
1324
save_LDFLAGS="$LDFLAGS"
1251
1325
LDFLAGS="$LDFLAGS $3"
1252
printf "$lt_simple_link_test_code" > conftest.$ac_ext
1326
echo "$lt_simple_link_test_code" > conftest.$ac_ext
1253
1327
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1254
1328
# The linker can only warn and ignore the option if not recognized
1255
1329
# So say no if there are warnings
1366
# If test is not a shell built-in, we'll probably end up computing a
1367
# maximum length that is only half of the actual maximum length, but
1369
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1370
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1440
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1441
if test -n "$lt_cv_sys_max_cmd_len"; then
1442
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1443
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1445
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1446
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1371
1447
= "XX$teststring") >/dev/null 2>&1 &&
1372
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1373
lt_cv_sys_max_cmd_len=$new_result &&
1374
test $i != 17 # 1/2 MB should be enough
1377
teststring=$teststring$teststring
1380
# Add a significant safety factor because C++ compilers can tack on massive
1381
# amounts of additional arguments before passing them to the linker.
1382
# It appears as though 1/2 is a usable value.
1383
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1448
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1449
lt_cv_sys_max_cmd_len=$new_result &&
1450
test $i != 17 # 1/2 MB should be enough
1453
teststring=$teststring$teststring
1456
# Add a significant safety factor because C++ compilers can tack on massive
1457
# amounts of additional arguments before passing them to the linker.
1458
# It appears as though 1/2 is a usable value.
1459
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1607
1684
# ---------------------------------
1608
1685
# Check to see if options -c and -o are simultaneously supported by compiler
1609
1686
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1610
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1687
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1688
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1611
1689
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1612
1690
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1613
1691
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1786
1866
version_type=none
1787
1867
dynamic_linker="$host_os ld.so"
1788
1868
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1789
1870
if test "$GCC" = yes; then
1790
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1791
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1872
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1873
*) lt_awk_arg="/^libraries:/" ;;
1875
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1876
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1792
1877
# if the path contains ";" then we assume it to be the separator
1793
1878
# otherwise default to the standard path separator (i.e. ":") - it is
1794
1879
# assumed that no part of a normal pathname contains ";" but that should
1795
1880
# okay in the real world where ";" in dirpaths is itself problematic.
1796
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1881
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1798
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1883
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1885
# Ok, now we have the path, separated by spaces, we can step through it
1886
# and add multilib dir if necessary.
1887
lt_tmp_lt_search_path_spec=
1888
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1889
for lt_sys_path in $lt_search_path_spec; do
1890
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1891
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1893
test -d "$lt_sys_path" && \
1894
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1897
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1898
BEGIN {RS=" "; FS="/|\n";} {
1901
for (lt_i = NF; lt_i > 0; lt_i--) {
1902
if ($lt_i != "" && $lt_i != ".") {
1903
if ($lt_i == "..") {
1906
if (lt_count == 0) {
1907
lt_foo="/" $lt_i lt_foo;
1914
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1915
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1917
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1801
1919
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1803
1921
need_lib_prefix=unknown
1804
1922
hardcode_into_libs=no
1956
2074
shlibpath_overrides_runpath=yes
1957
2075
shlibpath_var=DYLD_LIBRARY_PATH
1958
2076
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1959
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1960
if test "$GCC" = yes; then
1961
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"`
1963
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2078
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1965
2079
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1978
2092
dynamic_linker=no
1985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1986
soname_spec='${libname}${release}${shared_ext}$major'
1987
shlibpath_var=LD_LIBRARY_PATH
1988
shlibpath_overrides_runpath=no
1989
hardcode_into_libs=yes
1990
dynamic_linker='GNU ld.so'
1993
2095
freebsd* | dragonfly*)
1994
2096
# DragonFly does not have aout. When/if they implement a new
1995
2097
# versioning mechanism, adjust this.
2162
2264
# Append ld.so.conf contents to the search path
2163
2265
if test -f /etc/ld.so.conf; then
2164
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' ' '`
2266
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2165
2267
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2843
2938
# how to check for library dependencies
2844
2939
# -- PORTME fill in with the dynamic library characteristics
2845
2940
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2846
[AC_CACHE_CHECK([how to recognise dependent libraries],
2941
[AC_CACHE_CHECK([how to recognize dependent libraries],
2847
2942
lt_cv_deplibs_check_method,
2848
2943
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2849
2944
lt_cv_file_magic_test_file=
2883
2978
mingw* | pw32*)
2884
2979
# Base MSYS/MinGW do not provide the 'file' command needed by
2885
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2886
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2887
lt_cv_file_magic_cmd='$OBJDUMP -f'
2980
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2981
# unless we find 'file', for example because we are cross-compiling.
2982
if ( file / ) >/dev/null 2>&1; then
2983
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2984
lt_cv_file_magic_cmd='func_win32_libid'
2986
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2987
lt_cv_file_magic_cmd='$OBJDUMP -f'
2890
2991
darwin* | rhapsody*)
2891
2992
lt_cv_deplibs_check_method=pass_all
2894
freebsd* | kfreebsd*-gnu | dragonfly*)
2995
freebsd* | dragonfly*)
2895
2996
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2896
2997
case $host_cpu in
3352
3457
_LT_AC_TAGVAR(objext, $1)=$objext
3354
3459
# Code to be used in simple compile tests
3355
lt_simple_compile_test_code="int some_variable = 0;\n"
3460
lt_simple_compile_test_code="int some_variable = 0;"
3357
3462
# Code to be used in simple link tests
3358
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3463
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3360
3465
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3361
3466
_LT_AC_SYS_COMPILER
3660
3765
case $cc_basename in
3662
3767
output_verbose_link_cmd='echo'
3663
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3768
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3664
3769
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3665
3770
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3666
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
3771
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3667
3772
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
3936
4039
# dependencies.
3937
4040
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'
4043
case `$CC -V 2>&1 | sed 5q` in
4046
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4047
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4048
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4049
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4050
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4052
# Not sure whether something based on
4053
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4055
output_verbose_link_cmd='echo'
4057
# Archives containing C++ object files must be created using
4058
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4059
# necessary to make sure instantiated templates are included
4061
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3974
4100
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3977
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3978
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3979
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3980
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3981
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3982
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3983
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3984
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4103
if test -f /usr/libexec/ld.so; then
4104
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4105
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4106
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4107
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4108
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4109
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4110
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4111
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4113
output_verbose_link_cmd='echo'
4115
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3986
output_verbose_link_cmd='echo'
3989
4119
case $cc_basename in
4145
4275
case $host_os in
4146
4276
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4148
# The C++ compiler is used as linker so we must use $wl
4149
# flag to pass the commands to the underlying system
4150
# linker. We must also pass each convience library through
4151
# to the system linker between allextract/defaultextract.
4152
# The C++ compiler will combine linker options so we
4153
# cannot just pass the convience library names through
4278
# The compiler driver will combine and reorder linker options,
4279
# but understands `-z linker_flag'.
4155
4280
# Supported since Solaris 2.6 (maybe 2.5.1?)
4156
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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'
4281
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4159
4284
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4451
4582
_LT_AC_TAGVAR(postdeps,$1)=
4586
case `$CC -V 2>&1 | sed 5q` in
4590
# The more standards-conforming stlport4 library is
4591
# incompatible with the Cstd library. Avoid specifying
4592
# it if it's in CXXFLAGS. Ignore libCrun as
4593
# -library=stlport4 depends on it.
4594
case " $CXX $CXXFLAGS " in
4595
*" -library=stlport4 "*)
4596
solaris_use_stlport4=yes
4599
if test "$solaris_use_stlport4" != yes; then
4600
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4455
4607
case $cc_basename in
4609
# The more standards-conforming stlport4 library is
4610
# incompatible with the Cstd library. Avoid specifying
4611
# it if it's in CXXFLAGS. Ignore libCrun as
4612
# -library=stlport4 depends on it.
4613
case " $CXX $CXXFLAGS " in
4614
*" -library=stlport4 "*)
4615
solaris_use_stlport4=yes
4457
4619
# Adding this requires a known-good setup of shared libraries for
4458
4620
# Sun compiler versions before 5.6, else PIC objects from an old
4459
4621
# archive will be linked into the output, leading to subtle bugs.
4460
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4622
if test "$solaris_use_stlport4" != yes; then
4623
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4506
4670
_LT_AC_TAGVAR(objext, $1)=$objext
4508
4672
# Code to be used in simple compile tests
4509
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4673
lt_simple_compile_test_code="\
4511
4679
# Code to be used in simple link tests
4512
lt_simple_link_test_code=" program t\n end\n"
4680
lt_simple_link_test_code="\
4514
4685
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4515
4686
_LT_AC_SYS_COMPILER
4588
4759
_LT_AC_TAGVAR(objext, $1)=$objext
4590
4761
# Code to be used in simple compile tests
4591
lt_simple_compile_test_code="class foo {}\n"
4762
lt_simple_compile_test_code="class foo {}"
4593
4764
# Code to be used in simple link tests
4594
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4765
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4596
4767
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4597
4768
_LT_AC_SYS_COMPILER
4644
4815
_LT_AC_TAGVAR(objext, $1)=$objext
4646
4817
# Code to be used in simple compile tests
4647
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4818
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4649
4820
# Code to be used in simple link tests
4650
4821
lt_simple_link_test_code="$lt_simple_compile_test_code"
4733
4904
_LT_AC_TAGVAR(module_cmds, $1) \
4734
4905
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4735
4906
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4907
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4736
4908
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4737
4909
_LT_AC_TAGVAR(include_expsyms, $1); do
4779
4951
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4780
4952
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4782
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4954
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4783
4955
# Free Software Foundation, Inc.
4785
4957
# This file is part of GNU Libtool:
5413
5586
# like `-m68040'.
5414
5587
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5416
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5589
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5417
5590
# PIC is the default for these OSes.
5419
mingw* | os2* | pw32*)
5592
mingw* | cygwin* | os2* | pw32*)
5420
5593
# This hack is so that the source file can tell whether it is being
5421
5594
# built for inclusion in a dll (and should export symbols for example).
5595
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5596
# (--disable-auto-import) libraries
5422
5597
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5424
5599
darwin* | rhapsody*)
5686
5869
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5689
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5872
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5690
5873
# PIC is the default for these OSes.
5693
mingw* | pw32* | os2*)
5876
mingw* | cygwin* | pw32* | os2*)
5694
5877
# This hack is so that the source file can tell whether it is being
5695
5878
# built for inclusion in a dll (and should export symbols for example).
5879
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5880
# (--disable-auto-import) libraries
5696
5881
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5812
5997
# All Alpha code is PIC.
5813
5998
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6001
case `$CC -V 2>&1 | sed 5q` in
6004
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6005
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6006
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6009
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6010
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6011
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6012
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5915
6120
# ------------------------------------
5916
6121
# See if the linker supports building shared libraries.
5917
6122
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5918
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6123
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6124
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5919
6125
ifelse([$1],[CXX],[
5920
6126
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5921
6127
case $host_os in
5932
6138
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5934
6140
cygwin* | mingw*)
5935
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$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'
6141
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$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'
5938
6144
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6071
6277
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6072
6278
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6073
6279
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6074
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6280
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6076
6282
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6077
6283
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6104
6310
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
6313
gnu* | linux* | k*bsd*-gnu)
6108
6314
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6110
6316
case $cc_basename,$host_cpu in
6122
6328
ifc* | ifort*) # Intel Fortran compiler
6123
6329
tmp_addflag=' -nofor_main' ;;
6125
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6331
case `$CC -V 2>&1 | sed 5q` in
6332
*Sun\ C*) # Sun C 5.9
6333
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6334
tmp_sharedflag='-G' ;;
6335
*Sun\ F*) # Sun Fortran 8.3
6336
tmp_sharedflag='-G' ;;
6338
tmp_sharedflag='-shared' ;;
6340
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6127
6342
if test $supports_anon_versioning = yes; then
6128
6343
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6129
6344
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6130
6345
$echo "local: *; };" >> $output_objdir/$libname.ver~
6131
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6346
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6134
6349
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6380
6595
# The linker will automatically build a .lib file if we build a DLL.
6381
6596
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6382
6597
# FIXME: Should let the user specify the lib program.
6383
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6598
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6384
6599
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6385
6600
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6422
6637
case $cc_basename in
6424
6639
output_verbose_link_cmd='echo'
6425
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6640
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6426
6641
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6427
6642
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6428
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
6643
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6429
6644
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
6590
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6591
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6592
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6593
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6594
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6595
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6596
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6805
if test -f /usr/libexec/ld.so; then
6806
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6807
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6808
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6809
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6810
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6811
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6812
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6815
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6816
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6817
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6820
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6821
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6599
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6600
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6601
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6604
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6605
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6826
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6663
6882
case $host_os in
6664
6883
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6666
# The compiler driver will combine linker options so we
6667
# cannot just pass the convience library names through
6668
# without $wl, iff we do not link with $LD.
6669
# Luckily, gcc supports the same syntax we need for Sun Studio.
6885
# The compiler driver will combine and reorder linker options,
6886
# but understands `-z linker_flag'. GCC discards it without `$wl',
6887
# but is careful enough not to reorder.
6670
6888
# Supported since Solaris 2.6 (maybe 2.5.1?)
6673
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6675
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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' ;;
6889
if test "$GCC" = yes; then
6890
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6892
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6678
6896
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6908
7126
[AC_CHECK_TOOL(RC, windres, no)
7130
# Cheap backport of AS_EXECUTABLE_P and required macros
7131
# from Autoconf 2.59; we should not use $as_executable_p directly.
7135
m4_ifndef([_AS_TEST_PREPARE],
7136
[m4_defun([_AS_TEST_PREPARE],
7137
[if test -x / >/dev/null 2>&1; then
7138
as_executable_p='test -x'
7140
as_executable_p='test -f'
7142
])])# _AS_TEST_PREPARE
7146
# Check whether a file is executable.
7147
m4_ifndef([AS_EXECUTABLE_P],
7148
[m4_defun([AS_EXECUTABLE_P],
7149
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7150
$as_executable_p $1[]dnl
7151
])])# AS_EXECUTABLE_P
6911
7153
# NOTE: This macro has been submitted for inclusion into #
6912
7154
# GNU Autoconf as AC_PROG_SED. When it is available in #
6913
7155
# a released version of Autoconf we should remove this #
6968
7211
SED=$lt_cv_path_SED
6969
7213
AC_MSG_RESULT([$SED])
6972
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
7216
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
6974
7218
# This file is free software; the Free Software Foundation
6975
7219
# gives unlimited permission to copy and/or distribute it,
6979
7223
# ----------------------------
6980
7224
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6981
7225
# generated from the m4 files accompanying Automake X.Y.
6982
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
7226
# (This private macro should not be called outside this file.)
7227
AC_DEFUN([AM_AUTOMAKE_VERSION],
7228
[am__api_version='1.10'
7229
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7230
dnl require some minimum version. Point them to the right macro.
7231
m4_if([$1], [1.10], [],
7232
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7235
# _AM_AUTOCONF_VERSION(VERSION)
7236
# -----------------------------
7237
# aclocal traces this macro to find the Autoconf version.
7238
# This is a private macro too. Using m4_define simplifies
7239
# the logic in aclocal, which can simply ignore this definition.
7240
m4_define([_AM_AUTOCONF_VERSION], [])
6984
7242
# AM_SET_CURRENT_AUTOMAKE_VERSION
6985
7243
# -------------------------------
6986
# Call AM_AUTOMAKE_VERSION so it can be traced.
7244
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6987
7245
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6988
7246
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6989
[AM_AUTOMAKE_VERSION([1.9.6])])
7247
[AM_AUTOMAKE_VERSION([1.10])dnl
7248
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6991
7250
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
7044
7303
# AM_CONDITIONAL -*- Autoconf -*-
7046
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
7305
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7047
7306
# Free Software Foundation, Inc.
7049
7308
# This file is free software; the Free Software Foundation
7050
7309
# gives unlimited permission to copy and/or distribute it,
7051
7310
# with or without modifications, as long as this notice is preserved.
7055
7314
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7056
7315
# -------------------------------------
7074
7335
Usually this means the macro was only invoked conditionally.]])
7078
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7338
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7079
7339
# Free Software Foundation, Inc.
7081
7341
# This file is free software; the Free Software Foundation
7082
7342
# gives unlimited permission to copy and/or distribute it,
7083
7343
# with or without modifications, as long as this notice is preserved.
7087
7347
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7088
7348
# written in clear, in which case automake, when reading aclocal.m4,
7110
7370
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
7111
7371
[$1], CXX, [depcc="$CXX" am_compiler_list=],
7112
7372
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7373
[$1], UPC, [depcc="$UPC" am_compiler_list=],
7113
7374
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
7114
7375
[depcc="$$1" am_compiler_list=])
7252
7515
# some people rename them; so instead we look at the file content.
7253
7516
# Grep'ing the first line is not enough: some people post-process
7254
7517
# each Makefile.in and add a new line on top of each file to say so.
7255
# So let's grep whole file.
7256
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7518
# Grep'ing the whole file is not good either: AIX grep has a line
7519
# limit of 2048, but all sed's we know have understand at least 4000.
7520
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
7257
7521
dirpart=`AS_DIRNAME("$mf")`
7313
7577
# Do all the work for Automake. -*- Autoconf -*-
7315
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7316
# Free Software Foundation, Inc.
7579
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7580
# 2005, 2006 Free Software Foundation, Inc.
7318
7582
# This file is free software; the Free Software Foundation
7319
7583
# gives unlimited permission to copy and/or distribute it,
7336
7600
# arguments mandatory, and then we can depend on a new Autoconf
7337
7601
# release and drop the old call support.
7338
7602
AC_DEFUN([AM_INIT_AUTOMAKE],
7339
[AC_PREREQ([2.58])dnl
7603
[AC_PREREQ([2.60])dnl
7340
7604
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7341
7605
dnl the ones we care about.
7342
7606
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7343
7607
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7344
7608
AC_REQUIRE([AC_PROG_INSTALL])dnl
7345
# test to see if srcdir already configured
7346
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7347
test -f $srcdir/config.status; then
7348
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7609
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7610
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7611
# is not polluted with repeated "-I."
7612
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7613
# test to see if srcdir already configured
7614
if test -f $srcdir/config.status; then
7615
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7351
7619
# test whether we have cygpath
7365
7633
AC_SUBST([PACKAGE], [$1])dnl
7366
7634
AC_SUBST([VERSION], [$2])],
7367
7635
[_AM_SET_OPTIONS([$1])dnl
7636
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7637
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7638
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7368
7639
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7369
7640
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7543
7818
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7545
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7820
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7546
7821
# Free Software Foundation, Inc.
7548
7823
# This file is free software; the Free Software Foundation
7549
7824
# gives unlimited permission to copy and/or distribute it,
7550
7825
# with or without modifications, as long as this notice is preserved.
7554
7829
# AM_MISSING_PROG(NAME, PROGRAM)
7555
7830
# ------------------------------
7565
7840
# If it does, set am_missing_run to use it, otherwise, to nothing.
7566
7841
AC_DEFUN([AM_MISSING_HAS_RUN],
7567
7842
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7843
AC_REQUIRE_AUX_FILE([missing])dnl
7568
7844
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7569
7845
# Use eval to expand $SHELL
7570
7846
if eval "$MISSING --run true"; then
7578
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7854
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7580
7856
# This file is free software; the Free Software Foundation
7581
7857
# gives unlimited permission to copy and/or distribute it,
7584
7860
# AM_PROG_MKDIR_P
7585
7861
# ---------------
7586
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7588
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7589
# created by `make install' are always world readable, even if the
7590
# installer happens to have an overly restrictive umask (e.g. 077).
7591
# This was a mistake. There are at least two reasons why we must not
7593
# - it causes special bits like SGID to be ignored,
7594
# - it may be too restrictive (some setups expect 775 directories).
7596
# Do not use -m 0755 and let people choose whatever they expect by
7599
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7600
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7601
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7602
# concurrently, both version can detect that a/ is missing, but only
7603
# one can create it and the other will error out. Consequently we
7604
# restrict ourselves to GNU make (using the --version option ensures
7862
# Check for `mkdir -p'.
7606
7863
AC_DEFUN([AM_PROG_MKDIR_P],
7607
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7608
# We used to keeping the `.' as first argument, in order to
7609
# allow $(mkdir_p) to be used without argument. As in
7610
# $(mkdir_p) $(somedir)
7611
# where $(somedir) is conditionally defined. However this is wrong
7613
# 1. if the package is installed by a user who cannot write `.'
7614
# make install will fail,
7615
# 2. the above comment should most certainly read
7616
# $(mkdir_p) $(DESTDIR)$(somedir)
7617
# so it does not work when $(somedir) is undefined and
7618
# $(DESTDIR) is not.
7619
# To support the latter case, we have to write
7620
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7621
# so the `.' trick is pointless.
7622
mkdir_p='mkdir -p --'
7624
# On NextStep and OpenStep, the `mkdir' command does not
7625
# recognize any option. It will interpret all options as
7626
# directories to create, and then abort because `.' already
7628
for d in ./-p ./--version;
7630
test -d $d && rmdir $d
7632
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7633
if test -f "$ac_aux_dir/mkinstalldirs"; then
7634
mkdir_p='$(mkinstalldirs)'
7636
mkdir_p='$(install_sh) -d'
7639
AC_SUBST([mkdir_p])])
7864
[AC_PREREQ([2.60])dnl
7865
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7866
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7867
dnl while keeping a definition of mkdir_p for backward compatibility.
7868
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7869
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7870
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7871
dnl adjustment using top_builddir (which is defined more often than
7873
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7875
[[\\/$]]* | ?:[[\\/]]*) ;;
7876
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7641
7880
# Helper functions for option handling. -*- Autoconf -*-
7671
7910
AC_DEFUN([_AM_IF_OPTION],
7672
7911
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7913
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7915
# This file is free software; the Free Software Foundation
7916
# gives unlimited permission to copy and/or distribute it,
7917
# with or without modifications, as long as this notice is preserved.
7919
# AM_RUN_LOG(COMMAND)
7920
# -------------------
7921
# Run COMMAND, save the exit status in ac_status, and log it.
7922
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
7923
AC_DEFUN([AM_RUN_LOG],
7924
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
7925
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
7927
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
7928
(exit $ac_status); }])
7674
7930
# Check to make sure that the build environment is sane. -*- Autoconf -*-
7676
7932
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7748
8004
if test "$cross_compiling" != no; then
7749
8005
AC_CHECK_TOOL([STRIP], [strip], :)
7751
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8007
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7752
8008
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8010
# Copyright (C) 2006 Free Software Foundation, Inc.
8012
# This file is free software; the Free Software Foundation
8013
# gives unlimited permission to copy and/or distribute it,
8014
# with or without modifications, as long as this notice is preserved.
8016
# _AM_SUBST_NOTMAKE(VARIABLE)
8017
# ---------------------------
8018
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
8019
# This macro is traced by Automake.
8020
AC_DEFUN([_AM_SUBST_NOTMAKE])
7754
8022
# Check how to create a tarball. -*- Autoconf -*-
7756
8024
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8323
8591
AC_MSG_CHECKING([whether to build with debugging support])
8324
8592
if test x"$enable_debug" != x"no"; then
8325
8593
AC_DEFINE([DEBUG], [1], [Define for debugging support])
8327
xdt_cv_additional_CFLAGS="-Wall"
8595
if test x"$GCC" = x"yes"; then
8596
xdt_cv_additional_CFLAGS="-Wall"
8328
8598
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DXFCE_DISABLE_DEPRECATED"
8330
8600
if test x"$enable_debug" = x"full"; then
8331
8601
AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
8332
xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
8602
if test x"$GCC" = x"yes"; then
8603
xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
8333
8605
AC_MSG_RESULT([full])
8335
xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
8607
if test x"$GCC" = x"yes"; then
8608
xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
8336
8610
AC_MSG_RESULT([yes])
8492
8766
dnl Determine additional xgettext flags
8493
8767
AC_MSG_CHECKING([for additional xgettext flags])
8494
8768
if test x"$XGETTEXT_ARGS" = x""; then
8495
XGETTEXT_ARGS="--keyword=Q_";
8769
XGETTEXT_ARGS="--keyword=Q_ --from-code=UTF-8";
8497
XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_";
8771
XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_ --from-code=UTF-8";
8499
8773
AC_SUBST([XGETTEXT_ARGS])
8500
8774
AC_MSG_RESULT([$XGETTEXT_ARGS])