11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
dnl Autoconf macros for libgcrypt
15
dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
17
dnl This file is free software; as a special exception the author gives
18
dnl unlimited permission to copy and/or distribute it, with or without
19
dnl modifications, as long as this notice is preserved.
21
dnl This file is distributed in the hope that it will be useful, but
22
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
23
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26
dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION,
27
dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
28
dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS.
29
dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed
30
dnl with the API version to also check the API compatibility. Example:
31
dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed
32
dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using
33
dnl this features allows to prevent build against newer versions of libgcrypt
34
dnl with a changed API.
36
AC_DEFUN([AM_PATH_LIBGCRYPT],
37
[ AC_ARG_WITH(libgcrypt-prefix,
38
AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
39
[prefix where LIBGCRYPT is installed (optional)]),
40
libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
41
if test x$libgcrypt_config_prefix != x ; then
42
if test x${LIBGCRYPT_CONFIG+set} != xset ; then
43
LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
47
AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
48
tmp=ifelse([$1], ,1:1.2.0,$1)
49
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
50
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
51
min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
54
min_libgcrypt_version="$tmp"
57
AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version)
59
if test "$LIBGCRYPT_CONFIG" != "no" ; then
60
req_major=`echo $min_libgcrypt_version | \
61
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
62
req_minor=`echo $min_libgcrypt_version | \
63
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
64
req_micro=`echo $min_libgcrypt_version | \
65
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
66
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
67
major=`echo $libgcrypt_config_version | \
68
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
69
minor=`echo $libgcrypt_config_version | \
70
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
71
micro=`echo $libgcrypt_config_version | \
72
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
73
if test "$major" -gt "$req_major"; then
76
if test "$major" -eq "$req_major"; then
77
if test "$minor" -gt "$req_minor"; then
80
if test "$minor" -eq "$req_minor"; then
81
if test "$micro" -ge "$req_micro"; then
89
if test $ok = yes; then
94
if test $ok = yes; then
95
# If we have a recent libgcrypt, we should also check that the
97
if test "$req_libgcrypt_api" -gt 0 ; then
98
tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
99
if test "$tmp" -gt 0 ; then
100
AC_MSG_CHECKING([LIBGCRYPT API version])
101
if test "$req_libgcrypt_api" -eq "$tmp" ; then
105
AC_MSG_RESULT([does not match (want=$req_libgcrypt_api got=$tmp)])
110
if test $ok = yes; then
111
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
112
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
113
ifelse([$2], , :, [$2])
117
ifelse([$3], , :, [$3])
119
AC_SUBST(LIBGCRYPT_CFLAGS)
120
AC_SUBST(LIBGCRYPT_LIBS)
123
dnl Autoconf macros for libgnutls
126
# Modified for LIBGNUTLS -- nmav
127
# Configure paths for LIBGCRYPT
128
# Shamelessly stolen from the one of XDELTA by Owen Taylor
129
# Werner Koch 99-12-09
131
dnl AM_PATH_LIBGNUTLS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
132
dnl Test for libgnutls, and define LIBGNUTLS_CFLAGS and LIBGNUTLS_LIBS
134
AC_DEFUN([AM_PATH_LIBGNUTLS],
136
dnl Get the cflags and libraries from the libgnutls-config script
138
AC_ARG_WITH(libgnutls-prefix,
139
[ --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)],
140
libgnutls_config_prefix="$withval", libgnutls_config_prefix="")
142
if test x$libgnutls_config_prefix != x ; then
143
if test x${LIBGNUTLS_CONFIG+set} != xset ; then
144
LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
148
AC_PATH_PROG(LIBGNUTLS_CONFIG, libgnutls-config, no)
149
min_libgnutls_version=ifelse([$1], ,0.1.0,$1)
150
AC_MSG_CHECKING(for libgnutls - version >= $min_libgnutls_version)
152
if test "$LIBGNUTLS_CONFIG" = "no" ; then
155
LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
156
LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
157
libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
160
ac_save_CFLAGS="$CFLAGS"
162
CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
163
LIBS="$LIBS $LIBGNUTLS_LIBS"
165
dnl Now check if the installed libgnutls is sufficiently new. Also sanity
166
dnl checks the results of libgnutls-config to some extent
168
rm -f conf.libgnutlstest
173
#include <gnutls/gnutls.h>
178
system ("touch conf.libgnutlstest");
180
if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
182
printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
183
"$libgnutls_config_version", gnutls_check_version(NULL) );
184
printf("*** was found! If libgnutls-config was correct, then it is best\n");
185
printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
186
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
187
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
188
printf("*** required on your system.\n");
189
printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
190
printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
191
printf("*** before re-running configure\n");
193
else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
195
printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
196
printf("*** library (version %s)\n", gnutls_check_version(NULL) );
200
if ( gnutls_check_version( "$min_libgnutls_version" ) )
206
printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
207
gnutls_check_version(NULL) );
208
printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
209
"$min_libgnutls_version" );
210
printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
212
printf("*** If you have already installed a sufficiently new version, this error\n");
213
printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
214
printf("*** being found. The easiest way to fix this is to remove the old version\n");
215
printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
216
printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
217
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
218
printf("*** so that the correct libraries are found at run-time))\n");
223
],, no_libgnutls=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
224
CFLAGS="$ac_save_CFLAGS"
228
if test "x$no_libgnutls" = x ; then
230
ifelse([$2], , :, [$2])
232
if test -f conf.libgnutlstest ; then
237
if test "$LIBGNUTLS_CONFIG" = "no" ; then
238
echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
239
echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
240
echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
241
echo "*** full path to libgnutls-config."
243
if test -f conf.libgnutlstest ; then
246
echo "*** Could not run libgnutls test program, checking why..."
247
CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
248
LIBS="$LIBS $LIBGNUTLS_LIBS"
253
#include <gnutls/gnutls.h>
254
], [ return !!gnutls_check_version(NULL); ],
255
[ echo "*** The test program compiled, but did not run. This usually means"
256
echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
257
echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
258
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
259
echo "*** to the installed location Also, make sure you have run ldconfig if that"
260
echo "*** is required on your system"
262
echo "*** If you have an old version installed, it is best to remove it, although"
263
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
265
[ echo "*** The test program failed to compile or link. See the file config.log for the"
266
echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
267
echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
268
echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG" ])
269
CFLAGS="$ac_save_CFLAGS"
275
ifelse([$3], , :, [$3])
277
rm -f conf.libgnutlstest
278
AC_SUBST(LIBGNUTLS_CFLAGS)
279
AC_SUBST(LIBGNUTLS_LIBS)
282
dnl *-*wedit:notab*-* Please keep this as the last line.
14
284
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
16
286
# serial 47 AC_PROG_LIBTOOL
667
988
lt_cv_sys_max_cmd_len=8192;
991
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
992
# This has been around since 386BSD, at least. Likely further.
993
if test -x /sbin/sysctl; then
994
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
995
elif test -x /usr/sbin/sysctl; then
996
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
998
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
1000
# And add a safety zone
1001
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1002
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1005
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1006
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1007
# nice to cause kernel panics so lets avoid the loop below.
1008
# First set a reasonable default.
1009
lt_cv_sys_max_cmd_len=16384
1011
if test -x /sbin/sysconfig; then
1012
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1013
*1*) lt_cv_sys_max_cmd_len=-1 ;;
671
1018
# If test is not a shell built-in, we'll probably end up computing a
672
1019
# maximum length that is only half of the actual maximum length, but
673
1020
# we can't tell.
674
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
675
= "XX$testring") >/dev/null 2>&1 &&
676
new_result=`expr "X$testring" : ".*" 2>&1` &&
1021
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1022
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1023
= "XX$teststring") >/dev/null 2>&1 &&
1024
new_result=`expr "X$teststring" : ".*" 2>&1` &&
677
1025
lt_cv_sys_max_cmd_len=$new_result &&
678
1026
test $i != 17 # 1/2 MB should be enough
681
testring=$testring$testring
1029
teststring=$teststring$teststring
684
1032
# Add a significant safety factor because C++ compilers can tack on massive
685
1033
# amounts of additional arguments before passing them to the linker.
686
1034
# It appears as though 1/2 is a usable value.
2539
2910
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2540
2911
test "$enable_shared" = yes && enable_static=no
2543
darwin* | rhapsody*)
2544
if test "$GCC" = yes; then
2545
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2547
rhapsody* | darwin1.[[012]])
2548
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2551
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2552
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2554
case ${MACOSX_DEPLOYMENT_TARGET} in
2556
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2559
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2565
output_verbose_link_cmd='echo'
2566
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2567
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2568
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2569
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
2570
_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}'
2571
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2572
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2573
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2574
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2575
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2577
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2581
2915
AC_MSG_RESULT([$enable_shared])
2876
3218
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2880
darwin* | rhapsody*)
2881
if test "$GXX" = yes; then
2882
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2884
rhapsody* | darwin1.[[012]])
2885
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2888
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2889
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2891
case ${MACOSX_DEPLOYMENT_TARGET} in
2893
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2896
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3221
darwin* | rhapsody*)
3223
rhapsody* | darwin1.[[012]])
3224
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3227
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3228
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3230
case ${MACOSX_DEPLOYMENT_TARGET} in
3232
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3235
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2902
lt_int_apple_cc_single_mod=no
2903
output_verbose_link_cmd='echo'
2904
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2905
lt_int_apple_cc_single_mod=yes
2907
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2908
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2910
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
2912
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3241
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3242
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3243
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3244
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3245
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3246
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2914
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2915
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2916
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
2918
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
2920
_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}'
2921
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2922
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2923
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2924
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2925
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2927
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3248
if test "$GXX" = yes ; then
3249
lt_int_apple_cc_single_mod=no
3250
output_verbose_link_cmd='echo'
3251
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3252
lt_int_apple_cc_single_mod=yes
3254
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3255
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3257
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
3259
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3260
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3261
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3262
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
3264
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
3266
_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}'
3268
case $cc_basename in
3270
output_verbose_link_cmd='echo'
3271
_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'
3272
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3273
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3274
_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}'
3275
_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}'
3278
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2932
3285
case $cc_basename in
2934
3287
# FIXME: insert proper C++ library support
2935
3288
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2938
3291
# Green Hills C++ Compiler
2939
3292
# FIXME: insert proper C++ library support
2940
3293
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3129
3482
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3130
3483
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3134
3487
with_gnu_ld=yes
3488
# version 8.0 and above of icpc choke on multiply defined symbols
3489
# if we add $predep_objects and $postdep_objects, however 7.1 and
3490
# earlier do not add the objects themselves.
3491
case `$CC -V 2>&1` in
3493
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3494
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3496
*) # Version 8.0 or newer
3499
ia64*) tmp_idyn=' -i_dynamic';;
3501
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3502
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3135
3505
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3136
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3137
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3138
3506
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3139
3507
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3140
3508
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3511
# Portland Group C++ compiler
3512
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3513
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$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'
3515
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3516
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3517
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3144
3521
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3145
3522
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5349
5846
# Tell ltmain to make .lib files, not .a files.
5351
5848
# Tell ltmain to make .dll files, not .so files.
5353
5850
# FIXME: Setting linknames here is a bad hack.
5354
5851
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5355
5852
# The linker will automatically build a .lib file if we build a DLL.
5356
5853
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5357
5854
# FIXME: Should let the user specify the lib program.
5358
5855
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5359
fix_srcfile_path='`cygpath -w "$srcfile"`'
5856
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5360
5857
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5363
5860
darwin* | rhapsody*)
5364
if test "$GXX" = yes ; then
5365
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5366
5861
case "$host_os" in
5367
rhapsody* | darwin1.[[012]])
5368
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5371
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5372
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5374
case ${MACOSX_DEPLOYMENT_TARGET} in
5376
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5379
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5862
rhapsody* | darwin1.[[012]])
5863
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5866
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5867
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5869
case ${MACOSX_DEPLOYMENT_TARGET} in
5871
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5874
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5385
lt_int_apple_cc_single_mod=no
5880
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5881
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5882
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5883
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5884
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5885
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5886
if test "$GCC" = yes ; then
5386
5887
output_verbose_link_cmd='echo'
5387
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5388
lt_int_apple_cc_single_mod=yes
5390
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5391
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5393
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
5395
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5888
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5889
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5396
5890
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5397
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5398
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
5400
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
5891
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
5892
_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}'
5894
case $cc_basename in
5896
output_verbose_link_cmd='echo'
5897
_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'
5898
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5899
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5900
_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}'
5402
5901
_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}'
5403
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5404
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5405
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5406
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5407
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5409
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5904
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5981
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
5982
# Generated from amversion.in; do not edit by hand.
5984
# This program is free software; you can redistribute it and/or modify
5985
# it under the terms of the GNU General Public License as published by
5986
# the Free Software Foundation; either version 2, or (at your option)
5987
# any later version.
5989
# This program is distributed in the hope that it will be useful,
5990
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5991
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5992
# GNU General Public License for more details.
5994
# You should have received a copy of the GNU General Public License
5995
# along with this program; if not, write to the Free Software
5996
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6490
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6492
# This file is free software; the Free Software Foundation
6493
# gives unlimited permission to copy and/or distribute it,
6494
# with or without modifications, as long as this notice is preserved.
5998
6496
# AM_AUTOMAKE_VERSION(VERSION)
5999
6497
# ----------------------------
6000
6498
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6001
6499
# generated from the m4 files accompanying Automake X.Y.
6002
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
6500
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6004
6502
# AM_SET_CURRENT_AUTOMAKE_VERSION
6005
6503
# -------------------------------
6006
6504
# Call AM_AUTOMAKE_VERSION so it can be traced.
6007
6505
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6008
6506
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6009
[AM_AUTOMAKE_VERSION([1.8.3])])
6013
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6015
# This program is free software; you can redistribute it and/or modify
6016
# it under the terms of the GNU General Public License as published by
6017
# the Free Software Foundation; either version 2, or (at your option)
6018
# any later version.
6020
# This program is distributed in the hope that it will be useful,
6021
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6022
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6023
# GNU General Public License for more details.
6025
# You should have received a copy of the GNU General Public License
6026
# along with this program; if not, write to the Free Software
6027
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6507
[AM_AUTOMAKE_VERSION([1.9.6])])
6509
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6511
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6513
# This file is free software; the Free Software Foundation
6514
# gives unlimited permission to copy and/or distribute it,
6515
# with or without modifications, as long as this notice is preserved.
6030
6517
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6031
6518
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6112
6589
AC_CONFIG_COMMANDS_PRE(
6113
6590
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6114
AC_MSG_ERROR([conditional "$1" was never defined.
6115
Usually this means the macro was only invoked conditionally.])
6591
AC_MSG_ERROR([[conditional "$1" was never defined.
6592
Usually this means the macro was only invoked conditionally.]])
6118
# serial 7 -*- Autoconf -*-
6120
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6596
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6121
6597
# Free Software Foundation, Inc.
6123
# This program is free software; you can redistribute it and/or modify
6124
# it under the terms of the GNU General Public License as published by
6125
# the Free Software Foundation; either version 2, or (at your option)
6126
# any later version.
6128
# This program is distributed in the hope that it will be useful,
6129
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6130
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6131
# GNU General Public License for more details.
6133
# You should have received a copy of the GNU General Public License
6134
# along with this program; if not, write to the Free Software
6135
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6599
# This file is free software; the Free Software Foundation
6600
# gives unlimited permission to copy and/or distribute it,
6601
# with or without modifications, as long as this notice is preserved.
6139
6605
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6140
6606
# written in clear, in which case automake, when reading aclocal.m4,
6362
6816
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6365
# Do all the work for Automake. -*- Autoconf -*-
6367
# This macro actually does too much some checks are only needed if
6819
# Do all the work for Automake. -*- Autoconf -*-
6821
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6822
# Free Software Foundation, Inc.
6824
# This file is free software; the Free Software Foundation
6825
# gives unlimited permission to copy and/or distribute it,
6826
# with or without modifications, as long as this notice is preserved.
6830
# This macro actually does too much. Some checks are only needed if
6368
6831
# your package does certain things. But this isn't really a big deal.
6370
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6371
# Free Software Foundation, Inc.
6373
# This program is free software; you can redistribute it and/or modify
6374
# it under the terms of the GNU General Public License as published by
6375
# the Free Software Foundation; either version 2, or (at your option)
6376
# any later version.
6378
# This program is distributed in the hope that it will be useful,
6379
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6380
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6381
# GNU General Public License for more details.
6383
# You should have received a copy of the GNU General Public License
6384
# along with this program; if not, write to the Free Software
6385
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6390
6833
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6391
6834
# AM_INIT_AUTOMAKE([OPTIONS])
6392
6835
# -----------------------------------------------
6487
6931
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6933
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6935
# This file is free software; the Free Software Foundation
6936
# gives unlimited permission to copy and/or distribute it,
6937
# with or without modifications, as long as this notice is preserved.
6489
6939
# AM_PROG_INSTALL_SH
6490
6940
# ------------------
6491
6941
# Define $install_sh.
6493
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6495
# This program is free software; you can redistribute it and/or modify
6496
# it under the terms of the GNU General Public License as published by
6497
# the Free Software Foundation; either version 2, or (at your option)
6498
# any later version.
6500
# This program is distributed in the hope that it will be useful,
6501
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6502
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6503
# GNU General Public License for more details.
6505
# You should have received a copy of the GNU General Public License
6506
# along with this program; if not, write to the Free Software
6507
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6510
6942
AC_DEFUN([AM_PROG_INSTALL_SH],
6511
6943
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6512
6944
install_sh=${install_sh-"$am_aux_dir/install-sh"}
6513
6945
AC_SUBST(install_sh)])
6516
# Copyright (C) 2003 Free Software Foundation, Inc.
6518
# This program is free software; you can redistribute it and/or modify
6519
# it under the terms of the GNU General Public License as published by
6520
# the Free Software Foundation; either version 2, or (at your option)
6521
# any later version.
6523
# This program is distributed in the hope that it will be useful,
6524
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6525
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6526
# GNU General Public License for more details.
6528
# You should have received a copy of the GNU General Public License
6529
# along with this program; if not, write to the Free Software
6530
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6947
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
6949
# This file is free software; the Free Software Foundation
6950
# gives unlimited permission to copy and/or distribute it,
6951
# with or without modifications, as long as this notice is preserved.
6535
6955
# Check whether the underlying file-system supports filenames
6536
6956
# with a leading dot. For instance MS-DOS doesn't.
6545
6965
rmdir .tst 2>/dev/null
6546
6966
AC_SUBST([am__leading_dot])])
6548
# Check to see how 'make' treats includes. -*- Autoconf -*-
6550
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6552
# This program is free software; you can redistribute it and/or modify
6553
# it under the terms of the GNU General Public License as published by
6554
# the Free Software Foundation; either version 2, or (at your option)
6555
# any later version.
6557
# This program is distributed in the hope that it will be useful,
6558
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6559
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6560
# GNU General Public License for more details.
6562
# You should have received a copy of the GNU General Public License
6563
# along with this program; if not, write to the Free Software
6564
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6968
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
6971
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
6972
# Free Software Foundation, Inc.
6974
# This file is free software; the Free Software Foundation
6975
# gives unlimited permission to copy and/or distribute it,
6976
# with or without modifications, as long as this notice is preserved.
6980
AC_DEFUN([AM_MAINTAINER_MODE],
6981
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
6982
dnl maintainer-mode is disabled by default
6983
AC_ARG_ENABLE(maintainer-mode,
6984
[ --enable-maintainer-mode enable make rules and dependencies not useful
6985
(and sometimes confusing) to the casual installer],
6986
USE_MAINTAINER_MODE=$enableval,
6987
USE_MAINTAINER_MODE=no)
6988
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
6989
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
6990
MAINT=$MAINTAINER_MODE_TRUE
6995
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
6997
# Check to see how 'make' treats includes. -*- Autoconf -*-
6999
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7001
# This file is free software; the Free Software Foundation
7002
# gives unlimited permission to copy and/or distribute it,
7003
# with or without modifications, as long as this notice is preserved.
6569
7007
# AM_MAKE_INCLUDE()
6570
7008
# -----------------
6867
7257
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6868
7258
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7260
# Check how to create a tarball. -*- Autoconf -*-
7262
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7264
# This file is free software; the Free Software Foundation
7265
# gives unlimited permission to copy and/or distribute it,
7266
# with or without modifications, as long as this notice is preserved.
7270
# _AM_PROG_TAR(FORMAT)
7271
# --------------------
7272
# Check how to create a tarball in format FORMAT.
7273
# FORMAT should be one of `v7', `ustar', or `pax'.
7275
# Substitute a variable $(am__tar) that is a command
7276
# writing to stdout a FORMAT-tarball containing the directory
7278
# tardir=directory && $(am__tar) > result.tar
7280
# Substitute a variable $(am__untar) that extract such
7281
# a tarball read from stdin.
7282
# $(am__untar) < result.tar
7283
AC_DEFUN([_AM_PROG_TAR],
7284
[# Always define AMTAR for backward compatibility.
7285
AM_MISSING_PROG([AMTAR], [tar])
7287
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7288
[m4_case([$1], [ustar],, [pax],,
7289
[m4_fatal([Unknown tar format])])
7290
AC_MSG_CHECKING([how to create a $1 tar archive])
7291
# Loop over all known methods to create a tar archive until one works.
7292
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7293
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
7294
# Do not fold the above two line into one, because Tru64 sh and
7295
# Solaris sh will not grok spaces in the rhs of `-'.
7296
for _am_tool in $_am_tools
7300
for _am_tar in tar gnutar gtar;
7302
AM_RUN_LOG([$_am_tar --version]) && break
7304
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7305
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7306
am__untar="$_am_tar -xf -"
7309
# Must skip GNU tar: if it does not support --format= it doesn't create
7310
# ustar tarball either.
7311
(tar --version) >/dev/null 2>&1 && continue
7312
am__tar='tar chf - "$$tardir"'
7313
am__tar_='tar chf - "$tardir"'
7314
am__untar='tar xf -'
7317
am__tar='pax -L -x $1 -w "$$tardir"'
7318
am__tar_='pax -L -x $1 -w "$tardir"'
7322
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7323
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7324
am__untar='cpio -i -H $1 -d'
7333
# If the value was cached, stop now. We just wanted to have am__tar
7334
# and am__untar set.
7335
test -n "${am_cv_prog_tar_$1}" && break
7337
# tar/untar a dummy directory, and stop if the command works
7340
echo GrepMe > conftest.dir/file
7341
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7343
if test -s conftest.tar; then
7344
AM_RUN_LOG([$am__untar <conftest.tar])
7345
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7350
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7351
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7353
AC_SUBST([am__untar])