12448
12546
as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
12451
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.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 $< $@'
12452
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.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 $< $@'
12453
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12454
INTLTOOL_PROP_RULE='%.prop: %.prop.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 $< $@'
12455
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
12456
INTLTOOL_PONG_RULE='%.pong: %.pong.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 $< $@'
12457
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12458
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.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 $< $@'
12459
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.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 $< $@'
12460
INTLTOOL_UI_RULE='%.ui: %.ui.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 $< $@'
12461
INTLTOOL_XML_RULE='%.xml: %.xml.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 $< $@'
12462
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
12463
INTLTOOL_XAM_RULE='%.xam: %.xml.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 $< $@'
12464
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12465
INTLTOOL_CAVES_RULE='%.caves: %.caves.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 $< $@'
12466
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 $< $@'
12467
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 $< $@'
12468
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 $< $@'
12469
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 $< $@'
12549
if test -z "$AM_DEFAULT_VERBOSITY"; then
12550
AM_DEFAULT_VERBOSITY=1
12554
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
12555
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
12556
INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
12561
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
12562
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
12563
intltool__v_merge_options_0='-q'
12568
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12569
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12570
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12571
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12572
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
12573
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12574
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12575
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12576
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12577
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12578
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12579
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
12580
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
12582
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
12584
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12585
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12586
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12587
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12588
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12589
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12590
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13643
# Check whether --enable-compile-warnings was given.
13644
if test "${enable_compile_warnings+set}" = set; then :
13645
enableval=$enable_compile_warnings;
13647
enable_compile_warnings="maximum"
13653
common_flags="-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables"
13655
case "$enable_compile_warnings" in
13657
try_compiler_flags=""
13660
try_compiler_flags="-Wall -Wformat -Wformat-security $common_flags"
13663
try_compiler_flags="-Wall -Wformat -Wformat-security -Wmissing-prototypes $common_flags"
13666
try_compiler_flags="-Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
13667
try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
13668
try_compiler_flags="$try_compiler_flags -Winline -Wredundant-decls -Wno-sign-compare"
13669
try_compiler_flags="$try_compiler_flags $common_flags"
13670
if test "$enable_compile_warnings" = "error" ; then
13671
try_compiler_flags="$try_compiler_flags -Werror"
13675
as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
13764
# Check whether --enable-werror was given.
13765
if test "${enable_werror+set}" = set; then :
13766
enableval=$enable_werror; set_werror="$enableval"
13768
if test -d $srcdir/.git; then
13769
is_git_version=true
13777
# List of warnings that are not relevant / wanted
13779
# Don't care about C++ compiler compat
13780
dontwarn="$dontwarn -Wc++-compat"
13781
dontwarn="$dontwarn -Wabi"
13782
dontwarn="$dontwarn -Wdeprecated"
13783
# Don't care about ancient C standard compat
13784
dontwarn="$dontwarn -Wtraditional"
13785
# Don't care about ancient C standard compat
13786
dontwarn="$dontwarn -Wtraditional-conversion"
13787
# Ignore warnings in /usr/include
13788
dontwarn="$dontwarn -Wsystem-headers"
13789
# Happy for compiler to add struct padding
13790
dontwarn="$dontwarn -Wpadded"
13791
# GCC very confused with -O2
13792
dontwarn="$dontwarn -Wunreachable-code"
13793
# Due to d3des violations
13794
dontwarn="$dontwarn -Wstrict-overflow"
13795
# Allow vars decl in the middle of blocks
13796
dontwarn="$dontwarn -Wdeclaration-after-statement"
13797
# Using long long is fine
13798
dontwarn="$dontwarn -Wlong-long"
13800
dontwarn="$dontwarn -Wunsafe-loop-optimizations"
13801
# Flaw in gtkitemfactory.h
13802
dontwarn="$dontwarn -Wstrict-prototypes"
13803
# Generated vncmarshal.c file :-(
13804
dontwarn="$dontwarn -Wunused-macros"
13806
# Get all possible GCC warnings
13809
if test -n "$GCC"; then
13811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
13812
$as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
13813
if ${gl_cv_cc_nomfi_supported+:} false; then :
13814
$as_echo_n "(cached) " >&6
13817
gl_save_CFLAGS="$CFLAGS"
13818
CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
13819
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820
/* end confdefs.h. */
13830
if ac_fn_c_try_compile "$LINENO"; then :
13831
gl_cv_cc_nomfi_supported=yes
13833
gl_cv_cc_nomfi_supported=no
13835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836
CFLAGS="$gl_save_CFLAGS"
13839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
13840
$as_echo "$gl_cv_cc_nomfi_supported" >&6; }
13842
if test "$gl_cv_cc_nomfi_supported" = yes; then
13843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
13844
$as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
13845
if ${gl_cv_cc_nomfi_needed+:} false; then :
13846
$as_echo_n "(cached) " >&6
13849
gl_save_CFLAGS="$CFLAGS"
13850
CFLAGS="$CFLAGS -W -Werror"
13851
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852
/* end confdefs.h. */
13855
typedef struct { int a; int b; } s_t;
13867
if ac_fn_c_try_compile "$LINENO"; then :
13868
gl_cv_cc_nomfi_needed=no
13870
gl_cv_cc_nomfi_needed=yes
13872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13873
CFLAGS="$gl_save_CFLAGS"
13877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
13878
$as_echo "$gl_cv_cc_nomfi_needed" >&6; }
13883
for gl_manywarn_item in \
13887
-Wformat-nonliteral \
13888
-Wformat-security \
13890
-Wmissing-include-dirs \
13894
-Wunknown-pragmas \
13895
-Wstrict-aliasing \
13896
-Wstrict-overflow \
13900
-Wtraditional-conversion \
13901
-Wdeclaration-after-statement \
13904
-Wunsafe-loop-optimizations \
13906
-Wbad-function-cast \
13912
-Wsign-conversion \
13914
-Waggregate-return \
13915
-Wstrict-prototypes \
13916
-Wold-style-definition \
13917
-Wmissing-prototypes \
13918
-Wmissing-declarations \
13919
-Wmissing-noreturn \
13920
-Wmissing-format-attribute \
13923
-Wredundant-decls \
13925
-Wunreachable-code \
13930
-Wvolatile-register-var \
13931
-Wdisabled-optimization \
13932
-Wstack-protector \
13933
-Woverlength-strings \
13934
-Wbuiltin-macro-redefined \
13936
-Wpacked-bitfield-compat \
13939
gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
13941
# The following are not documented in the manual but are included in
13942
# output from gcc --help=warnings.
13943
for gl_manywarn_item in \
13945
-Wcoverage-mismatch \
13949
gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
13951
# More warnings from gcc 4.6.2 --help=warnings.
13952
for gl_manywarn_item in \
13956
-Wdeprecated-declarations \
13958
-Wdouble-promotion \
13961
-Wformat-contains-nul \
13962
-Wformat-extra-args \
13963
-Wformat-zero-length \
13968
-Wpointer-to-int-cast \
13970
-Wsuggest-attribute=const \
13971
-Wsuggest-attribute=noreturn \
13972
-Wsuggest-attribute=pure \
13975
gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
13978
# Disable the missing-field-initializers warning if needed
13979
if test "$gl_cv_cc_nomfi_needed" = yes; then
13980
gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
13983
maybewarn=$gl_manywarn_set
13986
# Remove the ones we don't want, blacklisted earlier
13989
set x $maybewarn; shift
13992
case " $dontwarn " in
13993
*" $gl_warn_item "*)
13996
gl_warn_set="$gl_warn_set $gl_warn_item"
13680
for option in $try_compiler_flags; do
13681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts $option" >&5
13682
$as_echo_n "checking whether compiler accepts $option... " >&6; }
13684
ac_save_CFLAGS="$CFLAGS"
13685
if test "$option" = "-Werror" ; then
13686
CFLAGS="$CFLAGS $option"
13688
CFLAGS="$CFLAGS $COMPILER_FLAGS $option"
13690
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000
wantwarn=$gl_warn_set
14003
# Check for $CC support of each warning
14004
for w in $wantwarn; do
14005
as_gl_Warn=`$as_echo "gl_cv_warn_$w" | $as_tr_sh`
14006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles $w" >&5
14007
$as_echo_n "checking whether compiler handles $w... " >&6; }
14008
if eval \${$as_gl_Warn+:} false; then :
14009
$as_echo_n "(cached) " >&6
14012
gl_save_CPPFLAGS="$CPPFLAGS"
14013
CPPFLAGS="${CPPFLAGS} $w"
14014
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691
14015
/* end confdefs.h. */
13701
if ac_fn_c_try_link "$LINENO"; then :
14025
if ac_fn_c_try_cpp "$LINENO"; then :
14026
eval "$as_gl_Warn=yes"
13706
rm -f core conftest.err conftest.$ac_objext \
13707
conftest$ac_exeext conftest.$ac_ext
13708
echo 'int x;' >conftest.c
13709
$CC $CFLAGS -c conftest.c 2>conftest.err
13711
if test $ret != 0 || test -s conftest.err || test $has_option = "no"; then
13712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713
$as_echo "no" >&6; }
13715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13716
$as_echo "yes" >&6; }
13717
COMPILER_FLAGS="$COMPILER_FLAGS $option"
13719
CFLAGS="$ac_save_CFLAGS"
14028
eval "$as_gl_Warn=no"
14030
rm -f conftest.err conftest.i conftest.$ac_ext
14031
CPPFLAGS="$gl_save_CPPFLAGS"
14034
eval ac_res=\$$as_gl_Warn
14035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14036
$as_echo "$ac_res" >&6; }
14037
if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
14038
as_fn_append WARN_CFLAGS " $w"
13724
unset try_compiler_flags
13726
# Check whether --enable-iso-c was given.
13727
if test "${enable_iso_c+set}" = set; then :
13728
enableval=$enable_iso_c;
13734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
13735
$as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
13737
if test "x$enable_iso_c" != "xno"; then
13738
if test "x$GCC" = "xyes"; then
13739
case " $CFLAGS " in
13740
*\ \ -ansi\ \ *) ;;
13741
*) complCFLAGS="$complCFLAGS -ansi" ;;
13743
case " $CFLAGS " in
13744
*\ \ -pedantic\ \ *) ;;
13745
*) complCFLAGS="$complCFLAGS -pedantic" ;;
14043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-sign-conversion" >&5
14044
$as_echo_n "checking whether compiler handles -Wno-sign-conversion... " >&6; }
14045
if ${gl_cv_warn__Wno_sign_conversion+:} false; then :
14046
$as_echo_n "(cached) " >&6
14049
gl_save_CPPFLAGS="$CPPFLAGS"
14050
CPPFLAGS="${CPPFLAGS} -Wno-sign-conversion"
14051
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052
/* end confdefs.h. */
14062
if ac_fn_c_try_cpp "$LINENO"; then :
14063
gl_cv_warn__Wno_sign_conversion=yes
14065
gl_cv_warn__Wno_sign_conversion=no
14067
rm -f conftest.err conftest.i conftest.$ac_ext
14068
CPPFLAGS="$gl_save_CPPFLAGS"
14071
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_sign_conversion" >&5
14072
$as_echo "$gl_cv_warn__Wno_sign_conversion" >&6; }
14073
if test "x$gl_cv_warn__Wno_sign_conversion" = xyes; then :
14074
as_fn_append WARN_CFLAGS " -Wno-sign-conversion"
14077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-conversion" >&5
14078
$as_echo_n "checking whether compiler handles -Wno-conversion... " >&6; }
14079
if ${gl_cv_warn__Wno_conversion+:} false; then :
14080
$as_echo_n "(cached) " >&6
14083
gl_save_CPPFLAGS="$CPPFLAGS"
14084
CPPFLAGS="${CPPFLAGS} -Wno-conversion"
14085
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086
/* end confdefs.h. */
14096
if ac_fn_c_try_cpp "$LINENO"; then :
14097
gl_cv_warn__Wno_conversion=yes
14099
gl_cv_warn__Wno_conversion=no
14101
rm -f conftest.err conftest.i conftest.$ac_ext
14102
CPPFLAGS="$gl_save_CPPFLAGS"
14105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_conversion" >&5
14106
$as_echo "$gl_cv_warn__Wno_conversion" >&6; }
14107
if test "x$gl_cv_warn__Wno_conversion" = xyes; then :
14108
as_fn_append WARN_CFLAGS " -Wno-conversion"
14111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-sign-compare" >&5
14112
$as_echo_n "checking whether compiler handles -Wno-sign-compare... " >&6; }
14113
if ${gl_cv_warn__Wno_sign_compare+:} false; then :
14114
$as_echo_n "(cached) " >&6
14117
gl_save_CPPFLAGS="$CPPFLAGS"
14118
CPPFLAGS="${CPPFLAGS} -Wno-sign-compare"
14119
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120
/* end confdefs.h. */
14130
if ac_fn_c_try_cpp "$LINENO"; then :
14131
gl_cv_warn__Wno_sign_compare=yes
14133
gl_cv_warn__Wno_sign_compare=no
14135
rm -f conftest.err conftest.i conftest.$ac_ext
14136
CPPFLAGS="$gl_save_CPPFLAGS"
14139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_sign_compare" >&5
14140
$as_echo "$gl_cv_warn__Wno_sign_compare" >&6; }
14141
if test "x$gl_cv_warn__Wno_sign_compare" = xyes; then :
14142
as_fn_append WARN_CFLAGS " -Wno-sign-compare"
14146
# GNULIB expects this to be part of -Wc++-compat, but we turn
14147
# that one off, so we need to manually enable this again
14148
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wjump-misses-init" >&5
14149
$as_echo_n "checking whether compiler handles -Wjump-misses-init... " >&6; }
14150
if ${gl_cv_warn__Wjump_misses_init+:} false; then :
14151
$as_echo_n "(cached) " >&6
14154
gl_save_CPPFLAGS="$CPPFLAGS"
14155
CPPFLAGS="${CPPFLAGS} -Wjump-misses-init"
14156
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157
/* end confdefs.h. */
14167
if ac_fn_c_try_cpp "$LINENO"; then :
14168
gl_cv_warn__Wjump_misses_init=yes
14170
gl_cv_warn__Wjump_misses_init=no
14172
rm -f conftest.err conftest.i conftest.$ac_ext
14173
CPPFLAGS="$gl_save_CPPFLAGS"
14176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wjump_misses_init" >&5
14177
$as_echo "$gl_cv_warn__Wjump_misses_init" >&6; }
14178
if test "x$gl_cv_warn__Wjump_misses_init" = xyes; then :
14179
as_fn_append WARN_CFLAGS " -Wjump-misses-init"
14183
# This should be < 256 really. Currently we're down to 4096,
14184
# but using 1024 bytes sized buffers (mostly for virStrerror)
14185
# stops us from going down further
14186
as_gl_Warn=`$as_echo "gl_cv_warn_-Wframe-larger-than=4096" | $as_tr_sh`
14187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wframe-larger-than=4096" >&5
14188
$as_echo_n "checking whether compiler handles -Wframe-larger-than=4096... " >&6; }
14189
if eval \${$as_gl_Warn+:} false; then :
14190
$as_echo_n "(cached) " >&6
14193
gl_save_CPPFLAGS="$CPPFLAGS"
14194
CPPFLAGS="${CPPFLAGS} -Wframe-larger-than=4096"
14195
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196
/* end confdefs.h. */
14206
if ac_fn_c_try_cpp "$LINENO"; then :
14207
eval "$as_gl_Warn=yes"
14209
eval "$as_gl_Warn=no"
14211
rm -f conftest.err conftest.i conftest.$ac_ext
14212
CPPFLAGS="$gl_save_CPPFLAGS"
14215
eval ac_res=\$$as_gl_Warn
14216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14217
$as_echo "$ac_res" >&6; }
14218
if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
14219
as_fn_append WARN_CFLAGS " -Wframe-larger-than=4096"
14223
# Use improved glibc headers
14226
# Extra special flags
14229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fstack-protector-all" >&5
14230
$as_echo_n "checking whether compiler handles -fstack-protector-all... " >&6; }
14231
if ${gl_cv_warn__fstack_protector_all+:} false; then :
14232
$as_echo_n "(cached) " >&6
14235
gl_save_CPPFLAGS="$CPPFLAGS"
14236
CPPFLAGS="${CPPFLAGS} -fstack-protector-all"
14237
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238
/* end confdefs.h. */
14248
if ac_fn_c_try_cpp "$LINENO"; then :
14249
gl_cv_warn__fstack_protector_all=yes
14251
gl_cv_warn__fstack_protector_all=no
14253
rm -f conftest.err conftest.i conftest.$ac_ext
14254
CPPFLAGS="$gl_save_CPPFLAGS"
14257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fstack_protector_all" >&5
14258
$as_echo "$gl_cv_warn__fstack_protector_all" >&6; }
14259
if test "x$gl_cv_warn__fstack_protector_all" = xyes; then :
14260
as_fn_append WARN_CFLAGS " -fstack-protector-all"
14263
as_gl_Warn=`$as_echo "gl_cv_warn_--param=ssp-buffer-size=4" | $as_tr_sh`
14264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles --param=ssp-buffer-size=4" >&5
14265
$as_echo_n "checking whether compiler handles --param=ssp-buffer-size=4... " >&6; }
14266
if eval \${$as_gl_Warn+:} false; then :
14267
$as_echo_n "(cached) " >&6
14270
gl_save_CPPFLAGS="$CPPFLAGS"
14271
CPPFLAGS="${CPPFLAGS} --param=ssp-buffer-size=4"
14272
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273
/* end confdefs.h. */
14283
if ac_fn_c_try_cpp "$LINENO"; then :
14284
eval "$as_gl_Warn=yes"
14286
eval "$as_gl_Warn=no"
14288
rm -f conftest.err conftest.i conftest.$ac_ext
14289
CPPFLAGS="$gl_save_CPPFLAGS"
14292
eval ac_res=\$$as_gl_Warn
14293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14294
$as_echo "$ac_res" >&6; }
14295
if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
14296
as_fn_append WARN_CFLAGS " --param=ssp-buffer-size=4"
14301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fexceptions" >&5
14302
$as_echo_n "checking whether compiler handles -fexceptions... " >&6; }
14303
if ${gl_cv_warn__fexceptions+:} false; then :
14304
$as_echo_n "(cached) " >&6
14307
gl_save_CPPFLAGS="$CPPFLAGS"
14308
CPPFLAGS="${CPPFLAGS} -fexceptions"
14309
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310
/* end confdefs.h. */
14320
if ac_fn_c_try_cpp "$LINENO"; then :
14321
gl_cv_warn__fexceptions=yes
14323
gl_cv_warn__fexceptions=no
14325
rm -f conftest.err conftest.i conftest.$ac_ext
14326
CPPFLAGS="$gl_save_CPPFLAGS"
14329
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fexceptions" >&5
14330
$as_echo "$gl_cv_warn__fexceptions" >&6; }
14331
if test "x$gl_cv_warn__fexceptions" = xyes; then :
14332
as_fn_append WARN_CFLAGS " -fexceptions"
14335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fasynchronous-unwind-tables" >&5
14336
$as_echo_n "checking whether compiler handles -fasynchronous-unwind-tables... " >&6; }
14337
if ${gl_cv_warn__fasynchronous_unwind_tables+:} false; then :
14338
$as_echo_n "(cached) " >&6
14341
gl_save_CPPFLAGS="$CPPFLAGS"
14342
CPPFLAGS="${CPPFLAGS} -fasynchronous-unwind-tables"
14343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344
/* end confdefs.h. */
14354
if ac_fn_c_try_cpp "$LINENO"; then :
14355
gl_cv_warn__fasynchronous_unwind_tables=yes
14357
gl_cv_warn__fasynchronous_unwind_tables=no
14359
rm -f conftest.err conftest.i conftest.$ac_ext
14360
CPPFLAGS="$gl_save_CPPFLAGS"
14363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fasynchronous_unwind_tables" >&5
14364
$as_echo "$gl_cv_warn__fasynchronous_unwind_tables" >&6; }
14365
if test "x$gl_cv_warn__fasynchronous_unwind_tables" = xyes; then :
14366
as_fn_append WARN_CFLAGS " -fasynchronous-unwind-tables"
14369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fdiagnostics-show-option" >&5
14370
$as_echo_n "checking whether compiler handles -fdiagnostics-show-option... " >&6; }
14371
if ${gl_cv_warn__fdiagnostics_show_option+:} false; then :
14372
$as_echo_n "(cached) " >&6
14375
gl_save_CPPFLAGS="$CPPFLAGS"
14376
CPPFLAGS="${CPPFLAGS} -fdiagnostics-show-option"
14377
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378
/* end confdefs.h. */
14388
if ac_fn_c_try_cpp "$LINENO"; then :
14389
gl_cv_warn__fdiagnostics_show_option=yes
14391
gl_cv_warn__fdiagnostics_show_option=no
14393
rm -f conftest.err conftest.i conftest.$ac_ext
14394
CPPFLAGS="$gl_save_CPPFLAGS"
14397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fdiagnostics_show_option" >&5
14398
$as_echo "$gl_cv_warn__fdiagnostics_show_option" >&6; }
14399
if test "x$gl_cv_warn__fdiagnostics_show_option" = xyes; then :
14400
as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
14403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -funit-at-a-time" >&5
14404
$as_echo_n "checking whether compiler handles -funit-at-a-time... " >&6; }
14405
if ${gl_cv_warn__funit_at_a_time+:} false; then :
14406
$as_echo_n "(cached) " >&6
14409
gl_save_CPPFLAGS="$CPPFLAGS"
14410
CPPFLAGS="${CPPFLAGS} -funit-at-a-time"
14411
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412
/* end confdefs.h. */
14422
if ac_fn_c_try_cpp "$LINENO"; then :
14423
gl_cv_warn__funit_at_a_time=yes
14425
gl_cv_warn__funit_at_a_time=no
14427
rm -f conftest.err conftest.i conftest.$ac_ext
14428
CPPFLAGS="$gl_save_CPPFLAGS"
14431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__funit_at_a_time" >&5
14432
$as_echo "$gl_cv_warn__funit_at_a_time" >&6; }
14433
if test "x$gl_cv_warn__funit_at_a_time" = xyes; then :
14434
as_fn_append WARN_CFLAGS " -funit-at-a-time"
14438
# Need -fipa-pure-const in order to make -Wsuggest-attribute=pure
14439
# fire even without -O.
14440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fipa-pure-const" >&5
14441
$as_echo_n "checking whether compiler handles -fipa-pure-const... " >&6; }
14442
if ${gl_cv_warn__fipa_pure_const+:} false; then :
14443
$as_echo_n "(cached) " >&6
14446
gl_save_CPPFLAGS="$CPPFLAGS"
14447
CPPFLAGS="${CPPFLAGS} -fipa-pure-const"
14448
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449
/* end confdefs.h. */
14459
if ac_fn_c_try_cpp "$LINENO"; then :
14460
gl_cv_warn__fipa_pure_const=yes
14462
gl_cv_warn__fipa_pure_const=no
14464
rm -f conftest.err conftest.i conftest.$ac_ext
14465
CPPFLAGS="$gl_save_CPPFLAGS"
14468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fipa_pure_const" >&5
14469
$as_echo "$gl_cv_warn__fipa_pure_const" >&6; }
14470
if test "x$gl_cv_warn__fipa_pure_const" = xyes; then :
14471
as_fn_append WARN_CFLAGS " -fipa-pure-const"
14475
# We should eventually enable this, but right now there are at
14476
# least 75 functions triggering warnings.
14477
as_gl_Warn=`$as_echo "gl_cv_warn_-Wno-suggest-attribute=pure" | $as_tr_sh`
14478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-suggest-attribute=pure" >&5
14479
$as_echo_n "checking whether compiler handles -Wno-suggest-attribute=pure... " >&6; }
14480
if eval \${$as_gl_Warn+:} false; then :
14481
$as_echo_n "(cached) " >&6
14484
gl_save_CPPFLAGS="$CPPFLAGS"
14485
CPPFLAGS="${CPPFLAGS} -Wno-suggest-attribute=pure"
14486
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487
/* end confdefs.h. */
14497
if ac_fn_c_try_cpp "$LINENO"; then :
14498
eval "$as_gl_Warn=yes"
14500
eval "$as_gl_Warn=no"
14502
rm -f conftest.err conftest.i conftest.$ac_ext
14503
CPPFLAGS="$gl_save_CPPFLAGS"
14506
eval ac_res=\$$as_gl_Warn
14507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14508
$as_echo "$ac_res" >&6; }
14509
if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
14510
as_fn_append WARN_CFLAGS " -Wno-suggest-attribute=pure"
14513
as_gl_Warn=`$as_echo "gl_cv_warn_-Wno-suggest-attribute=const" | $as_tr_sh`
14514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-suggest-attribute=const" >&5
14515
$as_echo_n "checking whether compiler handles -Wno-suggest-attribute=const... " >&6; }
14516
if eval \${$as_gl_Warn+:} false; then :
14517
$as_echo_n "(cached) " >&6
14520
gl_save_CPPFLAGS="$CPPFLAGS"
14521
CPPFLAGS="${CPPFLAGS} -Wno-suggest-attribute=const"
14522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523
/* end confdefs.h. */
14533
if ac_fn_c_try_cpp "$LINENO"; then :
14534
eval "$as_gl_Warn=yes"
14536
eval "$as_gl_Warn=no"
14538
rm -f conftest.err conftest.i conftest.$ac_ext
14539
CPPFLAGS="$gl_save_CPPFLAGS"
14542
eval ac_res=\$$as_gl_Warn
14543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14544
$as_echo "$ac_res" >&6; }
14545
if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
14546
as_fn_append WARN_CFLAGS " -Wno-suggest-attribute=const"
14550
if test "$set_werror" = "yes"
14552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Werror" >&5
14553
$as_echo_n "checking whether compiler handles -Werror... " >&6; }
14554
if ${gl_cv_warn__Werror+:} false; then :
14555
$as_echo_n "(cached) " >&6
14558
gl_save_CPPFLAGS="$CPPFLAGS"
14559
CPPFLAGS="${CPPFLAGS} -Werror"
14560
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561
/* end confdefs.h. */
14571
if ac_fn_c_try_cpp "$LINENO"; then :
14572
gl_cv_warn__Werror=yes
14574
gl_cv_warn__Werror=no
14576
rm -f conftest.err conftest.i conftest.$ac_ext
14577
CPPFLAGS="$gl_save_CPPFLAGS"
14580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Werror" >&5
14581
$as_echo "$gl_cv_warn__Werror" >&6; }
14582
if test "x$gl_cv_warn__Werror" = xyes; then :
14583
as_fn_append WARN_CFLAGS " -Werror"
13749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
13750
$as_echo "$complCFLAGS" >&6; }
13752
WARNING_CFLAGS="$COMPILER_FLAGS $complCFLAGS"
13756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts -Wno-redundant-decls" >&5
13757
$as_echo_n "checking whether compiler accepts -Wno-redundant-decls... " >&6; }
13759
ac_save_CFLAGS="$CFLAGS"
13760
if test "-Wno-redundant-decls" = "-Werror" ; then
13761
CFLAGS="$CFLAGS -Wno-redundant-decls"
13763
CFLAGS="$CFLAGS $COMPILER_FLAGS -Wno-redundant-decls"
13765
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766
/* end confdefs.h. */
13776
if ac_fn_c_try_link "$LINENO"; then :
13781
rm -f core conftest.err conftest.$ac_objext \
13782
conftest$ac_exeext conftest.$ac_ext
13783
echo 'int x;' >conftest.c
13784
$CC $CFLAGS -c conftest.c 2>conftest.err
13786
if test $ret != 0 || test -s conftest.err || test $has_option = "no"; then
13787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788
$as_echo "no" >&6; }
13790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13791
$as_echo "yes" >&6; }
13792
COMPILER_FLAGS="$COMPILER_FLAGS -Wno-redundant-decls"
13794
CFLAGS="$ac_save_CFLAGS"
13797
WARNING_PYTHON_CFLAGS=$COMPILER_FLAGS
14588
WARN_LDFLAGS=$WARN_CFLAGS
14608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
14609
$as_echo_n "checking for PULSEAUDIO... " >&6; }
14611
if test -n "$PULSEAUDIO_CFLAGS"; then
14612
pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
14613
elif test -n "$PKG_CONFIG"; then
14614
if test -n "$PKG_CONFIG" && \
14615
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
14616
($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
14618
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14619
test $ac_status = 0; }; then
14620
pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
14627
if test -n "$PULSEAUDIO_LIBS"; then
14628
pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
14629
elif test -n "$PKG_CONFIG"; then
14630
if test -n "$PKG_CONFIG" && \
14631
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
14632
($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
14634
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14635
test $ac_status = 0; }; then
14636
pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
14646
if test $pkg_failed = yes; then
14647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14648
$as_echo "no" >&6; }
14650
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14651
_pkg_short_errors_supported=yes
14653
_pkg_short_errors_supported=no
14655
if test $_pkg_short_errors_supported = yes; then
14656
PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
14658
PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
14660
# Put the nasty error message in config.log where it belongs
14661
echo "$PULSEAUDIO_PKG_ERRORS" >&5
14663
{ $as_echo "$as_me:${as_lineno-$LINENO}: Not building against libpulse" >&5
14664
$as_echo "$as_me: Not building against libpulse" >&6;}
14665
elif test $pkg_failed = untried; then
14666
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667
$as_echo "no" >&6; }
14668
{ $as_echo "$as_me:${as_lineno-$LINENO}: Not building against libpulse" >&5
14669
$as_echo "$as_me: Not building against libpulse" >&6;}
14671
PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
14672
PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
14673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14674
$as_echo "yes" >&6; }
14675
WANT_PULSEAUDIO="yes"
14677
if test "x$WANT_PULSEAUDIO" = xyes; then
14679
cat >>confdefs.h <<_ACEOF
14680
#define HAVE_PULSEAUDIO 1
14684
if test "x$WANT_PULSEAUDIO" = "xyes"; then
15477
# Check whether --with-pulseaudio was given.
15478
if test "${with_pulseaudio+set}" = set; then :
15479
withval=$with_pulseaudio;
15481
with_pulseaudio=check
15486
if test "x$with_pulseaudio" != "xno"; then
15487
PULSEAUDIO_MODULES=libpulse-simple
15488
if test "x$with_pulseaudio" == "xyes"; then
15491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
15492
$as_echo_n "checking for PULSEAUDIO... " >&6; }
15494
if test -n "$PULSEAUDIO_CFLAGS"; then
15495
pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
15496
elif test -n "$PKG_CONFIG"; then
15497
if test -n "$PKG_CONFIG" && \
15498
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$PULSEAUDIO_MODULES\""; } >&5
15499
($PKG_CONFIG --exists --print-errors "$PULSEAUDIO_MODULES") 2>&5
15501
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15502
test $ac_status = 0; }; then
15503
pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "$PULSEAUDIO_MODULES" 2>/dev/null`
15510
if test -n "$PULSEAUDIO_LIBS"; then
15511
pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
15512
elif test -n "$PKG_CONFIG"; then
15513
if test -n "$PKG_CONFIG" && \
15514
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$PULSEAUDIO_MODULES\""; } >&5
15515
($PKG_CONFIG --exists --print-errors "$PULSEAUDIO_MODULES") 2>&5
15517
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15518
test $ac_status = 0; }; then
15519
pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "$PULSEAUDIO_MODULES" 2>/dev/null`
15529
if test $pkg_failed = yes; then
15530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15531
$as_echo "no" >&6; }
15533
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15534
_pkg_short_errors_supported=yes
15536
_pkg_short_errors_supported=no
15538
if test $_pkg_short_errors_supported = yes; then
15539
PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$PULSEAUDIO_MODULES" 2>&1`
15541
PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$PULSEAUDIO_MODULES" 2>&1`
15543
# Put the nasty error message in config.log where it belongs
15544
echo "$PULSEAUDIO_PKG_ERRORS" >&5
15546
as_fn_error $? "Package requirements ($PULSEAUDIO_MODULES) were not met:
15548
$PULSEAUDIO_PKG_ERRORS
15550
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15551
installed software in a non-standard prefix.
15553
Alternatively, you may set the environment variables PULSEAUDIO_CFLAGS
15554
and PULSEAUDIO_LIBS to avoid the need to call pkg-config.
15555
See the pkg-config man page for more details." "$LINENO" 5
15557
elif test $pkg_failed = untried; then
15558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15559
$as_echo "no" >&6; }
15560
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15561
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15562
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15563
is in your PATH or set the PKG_CONFIG environment variable to the full
15564
path to pkg-config.
15566
Alternatively, you may set the environment variables PULSEAUDIO_CFLAGS
15567
and PULSEAUDIO_LIBS to avoid the need to call pkg-config.
15568
See the pkg-config man page for more details.
15570
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15571
See \`config.log' for more details" "$LINENO" 5; }
15574
PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
15575
PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
15576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15577
$as_echo "yes" >&6; }
15578
HAVE_PULSEAUDIO=yes
15583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
15584
$as_echo_n "checking for PULSEAUDIO... " >&6; }
15586
if test -n "$PULSEAUDIO_CFLAGS"; then
15587
pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
15588
elif test -n "$PKG_CONFIG"; then
15589
if test -n "$PKG_CONFIG" && \
15590
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$PULSEAUDIO_MODULES\""; } >&5
15591
($PKG_CONFIG --exists --print-errors "$PULSEAUDIO_MODULES") 2>&5
15593
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15594
test $ac_status = 0; }; then
15595
pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "$PULSEAUDIO_MODULES" 2>/dev/null`
15602
if test -n "$PULSEAUDIO_LIBS"; then
15603
pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
15604
elif test -n "$PKG_CONFIG"; then
15605
if test -n "$PKG_CONFIG" && \
15606
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$PULSEAUDIO_MODULES\""; } >&5
15607
($PKG_CONFIG --exists --print-errors "$PULSEAUDIO_MODULES") 2>&5
15609
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15610
test $ac_status = 0; }; then
15611
pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "$PULSEAUDIO_MODULES" 2>/dev/null`
15621
if test $pkg_failed = yes; then
15622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15623
$as_echo "no" >&6; }
15625
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15626
_pkg_short_errors_supported=yes
15628
_pkg_short_errors_supported=no
15630
if test $_pkg_short_errors_supported = yes; then
15631
PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$PULSEAUDIO_MODULES" 2>&1`
15633
PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$PULSEAUDIO_MODULES" 2>&1`
15635
# Put the nasty error message in config.log where it belongs
15636
echo "$PULSEAUDIO_PKG_ERRORS" >&5
15638
{ $as_echo "$as_me:${as_lineno-$LINENO}: libpulse-simple not found, disabling PulseAudio support" >&5
15639
$as_echo "$as_me: libpulse-simple not found, disabling PulseAudio support" >&6;}
15640
elif test $pkg_failed = untried; then
15641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642
$as_echo "no" >&6; }
15643
{ $as_echo "$as_me:${as_lineno-$LINENO}: libpulse-simple not found, disabling PulseAudio support" >&5
15644
$as_echo "$as_me: libpulse-simple not found, disabling PulseAudio support" >&6;}
15646
PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
15647
PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
15648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15649
$as_echo "yes" >&6; }
15650
HAVE_PULSEAUDIO=yes
15654
if test "x$HAVE_PULSEAUDIO" = "xyes"; then
14685
15655
HAVE_PULSEAUDIO_TRUE=
14686
15656
HAVE_PULSEAUDIO_FALSE='#'