986
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
987
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
988
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
989
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
985
991
# Remove file type tags (using []) from po/POTFILES.
987
993
ifdef([AC_DIVERSION_ICMDS],[
988
994
AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)
990
mv -f po/POTFILES po/POTFILES.tmp
991
sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
995
[mv -f po/POTFILES po/POTFILES.tmp
996
sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
992
997
rm -f po/POTFILES.tmp
996
1001
ifdef([AC_CONFIG_COMMANDS_PRE],[
997
1002
AC_CONFIG_COMMANDS_PRE([
999
mv -f po/POTFILES po/POTFILES.tmp
1000
sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
1003
[mv -f po/POTFILES po/POTFILES.tmp
1004
sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
1001
1005
rm -f po/POTFILES.tmp
1007
1011
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
1009
AC_OUTPUT_COMMANDS([
1011
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-extract.in > intltool-extract.out
1013
AC_CONFIG_COMMANDS([intltool], [
1015
intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
1016
-e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
1017
-e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
1018
-e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
1019
-e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
1020
-e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
1022
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
1023
> intltool-extract.out
1012
1024
if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
1013
1025
rm -f intltool-extract.out
3612
3734
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3613
3735
test "$enable_shared" = yes && enable_static=no
3616
darwin* | rhapsody*)
3617
if test "$GCC" = yes; then
3618
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3620
rhapsody* | darwin1.[[012]])
3621
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3624
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3625
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3627
case ${MACOSX_DEPLOYMENT_TARGET} in
3629
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3632
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3638
output_verbose_link_cmd='echo'
3639
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3640
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3641
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3642
_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}'
3643
_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}'
3644
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3645
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3646
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3647
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3648
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3650
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3654
3739
AC_MSG_RESULT([$enable_shared])
3949
4042
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3953
darwin* | rhapsody*)
3954
if test "$GXX" = yes; then
3955
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3957
rhapsody* | darwin1.[[012]])
3958
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3961
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3962
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3964
case ${MACOSX_DEPLOYMENT_TARGET} in
3966
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3969
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4045
darwin* | rhapsody*)
4047
rhapsody* | darwin1.[[012]])
4048
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4051
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4052
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4054
case ${MACOSX_DEPLOYMENT_TARGET} in
4056
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4059
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3975
lt_int_apple_cc_single_mod=no
3976
output_verbose_link_cmd='echo'
3977
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3978
lt_int_apple_cc_single_mod=yes
3980
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3981
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3983
_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'
3985
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4065
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4066
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4067
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4068
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4069
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4070
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3987
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3988
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3989
_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}'
3991
_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}'
3993
_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}'
3994
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3995
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3996
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3997
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3998
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4000
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4072
if test "$GXX" = yes ; then
4073
lt_int_apple_cc_single_mod=no
4074
output_verbose_link_cmd='echo'
4075
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4076
lt_int_apple_cc_single_mod=yes
4078
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4079
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4081
_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'
4083
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4084
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4085
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4086
_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}'
4088
_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}'
4090
_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}'
4092
case $cc_basename in
4094
output_verbose_link_cmd='echo'
4095
_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'
4096
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4097
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4098
_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}'
4099
_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}'
4102
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4005
4109
case $cc_basename in
4007
4111
# FIXME: insert proper C++ library support
4008
4112
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4011
4115
# Green Hills C++ Compiler
4012
4116
# FIXME: insert proper C++ library support
4013
4117
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4202
4306
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4203
4307
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4207
4311
with_gnu_ld=yes
4312
# version 8.0 and above of icpc choke on multiply defined symbols
4313
# if we add $predep_objects and $postdep_objects, however 7.1 and
4314
# earlier do not add the objects themselves.
4315
case `$CC -V 2>&1` in
4317
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4318
_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'
4320
*) # Version 8.0 or newer
4323
ia64*) tmp_idyn=' -i_dynamic';;
4325
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4326
_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'
4208
4329
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4209
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4210
_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'
4211
4330
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4212
4331
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4213
4332
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4335
# Portland Group C++ compiler
4336
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4337
_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'
4339
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4340
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4341
_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'
4217
4345
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4218
4346
_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'
4426
4570
case $cc_basename in
4428
4572
# Sun C++ 4.2, 5.x and Centerline C++
4573
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4429
4574
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4430
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4575
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4431
4576
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4432
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4577
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4434
4579
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4435
4580
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4436
4581
case $host_os in
4437
solaris2.[0-5] | solaris2.[0-5].*) ;;
4582
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4439
4584
# The C++ compiler is used as linker so we must use $wl
4440
4585
# flag to pass the commands to the underlying system
4586
# linker. We must also pass each convience library through
4587
# to the system linker between allextract/defaultextract.
4588
# The C++ compiler will combine linker options so we
4589
# cannot just pass the convience library names through
4442
4591
# Supported since Solaris 2.6 (maybe 2.5.1?)
4443
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4592
_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'
4446
4595
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4448
# Commands to make compiler produce verbose output that lists
4449
# what "hidden" libraries, object files and flags are used when
4450
# linking a shared library.
4452
# There doesn't appear to be a way to prevent this compiler from
4453
# explicitly linking system object files so we need to strip them
4454
# from the output so that they don't get included in the library
4456
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4597
output_verbose_link_cmd='echo'
4458
4599
# Archives containing C++ object files must be created using
4459
4600
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6180
6435
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6437
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6442
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6444
case $cc_basename,$host_cpu in
6445
pgcc*) # Portland Group C compiler
6446
_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'
6447
tmp_addflag=' $pic_flag'
6449
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6450
_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'
6451
tmp_addflag=' $pic_flag -Mnomain' ;;
6452
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6453
tmp_addflag=' -i_dynamic' ;;
6454
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6455
tmp_addflag=' -i_dynamic -nofor_main' ;;
6456
ifc* | ifort*) # Intel Fortran compiler
6457
tmp_addflag=' -nofor_main' ;;
6459
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6461
if test $supports_anon_versioning = yes; then
6462
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6463
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6464
$echo "local: *; };" >> $output_objdir/$libname.ver~
6465
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6467
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6469
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6473
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6187
6474
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6188
6475
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6429
6689
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6430
6690
# FIXME: Should let the user specify the lib program.
6431
6691
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6432
fix_srcfile_path='`cygpath -w "$srcfile"`'
6692
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6433
6693
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6436
6696
darwin* | rhapsody*)
6437
if test "$GXX" = yes ; then
6698
rhapsody* | darwin1.[[012]])
6699
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6702
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6703
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6705
case ${MACOSX_DEPLOYMENT_TARGET} in
6707
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6710
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6438
6716
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6440
rhapsody* | darwin1.[[012]])
6441
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6444
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6445
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6447
case ${MACOSX_DEPLOYMENT_TARGET} in
6449
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6452
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6458
lt_int_apple_cc_single_mod=no
6717
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6718
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6719
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6720
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6721
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6722
if test "$GCC" = yes ; then
6459
6723
output_verbose_link_cmd='echo'
6460
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6461
lt_int_apple_cc_single_mod=yes
6463
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6464
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6466
_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'
6468
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6469
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6470
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6471
_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}'
6473
_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}'
6724
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6725
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6726
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6727
_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}'
6728
_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}'
6730
case $cc_basename in
6732
output_verbose_link_cmd='echo'
6733
_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'
6734
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6735
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6736
_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}'
6475
6737
_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}'
6476
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6477
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6478
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6479
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6480
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6482
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6740
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6990
7264
SED=$lt_cv_path_SED
6992
7265
AC_MSG_RESULT([$SED])
6996
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
6997
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
6998
dnl also defines GSTUFF_PKG_ERRORS on error
6999
AC_DEFUN([PKG_CHECK_MODULES], [
7002
if test -z "$PKG_CONFIG"; then
7003
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
7006
if test "$PKG_CONFIG" = "no" ; then
7007
echo "*** The pkg-config script could not be found. Make sure it is"
7008
echo "*** in your path, or set the PKG_CONFIG environment variable"
7009
echo "*** to the full path to pkg-config."
7010
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7012
PKG_CONFIG_MIN_VERSION=0.9.0
7013
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7014
AC_MSG_CHECKING(for $2)
7016
if $PKG_CONFIG --exists "$2" ; then
7020
AC_MSG_CHECKING($1_CFLAGS)
7021
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
7022
AC_MSG_RESULT($$1_CFLAGS)
7024
AC_MSG_CHECKING($1_LIBS)
7025
$1_LIBS=`$PKG_CONFIG --libs "$2"`
7026
AC_MSG_RESULT($$1_LIBS)
7030
## If we have a custom action on failure, don't print errors, but
7031
## do set a variable so people can do so.
7032
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7033
ifelse([$4], ,echo $$1_PKG_ERRORS,)
7268
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7270
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
7272
# This program is free software; you can redistribute it and/or modify
7273
# it under the terms of the GNU General Public License as published by
7274
# the Free Software Foundation; either version 2 of the License, or
7275
# (at your option) any later version.
7277
# This program is distributed in the hope that it will be useful, but
7278
# WITHOUT ANY WARRANTY; without even the implied warranty of
7279
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7280
# General Public License for more details.
7282
# You should have received a copy of the GNU General Public License
7283
# along with this program; if not, write to the Free Software
7284
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7286
# As a special exception to the GNU General Public License, if you
7287
# distribute this file as part of a program that contains a
7288
# configuration script generated by Autoconf, you may include it under
7289
# the same distribution terms that you use for the rest of that program.
7291
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
7292
# ----------------------------------
7293
AC_DEFUN([PKG_PROG_PKG_CONFIG],
7294
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
7295
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
7296
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
7297
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7298
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7300
if test -n "$PKG_CONFIG"; then
7301
_pkg_min_version=m4_default([$1], [0.9.0])
7302
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7303
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7304
AC_MSG_RESULT([yes])
7311
])# PKG_PROG_PKG_CONFIG
7313
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7315
# Check to see whether a particular set of modules exists. Similar
7316
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
7319
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
7320
# this or PKG_CHECK_MODULES is called, or make sure to call
7321
# PKG_CHECK_EXISTS manually
7322
# --------------------------------------------------------------
7323
AC_DEFUN([PKG_CHECK_EXISTS],
7324
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7325
if test -n "$PKG_CONFIG" && \
7326
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
7327
m4_ifval([$2], [$2], [:])
7328
m4_ifvaln([$3], [else
7333
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7334
# ---------------------------------------------
7335
m4_define([_PKG_CONFIG],
7336
[if test -n "$PKG_CONFIG"; then
7337
if test -n "$$1"; then
7340
PKG_CHECK_EXISTS([$3],
7341
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7349
# _PKG_SHORT_ERRORS_SUPPORTED
7350
# -----------------------------
7351
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
7352
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
7353
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7354
_pkg_short_errors_supported=yes
7356
_pkg_short_errors_supported=no
7358
])# _PKG_SHORT_ERRORS_SUPPORTED
7361
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7362
# [ACTION-IF-NOT-FOUND])
7365
# Note that if there is a possibility the first call to
7366
# PKG_CHECK_MODULES might not happen, you should be sure to include an
7367
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
7370
# --------------------------------------------------------------
7371
AC_DEFUN([PKG_CHECK_MODULES],
7372
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7373
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
7374
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
7377
AC_MSG_CHECKING([for $1])
7379
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7380
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
7382
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
7383
and $1[]_LIBS to avoid the need to call pkg-config.
7384
See the pkg-config man page for more details.])
7386
if test $pkg_failed = yes; then
7387
_PKG_SHORT_ERRORS_SUPPORTED
7388
if test $_pkg_short_errors_supported = yes; then
7389
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
7391
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7039
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7040
echo "*** See http://www.freedesktop.org/software/pkgconfig"
7044
if test $succeeded = yes; then
7045
ifelse([$3], , :, [$3])
7047
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
7393
# Put the nasty error message in config.log where it belongs
7394
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7396
ifelse([$4], , [AC_MSG_ERROR(dnl
7397
[Package requirements ($2) were not met:
7401
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7402
installed software in a non-standard prefix.
7407
elif test $pkg_failed = untried; then
7408
ifelse([$4], , [AC_MSG_FAILURE(dnl
7409
[The pkg-config script could not be found or is too old. Make sure it
7410
is in your PATH or set the PKG_CONFIG environment variable to the full
7415
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
7418
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7419
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
7420
AC_MSG_RESULT([yes])
7421
ifelse([$3], , :, [$3])
7423
])# PKG_CHECK_MODULES
7053
7425
dnl Perform a check for a GStreamer element using gst-inspect
7054
7426
dnl Thomas Vander Stichele <thomas at apestaart dot org>
7055
dnl Last modification: 23/10/2002
7057
# arch-tag: Autoconf macro for checking GStreamer elements
7427
dnl Last modification: 25/01/2005
7059
7429
dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
7061
AC_DEFUN(AM_GST_ELEMENT_CHECK,
7431
AC_DEFUN([AM_GST_ELEMENT_CHECK],
7063
AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, [])
7433
if test "x$GST_INSPECT" == "x"; then
7434
AC_CHECK_PROG(GST_INSPECT, gst-inspect-0.8, gst-inspect-0.8, [])
7064
7437
if test "x$GST_INSPECT" != "x"; then
7065
7438
AC_MSG_CHECKING(GStreamer element $1)
7066
7439
if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
7076
# Configure paths for libogg
7077
# Jack Moffitt <jack@icecast.org> 10-21-2000
7078
# Shamelessly stolen from Owen Taylor and Manish Singh
7080
# arch-tag: Autoconf macro for checking libogg
7082
dnl XIPH_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7083
dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS
7085
AC_DEFUN(MM_PATH_OGG,
7087
dnl Get the cflags and libraries
7089
AC_ARG_WITH(ogg,[ --with-ogg=PFX Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="")
7090
AC_ARG_WITH(ogg-libraries,[ --with-ogg-libraries=DIR Directory where libogg library is installed (optional)], ogg_libraries="$withval", ogg_libraries="")
7091
AC_ARG_WITH(ogg-includes,[ --with-ogg-includes=DIR Directory where libogg header files are installed (optional)], ogg_includes="$withval", ogg_includes="")
7092
AC_ARG_ENABLE(oggtest, [ --disable-oggtest Do not try to compile and run a test Ogg program],, enable_oggtest=yes)
7094
if test "x$ogg_libraries" != "x" ; then
7095
OGG_LIBS="-L$ogg_libraries"
7096
elif test "x$ogg_prefix" != "x" ; then
7097
OGG_LIBS="-L$ogg_prefix/lib"
7098
elif test "x$prefix" != "xNONE" ; then
7099
OGG_LIBS="-L$prefix/lib"
7102
OGG_LIBS="$OGG_LIBS -logg"
7104
if test "x$ogg_includes" != "x" ; then
7105
OGG_CFLAGS="-I$ogg_includes"
7106
elif test "x$ogg_prefix" != "x" ; then
7107
OGG_CFLAGS="-I$ogg_prefix/include"
7110
AC_MSG_CHECKING(for Ogg)
7114
if test "x$enable_oggtest" = "xyes" ; then
7115
ac_save_CFLAGS="$CFLAGS"
7116
ac_save_LIBS="$LIBS"
7117
CFLAGS="$CFLAGS $OGG_CFLAGS"
7118
LIBS="$LIBS $OGG_LIBS"
7120
dnl Now check if the installed Ogg is sufficiently new.
7127
#include <ogg/ogg.h>
7131
system("touch conf.oggtest");
7135
],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
7136
CFLAGS="$ac_save_CFLAGS"
7137
LIBS="$ac_save_LIBS"
7140
if test "x$no_ogg" = "x" ; then
7142
ifelse([$1], , :, [$1])
7145
if test -f conf.oggtest ; then
7148
echo "*** Could not run Ogg test program, checking why..."
7149
CFLAGS="$CFLAGS $OGG_CFLAGS"
7150
LIBS="$LIBS $OGG_LIBS"
7153
#include <ogg/ogg.h>
7155
[ echo "*** The test program compiled, but did not run. This usually means"
7156
echo "*** that the run-time linker is not finding Ogg or finding the wrong"
7157
echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
7158
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7159
echo "*** to the installed location Also, make sure you have run ldconfig if that"
7160
echo "*** is required on your system"
7162
echo "*** If you have an old version installed, it is best to remove it, although"
7163
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
7164
[ echo "*** The test program failed to compile or link. See the file config.log for the"
7165
echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
7166
echo "*** or that you have moved Ogg since it was installed." ])
7167
CFLAGS="$ac_save_CFLAGS"
7168
LIBS="$ac_save_LIBS"
7172
ifelse([$2], , :, [$2])
7174
AC_SUBST(OGG_CFLAGS)
7179
# Configure paths for libvorbis
7180
# Jack Moffitt <jack@icecast.org> 10-21-2000
7181
# Shamelessly stolen from Owen Taylor and Manish Singh
7182
# thomasvs added check for vorbis_bitrate_addblock which is new in rc3
7184
# arch-tag: Autoconf macro for checking libvorbis
7186
dnl XIPH_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7187
dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS
7189
AC_DEFUN(MM_PATH_VORBIS,
7191
dnl Get the cflags and libraries
7193
AC_ARG_WITH(vorbis,[ --with-vorbis=PFX Prefix where libvorbis is installed (optional)], vorbis_prefix="$withval", vorbis_prefix="")
7194
AC_ARG_WITH(vorbis-libraries,[ --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)], vorbis_libraries="$withval", vorbis_libraries="")
7195
AC_ARG_WITH(vorbis-includes,[ --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)], vorbis_includes="$withval", vorbis_includes="")
7196
AC_ARG_ENABLE(vorbistest, [ --disable-vorbistest Do not try to compile and run a test Vorbis program],, enable_vorbistest=yes)
7198
if test "x$vorbis_libraries" != "x" ; then
7199
VORBIS_LIBS="-L$vorbis_libraries"
7200
elif test "x$vorbis_prefix" != "x" ; then
7201
VORBIS_LIBS="-L$vorbis_prefix/lib"
7202
elif test "x$prefix" != "xNONE"; then
7203
VORBIS_LIBS="-L$prefix/lib"
7206
VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
7207
VORBISFILE_LIBS="-lvorbisfile"
7208
VORBISENC_LIBS="-lvorbisenc"
7210
if test "x$vorbis_includes" != "x" ; then
7211
VORBIS_CFLAGS="-I$vorbis_includes"
7212
elif test "x$vorbis_prefix" != "x" ; then
7213
VORBIS_CFLAGS="-I$vorbis_prefix/include"
7217
AC_MSG_CHECKING(for Vorbis)
7221
if test "x$enable_vorbistest" = "xyes" ; then
7222
ac_save_CFLAGS="$CFLAGS"
7223
ac_save_LIBS="$LIBS"
7224
CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
7225
LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
7227
dnl Now check if the installed Vorbis is sufficiently new.
7229
rm -f conf.vorbistest
7234
#include <vorbis/codec.h>
7235
#include <vorbis/vorbisenc.h>
7240
vorbis_dsp_state vd;
7243
vorbis_info_init (&vi);
7244
vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
7245
vorbis_analysis_init (&vd, &vi);
7246
vorbis_block_init (&vd, &vb);
7247
/* this function was added in 1.0rc3, so this is what we're testing for */
7248
vorbis_bitrate_addblock (&vb);
7250
system("touch conf.vorbistest");
7254
],, no_vorbis=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
7255
CFLAGS="$ac_save_CFLAGS"
7256
LIBS="$ac_save_LIBS"
7259
if test "x$no_vorbis" = "x" ; then
7261
ifelse([$1], , :, [$1])
7264
if test -f conf.vorbistest ; then
7267
echo "*** Could not run Vorbis test program, checking why..."
7268
CFLAGS="$CFLAGS $VORBIS_CFLAGS"
7269
LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
7272
#include <vorbis/codec.h>
7274
[ echo "*** The test program compiled, but did not run. This usually means"
7275
echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
7276
echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
7277
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7278
echo "*** to the installed location Also, make sure you have run ldconfig if that"
7279
echo "*** is required on your system"
7281
echo "*** If you have an old version installed, it is best to remove it, although"
7282
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
7283
[ echo "*** The test program failed to compile or link. See the file config.log for the"
7284
echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
7285
echo "*** or that you have moved Vorbis since it was installed." ])
7286
CFLAGS="$ac_save_CFLAGS"
7287
LIBS="$ac_save_LIBS"
7293
ifelse([$2], , :, [$2])
7295
AC_SUBST(VORBIS_CFLAGS)
7296
AC_SUBST(VORBIS_LIBS)
7297
AC_SUBST(VORBISFILE_LIBS)
7298
AC_SUBST(VORBISENC_LIBS)
7299
rm -f conf.vorbistest
7302
7449
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
7303
# Copyright (C) 2001-2003 Red Hat, Inc.
7450
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7305
7452
# This file is free software, distributed under the terms of the GNU
7306
7453
# General Public License. As a special exception to the GNU General
7714
7920
AC_ARG_ENABLE(schemas-install,
7715
7921
[ --disable-schemas-install Disable the schemas installation],
7716
[case "${enableval}" in
7717
yes) schemas_install=true ;;
7718
no) schemas_install=false ;;
7719
*) AC_MSG_ERROR(bad value ${enableval} for --disable-schemas-install) ;;
7720
esac],[schemas_install=true])
7721
AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, test x$schemas_install = xtrue)
7922
[case ${enableval} in
7924
*) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
7926
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
7929
dnl -*- mode: autoconf -*-
7934
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
7935
AC_DEFUN([GTK_DOC_CHECK],
7937
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
7938
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
7939
dnl for overriding the documentation installation directory
7940
AC_ARG_WITH(html-dir,
7941
AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
7942
[with_html_dir='${datadir}/gtk-doc/html'])
7943
HTML_DIR="$with_html_dir"
7946
dnl enable/disable documentation building
7947
AC_ARG_ENABLE(gtk-doc,
7948
AC_HELP_STRING([--enable-gtk-doc],
7949
[use gtk-doc to build documentation [default=no]]),,
7953
if test x$enable_gtk_doc = xyes; then
7954
if test -z "$PKG_CONFIG"; then
7955
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
7957
if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
7961
dnl do we want to do a version check?
7963
[gtk_doc_min_version=$1
7964
if test "$have_gtk_doc" = yes; then
7965
AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
7966
if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
7974
if test "$have_gtk_doc" != yes; then
7979
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
7980
AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")