comparison configure.ac @ 13170:5d5e9c65fa42

[gaim-migrate @ 15533] It seems we need to AC_MSG_RESULT(no) when PKG_CHECK_MODULES doesn't detect the library it's looking for. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 08 Feb 2006 03:02:50 +0000
parents 4bb701a8736f
children e29845c34565
comparison
equal deleted inserted replaced
13169:4cef9fe8ea5b 13170:5d5e9c65fa42
147 147
148 dnl ####################################################################### 148 dnl #######################################################################
149 dnl # Check for Meanwhile headers (for Sametime) 149 dnl # Check for Meanwhile headers (for Sametime)
150 dnl ####################################################################### 150 dnl #######################################################################
151 PKG_CHECK_MODULES(MEANWHILE, 151 PKG_CHECK_MODULES(MEANWHILE,
152 [meanwhile >= 1.0.0 meanwhile < 2.0.0], 152 [meanwhile >= 1.0.0 meanwhile < 2.0.0], [
153 [have_meanwhile="yes"], 153 have_meanwhile="yes"
154 [have_meanwhile="no"]) 154 ], [
155 AC_MSG_RESULT(no)
156 have_meanwhile="no"
157 ])
155 AC_SUBST(MEANWHILE_CFLAGS) 158 AC_SUBST(MEANWHILE_CFLAGS)
156 AC_SUBST(MEANWHILE_LIBS) 159 AC_SUBST(MEANWHILE_LIBS)
157 160
158 161
159 162
164 AC_ARG_WITH(howl-libs, [AC_HELP_STRING([--with-howl-libs=DIR], [Compile the Bonjour plugin against the Howl libs in DIR])], [ac_howl_libs="$withval"], [ac_howl_libs="no"]) 167 AC_ARG_WITH(howl-libs, [AC_HELP_STRING([--with-howl-libs=DIR], [Compile the Bonjour plugin against the Howl libs in DIR])], [ac_howl_libs="$withval"], [ac_howl_libs="no"])
165 HOWL_CFLAGS="" 168 HOWL_CFLAGS=""
166 HOWL_LIBS="" 169 HOWL_LIBS=""
167 170
168 dnl Attempt to autodetect Howl 171 dnl Attempt to autodetect Howl
169 PKG_CHECK_MODULES(HOWL, howl, 172 PKG_CHECK_MODULES(HOWL, howl, [
170 [howlincludes="yes" howllibs="yes"], 173 howlincludes="yes"
171 [howlincludes="no" howllibs="no"]) 174 howllibs="yes"
175 ], [
176 AC_MSG_RESULT(no)
177 howlincludes="no"
178 howllibs="no"
179 ])
172 180
173 dnl Override HOWL_CFLAGS if the user specified an include dir 181 dnl Override HOWL_CFLAGS if the user specified an include dir
174 if test "$ac_howl_includes" != "no"; then 182 if test "$ac_howl_includes" != "no"; then
175 HOWL_CFLAGS="-I$ac_howl_includes" 183 HOWL_CFLAGS="-I$ac_howl_includes"
176 fi 184 fi
205 if test "x$silc_manual_check" = "xno"; then 213 if test "x$silc_manual_check" = "xno"; then
206 PKG_CHECK_MODULES(SILC, silcclient, [ 214 PKG_CHECK_MODULES(SILC, silcclient, [
207 have_silc="yes" 215 have_silc="yes"
208 silcincludes="yes" 216 silcincludes="yes"
209 silcclient="yes" 217 silcclient="yes"
210 ], have_silc="no") 218 ], [
219 AC_MSG_RESULT(no)
220 have_silc="no"
221 ])
211 dnl If silcclient.pc wasn't found, check for just silc.pc 222 dnl If silcclient.pc wasn't found, check for just silc.pc
212 if test "x$have_silc" = "xno"; then 223 if test "x$have_silc" = "xno"; then
213 PKG_CHECK_MODULES(SILC, silc, [ 224 PKG_CHECK_MODULES(SILC, silc, [
214 have_silc="yes" 225 have_silc="yes"
215 silcincludes="yes" 226 silcincludes="yes"
216 silcclient="yes" 227 silcclient="yes"
217 ], have_silc="no") 228 ], [
229 AC_MSG_RESULT(no)
230 have_silc="no"
231 ])
218 fi 232 fi
219 else 233 else
220 if test "$ac_silc_includes" != "no"; then 234 if test "$ac_silc_includes" != "no"; then
221 SILC_CFLAGS="-I$ac_silc_includes" 235 SILC_CFLAGS="-I$ac_silc_includes"
222 fi 236 fi
525 AC_SUBST(DBUS_CFLAGS) 539 AC_SUBST(DBUS_CFLAGS)
526 AC_SUBST(DBUS_LIBS) 540 AC_SUBST(DBUS_LIBS)
527 enable_dbus=yes 541 enable_dbus=yes
528 ], 542 ],
529 [ 543 [
544 AC_MSG_RESULT(no)
530 enable_dbus=no 545 enable_dbus=no
531 ]) 546 ])
532 fi 547 fi
533 548
534 dnl Why do we need python? 549 dnl Why do we need python?
623 638
624 if test "x$enable_startup_notification" = "xyes"; then 639 if test "x$enable_startup_notification" = "xyes"; then
625 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5, 640 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5,
626 [ 641 [
627 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) 642 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.])
628 echo "Building with libstartup-notification"
629 enable_startup_notification=yes 643 enable_startup_notification=yes
630 ], 644 ],
631 [ 645 [
632 echo "Building without libstartup-notification" 646 AC_MSG_RESULT(no)
633 enable_startup_notification=no 647 enable_startup_notification=no
634 ]) 648 ])
635 649
636 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) 650 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
637 AC_SUBST(STARTUP_NOTIFICATION_LIBS) 651 AC_SUBST(STARTUP_NOTIFICATION_LIBS)
647 if test "x$enable_gevolution" = "xyes"; then 661 if test "x$enable_gevolution" = "xyes"; then
648 evo_deps="libebook-1.2 libedata-book-1.2" 662 evo_deps="libebook-1.2 libedata-book-1.2"
649 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [ 663 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [
650 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) 664 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.])
651 build_gevo=yes 665 build_gevo=yes
652 ], build_gevo=no) 666 ], [
667 AC_MSG_RESULT(yes)
668 build_gevo=no
669 ])
653 if test "x$build_gevo" = "xno"; then 670 if test "x$build_gevo" = "xno"; then
654 evo_deps="libebook-1.0 libedata-book-1.0" 671 evo_deps="libebook-1.0 libedata-book-1.0"
655 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [ 672 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [
656 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) 673 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.])
657 build_gevo=yes 674 build_gevo=yes
658 ], build_gevo=no) 675 ], [
676 AC_MSG_RESULT(yes)
677 build_gevo=no
678 ])
659 fi 679 fi
660 680
661 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) 681 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS)
662 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS) 682 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS)
663 fi 683 fi
1042 1062
1043 enable_nss="no" 1063 enable_nss="no"
1044 1064
1045 if test "x$nss_manual_check" = "xno"; then 1065 if test "x$nss_manual_check" = "xno"; then
1046 if `$PKG_CONFIG --exists mozilla-nss`; then 1066 if `$PKG_CONFIG --exists mozilla-nss`; then
1047 PKG_CHECK_MODULES(NSS, mozilla-nss, have_nss="yes", have_nss="no") 1067 PKG_CHECK_MODULES(NSS, mozilla-nss, [
1068 have_nss="yes"
1069 ], [
1070 AC_MSG_RESULT(no)
1071 have_nss="no"
1072 ])
1048 mozilla_nspr="mozilla-nspr" 1073 mozilla_nspr="mozilla-nspr"
1049 mozilla_nss="mozilla-nss" 1074 mozilla_nss="mozilla-nss"
1050 else 1075 else
1051 if `$PKG_CONFIG --exists nss`; then 1076 if `$PKG_CONFIG --exists nss`; then
1052 PKG_CHECK_MODULES(NSS, nss, have_nss="yes") 1077 PKG_CHECK_MODULES(NSS, nss, [
1078 have_nss="yes"
1079 ], [
1080 AC_MSG_RESULT(no)
1081 ])
1053 mozilla_nspr="nspr" 1082 mozilla_nspr="nspr"
1054 mozilla_nss="nss" 1083 mozilla_nss="nss"
1055 fi 1084 fi
1056 fi 1085 fi
1057 1086
1383 AM_CONDITIONAL(USE_TK, false) 1412 AM_CONDITIONAL(USE_TK, false)
1384 fi 1413 fi
1385 1414
1386 dnl Thanks, Evan. 1415 dnl Thanks, Evan.
1387 if test "$enable_gtkspell" = yes ; then 1416 if test "$enable_gtkspell" = yes ; then
1388 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , enable_gtkspell=no) 1417 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, [
1418 ], [
1419 AC_MSG_RESULT(no)
1420 enable_gtkspell=no
1421 ])
1389 if test "$enable_gtkspell" = "yes" ; then 1422 if test "$enable_gtkspell" = "yes" ; then
1390 AC_SUBST(GTKSPELL_CFLAGS) 1423 AC_SUBST(GTKSPELL_CFLAGS)
1391 AC_SUBST(GTKSPELL_LIBS) 1424 AC_SUBST(GTKSPELL_LIBS)
1392 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?]) 1425 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?])
1393 fi 1426 fi
1595 fi 1628 fi
1596 dnl Check for samplerate libraries 1629 dnl Check for samplerate libraries
1597 dnl Check for jack libraries (sound output plugin) 1630 dnl Check for jack libraries (sound output plugin)
1598 PKG_CHECK_MODULES(JACK,jack >= 0.15.0, 1631 PKG_CHECK_MODULES(JACK,jack >= 0.15.0,
1599 [ 1632 [
1600 dnl we've found jack devel files 1633 dnl we've found jack devel files
1601 PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.13, [AC_DEFINE(__JACK_ENABLED__,1,[Jack support])] , 1634 PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.13, [
1602 [echo "libsamplerate not found, jack support disabled."]) 1635 AC_DEFINE(__JACK_ENABLED__,1,[Jack support])
1603 VV_CFLAGS="$VV_CFLAGS $SAMPLERATE_CFLAGS" 1636 ], [
1637 AC_MSG_RESULT(no)
1638 echo "libsamplerate not found, jack support disabled."
1639 ])
1640 VV_CFLAGS="$VV_CFLAGS $SAMPLERATE_CFLAGS"
1604 VV_LIBS="$VV_LIBS $SAMPLERATE_LIBS" 1641 VV_LIBS="$VV_LIBS $SAMPLERATE_LIBS"
1605 ], 1642 ],
1606 [echo "No jack support."] ) 1643 [echo "No jack support."] )
1607 VV_CFLAGS="$VV_CFLAGS $JACK_CFLAGS" 1644 VV_CFLAGS="$VV_CFLAGS $JACK_CFLAGS"
1608 VV_LIBS="$VV_LIBS $JACK_LIBS" 1645 VV_LIBS="$VV_LIBS $JACK_LIBS"
1610 dnl check for installed version of speex 1647 dnl check for installed version of speex
1611 LP_CHECK_SPEEX 1648 LP_CHECK_SPEEX
1612 VV_CFLAGS="$VV_CFLAGS $SPEEX_CFLAGS" 1649 VV_CFLAGS="$VV_CFLAGS $SPEEX_CFLAGS"
1613 VV_LIBS="$VV_LIBS $SPEEX_LIBS" 1650 VV_LIBS="$VV_LIBS $SPEEX_LIBS"
1614 1651
1615 PKG_CHECK_MODULES(ORTP, ortp >= 0.7.1, enable_ortp=yes, enable_ortp=no) 1652 PKG_CHECK_MODULES(ORTP, ortp >= 0.7.1, [
1653 enable_ortp=yes,
1654 ], [
1655 AC_MSG_RESULT(no)
1656 enable_ortp=no
1657 ])
1616 VV_CFLAGS="$VV_CFLAGS $ORTP_CFLAGS" 1658 VV_CFLAGS="$VV_CFLAGS $ORTP_CFLAGS"
1617 VV_LIBS="$VV_LIBS $ORTP_LIBS" 1659 VV_LIBS="$VV_LIBS $ORTP_LIBS"
1618 if test x$enable_ortp = xno; then 1660 if test x$enable_ortp = xno; then
1619 AC_MSG_ERROR([Could not find a suitable version of oRTP. Please install oRTP >= 0.7.1]) 1661 AC_MSG_ERROR([Could not find a suitable version of oRTP. Please install oRTP >= 0.7.1])
1620 fi 1662 fi