comparison configure.ac @ 26135:91a7d0ad2021

propagate from branch 'im.pidgin.pidgin' (head d2e4560619da68f5b4346dcf1247908d88f39eb3) to branch 'im.pidgin.soc.2008.yahoo' (head 9a753e6b9d2389b3b7a87d60eebbe98228c2fb36)
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Sun, 13 Jul 2008 14:19:59 +0000
parents 62e2869e8e3d
children 6083c36f68d6 e23b447aa5ca
comparison
equal deleted inserted replaced
25073:4dd866b83e8e 26135:91a7d0ad2021
45 # 45 #
46 m4_define([purple_lt_current], [5]) 46 m4_define([purple_lt_current], [5])
47 m4_define([purple_major_version], [2]) 47 m4_define([purple_major_version], [2])
48 m4_define([purple_minor_version], [5]) 48 m4_define([purple_minor_version], [5])
49 m4_define([purple_micro_version], [0]) 49 m4_define([purple_micro_version], [0])
50 m4_define([purple_version_suffix], [devel]) 50 m4_define([purple_version_suffix], [])
51 m4_define([purple_version], 51 m4_define([purple_version],
52 [purple_major_version.purple_minor_version.purple_micro_version]) 52 [purple_major_version.purple_minor_version.purple_micro_version])
53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix])) 53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix]))
54 54
55 m4_define([gnt_lt_current], [5]) 55 m4_define([gnt_lt_current], [5])
56 m4_define([gnt_major_version], [2]) 56 m4_define([gnt_major_version], [2])
57 m4_define([gnt_minor_version], [5]) 57 m4_define([gnt_minor_version], [5])
58 m4_define([gnt_micro_version], [0]) 58 m4_define([gnt_micro_version], [0])
59 m4_define([gnt_version_suffix], [devel]) 59 m4_define([gnt_version_suffix], [])
60 m4_define([gnt_version], 60 m4_define([gnt_version],
61 [gnt_major_version.gnt_minor_version.gnt_micro_version]) 61 [gnt_major_version.gnt_minor_version.gnt_micro_version])
62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix])) 62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix]))
63 63
64 64
334 AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION-$EXTRA_VERSION", [display version info]) 334 AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION-$EXTRA_VERSION", [display version info])
335 else 335 else
336 AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION", [display version info]) 336 AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION", [display version info])
337 fi 337 fi
338 338
339 AC_ARG_ENABLE(missing-dependencies, [AC_HELP_STRING([--disable-missing-dependencies],
340 [skip missing dependencies instead of aborting configure])],
341 force_deps="$enableval", force_deps="yes")
342
339 AC_ARG_WITH(x, [], 343 AC_ARG_WITH(x, [],
340 with_x="$withval", with_x="yes") 344 with_x="$withval", with_x="yes")
341 AC_ARG_ENABLE(gtkui, [AC_HELP_STRING([--disable-gtkui], 345 AC_ARG_ENABLE(gtkui, [AC_HELP_STRING([--disable-gtkui],
342 [compile without GTK+ user interface])], 346 [compile without GTK+ user interface])],
343 enable_gtkui="$enableval", enable_gtkui="yes") 347 enable_gtkui="$enableval", enable_gtkui="yes")
417 [AC_MSG_RESULT(no) 421 [AC_MSG_RESULT(no)
418 if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then 422 if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then
419 X11_LIBS="$x_libpath_add" 423 X11_LIBS="$x_libpath_add"
420 X11_CFLAGS="$x_incpath_add" 424 X11_CFLAGS="$x_incpath_add"
421 else 425 else
422 AC_MSG_ERROR([ 426 if test "x$force_deps" = "xyes" ; then
427 AC_MSG_ERROR([
423 X11 development headers not found. 428 X11 development headers not found.
424 Use --without-x if you do not need X11 support. 429 Use --without-x if you do not need X11 support.
425 ]) 430 ])
431 fi
426 fi 432 fi
427 ]) 433 ])
428 AC_SUBST(X11_LIBS) 434 AC_SUBST(X11_LIBS)
429 AC_SUBST(X11_CFLAGS) 435 AC_SUBST(X11_CFLAGS)
430 else 436 else
459 465
460 if test "x$enable_screensaver" = "xyes" ; then 466 if test "x$enable_screensaver" = "xyes" ; then
461 AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.]) 467 AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.])
462 AC_SUBST(XSS_LIBS) 468 AC_SUBST(XSS_LIBS)
463 else 469 else
464 AC_MSG_ERROR([ 470 if test "x$force_deps" = "xyes" ; then
471 AC_MSG_ERROR([
465 XScreenSaver extension development headers not found. 472 XScreenSaver extension development headers not found.
466 Use --disable-screensaver if you do not need XScreenSaver extension support, 473 Use --disable-screensaver if you do not need XScreenSaver extension support,
467 this is required for detecting idle time by mouse and keyboard usage. 474 this is required for detecting idle time by mouse and keyboard usage.
468 ]) 475 ])
476 fi
469 fi 477 fi
470 else 478 else
471 AC_MSG_ERROR([X support is required to build with XScreenSaver extensions]) 479 AC_MSG_ERROR([X support is required to build with XScreenSaver extensions])
472 fi 480 fi
473 fi 481 fi
488 496
489 if test "x$enable_sm" = "xyes"; then 497 if test "x$enable_sm" = "xyes"; then
490 AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.]) 498 AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.])
491 AC_SUBST(SM_LIBS) 499 AC_SUBST(SM_LIBS)
492 else 500 else
493 AC_MSG_ERROR([ 501 if test "x$force_deps" = "xyes" ; then
502 AC_MSG_ERROR([
494 X session management development headers not found. 503 X session management development headers not found.
495 Use --disable-sm if you do not need session management support. 504 Use --disable-sm if you do not need session management support.
496 ]) 505 ])
506 fi
497 fi 507 fi
498 else 508 else
499 AC_MSG_ERROR([X support is required to build with X session management support]) 509 AC_MSG_ERROR([X support is required to build with X session management support])
500 fi 510 fi
501 fi 511 fi
513 dnl # Check for startup notification 523 dnl # Check for startup notification
514 dnl ####################################################################### 524 dnl #######################################################################
515 if test "x$enable_startup_notification" = "xyes"; then 525 if test "x$enable_startup_notification" = "xyes"; then
516 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, [libstartup-notification-1.0 >= 0.5], , [ 526 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, [libstartup-notification-1.0 >= 0.5], , [
517 AC_MSG_RESULT(no) 527 AC_MSG_RESULT(no)
518 AC_MSG_ERROR([ 528 if test "x$force_deps" = "xyes" ; then
529 AC_MSG_ERROR([
519 Startup notification development headers not found. 530 Startup notification development headers not found.
520 Use --disable-startup-notification if you do not need it. 531 Use --disable-startup-notification if you do not need it.
521 ])]) 532 ])
533 fi])
522 534
523 if test "x$enable_startup_notification" = "xyes"; then 535 if test "x$enable_startup_notification" = "xyes"; then
524 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) 536 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.])
525 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) 537 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
526 AC_SUBST(STARTUP_NOTIFICATION_LIBS) 538 AC_SUBST(STARTUP_NOTIFICATION_LIBS)
531 dnl # Check for GtkSpell 543 dnl # Check for GtkSpell
532 dnl ####################################################################### 544 dnl #######################################################################
533 if test "x$enable_gtkspell" = "xyes" ; then 545 if test "x$enable_gtkspell" = "xyes" ; then
534 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , [ 546 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , [
535 AC_MSG_RESULT(no) 547 AC_MSG_RESULT(no)
536 AC_MSG_ERROR([ 548 if test "x$force_deps" = "xyes" ; then
549 AC_MSG_ERROR([
537 GtkSpell development headers not found. 550 GtkSpell development headers not found.
538 Use --disable-gtkspell if you do not need it. 551 Use --disable-gtkspell if you do not need it.
539 ])]) 552 ])
553 fi])
540 if test "x$enable_gtkspell" = "xyes" ; then 554 if test "x$enable_gtkspell" = "xyes" ; then
541 AC_DEFINE(USE_GTKSPELL, 1, [Define if we're using GtkSpell]) 555 AC_DEFINE(USE_GTKSPELL, 1, [Define if we're using GtkSpell])
542 AC_SUBST(GTKSPELL_CFLAGS) 556 AC_SUBST(GTKSPELL_CFLAGS)
543 AC_SUBST(GTKSPELL_LIBS) 557 AC_SUBST(GTKSPELL_LIBS)
544 fi 558 fi
564 if test "x$enable_gevolution" = "xyes"; then 578 if test "x$enable_gevolution" = "xyes"; then
565 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) 579 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.])
566 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) 580 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS)
567 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS) 581 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS)
568 else 582 else
569 AC_MSG_ERROR([ 583 if test "x$force_deps" = "xyes" ; then
584 AC_MSG_ERROR([
570 Evolution development headers not found. 585 Evolution development headers not found.
571 Use --disable-gevolution if you do not need it. 586 Use --disable-gevolution if you do not need it.
572 ]) 587 ])
588 fi
573 fi 589 fi
574 fi 590 fi
575 591
576 dnl ####################################################################### 592 dnl #######################################################################
577 dnl # Check for libsqlite3 (for the Contact Availability Prediction plugin) 593 dnl # Check for libsqlite3 (for the Contact Availability Prediction plugin)
578 dnl ####################################################################### 594 dnl #######################################################################
579 if test "x$enable_cap" = "xyes"; then 595 if test "x$enable_cap" = "xyes"; then
580 PKG_CHECK_MODULES(SQLITE3, sqlite3 >= 3.3,,[ 596 PKG_CHECK_MODULES(SQLITE3, sqlite3 >= 3.3,,[
581 AC_MSG_RESULT(no) 597 AC_MSG_RESULT(no)
582 AC_MSG_ERROR([ 598 if test "x$force_deps" = "xyes" ; then
599 AC_MSG_ERROR([
583 sqlite3 development headers not found. 600 sqlite3 development headers not found.
584 Use --disable-cap if you do not need the Contact Availability Prediction plugin. 601 Use --disable-cap if you do not need the Contact Availability Prediction plugin.
585 ])]) 602 ])
603 fi])
586 fi 604 fi
587 605
588 606
589 else # GTK 607 else # GTK
590 enable_cap=no 608 enable_cap=no
717 [ AC_DEFINE(GST_CAN_DISABLE_FORKING, [], 735 [ AC_DEFINE(GST_CAN_DISABLE_FORKING, [],
718 [Define if gst_registry_fork_set_enabled exists])], 736 [Define if gst_registry_fork_set_enabled exists])],
719 [], [$GSTREAMER_LIBS]) 737 [], [$GSTREAMER_LIBS])
720 ], [ 738 ], [
721 AC_MSG_RESULT(no) 739 AC_MSG_RESULT(no)
722 AC_MSG_ERROR([ 740 if test "x$force_deps" = "xyes" ; then
741 AC_MSG_ERROR([
723 GStreamer development headers not found. 742 GStreamer development headers not found.
724 Use --disable-gstreamer if you do not need GStreamer (sound) support. 743 Use --disable-gstreamer if you do not need GStreamer (sound) support.
725 ])]) 744 ])
745 fi])
726 fi 746 fi
727 747
728 dnl ####################################################################### 748 dnl #######################################################################
729 dnl # Check for Meanwhile headers (for Sametime) 749 dnl # Check for Meanwhile headers (for Sametime)
730 dnl ####################################################################### 750 dnl #######################################################################
735 if test "x$enable_meanwhile" = "xyes"; then 755 if test "x$enable_meanwhile" = "xyes"; then
736 PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [ 756 PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [
737 have_meanwhile="yes" 757 have_meanwhile="yes"
738 ], [ 758 ], [
739 have_meanwhile="no" 759 have_meanwhile="no"
740 AC_MSG_ERROR([ 760 if test "x$force_deps" = "xyes" ; then
761 AC_MSG_ERROR([
741 Meanwhile development headers not found. 762 Meanwhile development headers not found.
742 Use --disable-meanwhile if you do not need meanwhile (Sametime) support. 763 Use --disable-meanwhile if you do not need meanwhile (Sametime) support.
743 ])]) 764 ])
765 fi])
744 fi 766 fi
745 AC_SUBST(MEANWHILE_CFLAGS) 767 AC_SUBST(MEANWHILE_CFLAGS)
746 AC_SUBST(MEANWHILE_LIBS) 768 AC_SUBST(MEANWHILE_LIBS)
747 769
748 dnl ####################################################################### 770 dnl #######################################################################
781 if test "$ac_avahi_client_libs" != "no"; then 803 if test "$ac_avahi_client_libs" != "no"; then
782 AVAHI_LIBS="-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib " 804 AVAHI_LIBS="-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib "
783 fi 805 fi
784 AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS) 806 AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS)
785 807
786 if test "x$enable_avahi" = "xyes" -a \( "x$avahiincludes" = "xno" -o "x$avahilibs" = "xno" \); then 808 if test "x$enable_avahi" = "xyes" -a "x$force_deps" = "xyes" -a \( "x$avahiincludes" = "xno" -o "x$avahilibs" = "xno" \); then
787 AC_MSG_ERROR([ 809 AC_MSG_ERROR([
788 avahi development headers not found. 810 avahi development headers not found.
789 Use --disable-avahi if you do not need avahi (Bonjour) support. 811 Use --disable-avahi if you do not need avahi (Bonjour) support.
790 ]) 812 ])
791 fi 813 fi
953 AM_CONDITIONAL(USE_INTERNAL_LIBGADU, test "x$gadu_libs" != "xyes") 975 AM_CONDITIONAL(USE_INTERNAL_LIBGADU, test "x$gadu_libs" != "xyes")
954 976
955 AC_SUBST(GADU_LIBS) 977 AC_SUBST(GADU_LIBS)
956 AC_SUBST(GADU_CFLAGS) 978 AC_SUBST(GADU_CFLAGS)
957 979
958 # change the next line to make MSNP14 the default (s/enable/disable/; s/no/yes/;) 980 # change the next line to not make MSNP15 the default (s/disable/enable/; s/yes/no/;)
959 AC_ARG_ENABLE(msnp14,[AC_HELP_STRING([--enable-msnp14], [Enable the newer MSNP14 protocol (unsupported)])],,enable_msnp14=no) 981 AC_ARG_ENABLE(msnp15,[AC_HELP_STRING([--disable-msnp15], [Disable the newer MSNP15 protocol])],enable_msnp15=$enableval,enable_msnp15=yes)
960 982
961 AC_ARG_ENABLE(distrib,,,enable_distrib=no) 983 AC_ARG_ENABLE(distrib,,,enable_distrib=no)
962 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") 984 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes")
963 DYNAMIC_PRPLS=all 985 DYNAMIC_PRPLS=all
964 AC_ARG_WITH(static-prpls, [AC_HELP_STRING([--with-static-prpls], [Link to certain protocols statically])], [STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`], [STATIC_PRPLS=""]) 986 AC_ARG_WITH(static-prpls, [AC_HELP_STRING([--with-static-prpls], [Link to certain protocols statically])], [STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`], [STATIC_PRPLS=""])
973 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'` 995 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'`
974 fi 996 fi
975 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 997 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
976 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'` 998 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'`
977 fi 999 fi
978 if test "x$enable_msnp14" != "xyes" ; then 1000 if test "x$enable_msnp15" != "xyes" ; then
979 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/msn/msnp9/'` 1001 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/msn/msnp9/'`
980 fi 1002 fi
981 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then 1003 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
982 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'` 1004 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'`
983 fi 1005 fi
1060 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'` 1082 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'`
1061 fi 1083 fi
1062 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 1084 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
1063 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'` 1085 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'`
1064 fi 1086 fi
1065 if test "x$enable_msnp14" != "xyes" ; then 1087 if test "x$enable_msnp15" != "xyes" ; then
1066 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/msn/msnp9/'` 1088 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/msn/msnp9/'`
1067 fi 1089 fi
1068 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then 1090 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
1069 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'` 1091 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'`
1070 fi 1092 fi
1153 "-Wextra -Wno-sign-compare -Wno-unused-parameter" \ 1175 "-Wextra -Wno-sign-compare -Wno-unused-parameter" \
1154 "-Winit-self" \ 1176 "-Winit-self" \
1155 "-Wmissing-declarations" \ 1177 "-Wmissing-declarations" \
1156 "-Wmissing-noreturn" \ 1178 "-Wmissing-noreturn" \
1157 "-Wmissing-prototypes" \ 1179 "-Wmissing-prototypes" \
1158 "-Wnested-externs" \
1159 "-Wpointer-arith" \ 1180 "-Wpointer-arith" \
1160 "-Wundef" \ 1181 "-Wundef" \
1161 ; do 1182 ; do
1162 orig_CFLAGS="$CFLAGS" 1183 orig_CFLAGS="$CFLAGS"
1163 CFLAGS="$CFLAGS $newflag" 1184 CFLAGS="$CFLAGS $newflag"
1218 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], [ 1239 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], [
1219 AC_SUBST(DBUS_CFLAGS) 1240 AC_SUBST(DBUS_CFLAGS)
1220 AC_SUBST(DBUS_LIBS) 1241 AC_SUBST(DBUS_LIBS)
1221 enable_dbus=yes 1242 enable_dbus=yes
1222 ], [ 1243 ], [
1244 if test "x$force_deps" = "xyes" ; then
1223 AC_MSG_ERROR([ 1245 AC_MSG_ERROR([
1224 D-Bus development headers not found. 1246 D-Bus development headers not found.
1225 Use --disable-dbus if you do not need D-Bus support. 1247 Use --disable-dbus if you do not need D-Bus support.
1226 ])]) 1248 ])
1249 fi])
1227 1250
1228 dnl Check for NetworkManager.h; if we don't have it, oh well 1251 dnl Check for NetworkManager.h; if we don't have it, oh well
1229 if test "x$enable_nm" = "xyes" ; then 1252 if test "x$enable_nm" = "xyes" ; then
1230 PKG_CHECK_MODULES(NETWORKMANAGER, [NetworkManager], [ 1253 PKG_CHECK_MODULES(NETWORKMANAGER, [NetworkManager], [
1231 AC_SUBST(NETWORKMANAGER_CFLAGS) 1254 AC_SUBST(NETWORKMANAGER_CFLAGS)
1232 AC_SUBST(NETWORKMANAGER_LIBS) 1255 AC_SUBST(NETWORKMANAGER_LIBS)
1233 AC_DEFINE(HAVE_NETWORKMANAGER, 1, [Define if we have NetworkManager.]) 1256 AC_DEFINE(HAVE_NETWORKMANAGER, 1, [Define if we have NetworkManager.])
1234 ], [ 1257 ], [
1235 AC_MSG_ERROR([ 1258 if test "x$force_deps" = "xyes" ; then
1259 AC_MSG_ERROR([
1236 NetworkManager development headers not found. 1260 NetworkManager development headers not found.
1237 Use --disable-nm if you do not need NetworkManager support. 1261 Use --disable-nm if you do not need NetworkManager support.
1238 ])]) 1262 ])
1263 fi])
1239 fi 1264 fi
1240 else 1265 else
1241 enable_nm=no 1266 enable_nm=no
1242 fi 1267 fi
1243 1268
1546 PERL_CFLAGS= 1571 PERL_CFLAGS=
1547 PERL_LIBS= 1572 PERL_LIBS=
1548 AM_CONDITIONAL(USE_PERL, false) 1573 AM_CONDITIONAL(USE_PERL, false)
1549 fi 1574 fi
1550 1575
1551 if test "x$looked_for_perl" = "xyes" -a "x$enable_perl" = "xno"; then 1576 if test "x$looked_for_perl" = "xyes" -a "x$enable_perl" = "xno" -a "x$force_deps" = "xyes"; then
1552 AC_MSG_ERROR([ 1577 AC_MSG_ERROR([
1553 Perl development headers not found. 1578 Perl development headers not found.
1554 Use --disable-perl if you do not need Perl scripting support. 1579 Use --disable-perl if you do not need Perl scripting support.
1555 ]) 1580 ])
1556 fi 1581 fi
1957 msg_ssl="$msg_nss and $msg_gnutls" 1982 msg_ssl="$msg_nss and $msg_gnutls"
1958 elif test "x$msg_nss" != "x"; then 1983 elif test "x$msg_nss" != "x"; then
1959 msg_ssl=$msg_nss 1984 msg_ssl=$msg_nss
1960 elif test "x$msg_gnutls" != "x"; then 1985 elif test "x$msg_gnutls" != "x"; then
1961 msg_ssl=$msg_gnutls 1986 msg_ssl=$msg_gnutls
1962 elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes"; then 1987 elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then
1963 AC_MSG_ERROR([ 1988 AC_MSG_ERROR([
1964 Neither GnuTLS or NSS SSL development headers found. 1989 Neither GnuTLS or NSS SSL development headers found.
1965 Use --disable-nss --disable-gnutls if you do not need SSL support. 1990 Use --disable-nss --disable-gnutls if you do not need SSL support.
1966 MSN, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable! 1991 MSN, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!
1967 ]) 1992 ])
1968 elif test "x$looked_for_gnutls" = "xyes"; then 1993 elif test "x$looked_for_gnutls" = "xyes" -a "x$force_deps" = "xyes" ; then
1969 AC_MSG_ERROR([ 1994 AC_MSG_ERROR([
1970 GnuTLS SSL development headers not found. 1995 GnuTLS SSL development headers not found.
1971 Use --disable-gnutls if you do not need SSL support. 1996 Use --disable-gnutls if you do not need SSL support.
1972 MSN, Novell Groupwise and Google Talk will not work without SSL support. 1997 MSN, Novell Groupwise and Google Talk will not work without SSL support.
1973 ]) 1998 ])
1974 elif test "x$looked_for_nss" = "xyes"; then 1999 elif test "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then
1975 AC_MSG_ERROR([ 2000 AC_MSG_ERROR([
1976 NSS SSL development headers not found. 2001 NSS SSL development headers not found.
1977 Use --disable-nss if you do not need SSL support. 2002 Use --disable-nss if you do not need SSL support.
1978 MSN, Novell Groupwise and Google Talk will not work without SSL support. 2003 MSN, Novell Groupwise and Google Talk will not work without SSL support.
1979 ]) 2004 ])
2008 fi 2033 fi
2009 done 2034 done
2010 if test "$TCLCONFIG" = "no"; then 2035 if test "$TCLCONFIG" = "no"; then
2011 AC_MSG_RESULT([no]) 2036 AC_MSG_RESULT([no])
2012 enable_tcl=no 2037 enable_tcl=no
2013 AC_MSG_ERROR([ 2038 if test "x$force_deps" = "xyes" ; then
2039 AC_MSG_ERROR([
2014 Tcl development headers not found. 2040 Tcl development headers not found.
2015 Use --disable-tcl if you do not need Tcl scripting support. 2041 Use --disable-tcl if you do not need Tcl scripting support.
2016 ]) 2042 ])
2043 fi
2017 else 2044 else
2018 . $TCLCONFIG 2045 . $TCLCONFIG
2019 AC_MSG_CHECKING([Tcl version compatability]) 2046 AC_MSG_CHECKING([Tcl version compatability])
2020 if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then 2047 if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then
2021 AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required]) 2048 AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required])
2076 fi 2103 fi
2077 done 2104 done
2078 if test "$TKCONFIG" = "no"; then 2105 if test "$TKCONFIG" = "no"; then
2079 AC_MSG_RESULT([no]) 2106 AC_MSG_RESULT([no])
2080 enable_tk=no 2107 enable_tk=no
2081 AC_MSG_ERROR([ 2108 if test "x$force_deps" = "xyes" ; then
2109 AC_MSG_ERROR([
2082 Tk development headers not found. 2110 Tk development headers not found.
2083 Use --disable-tk if you do not need Tk scripting support. 2111 Use --disable-tk if you do not need Tk scripting support.
2084 ]) 2112 ])
2113 fi
2085 else 2114 else
2086 . $TKCONFIG 2115 . $TKCONFIG
2087 eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\"" 2116 eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\""
2088 AC_MSG_CHECKING([for Tk linkability]) 2117 AC_MSG_CHECKING([for Tk linkability])
2089 oldCPPFLAGS=$CPPFLAGS 2118 oldCPPFLAGS=$CPPFLAGS
2221 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) 2250 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h)
2222 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) 2251 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h)
2223 AC_CHECK_HEADERS(termios.h) 2252 AC_CHECK_HEADERS(termios.h)
2224 2253
2225 # sys/sysctl.h on OpenBSD 4.2 requires sys/param.h 2254 # sys/sysctl.h on OpenBSD 4.2 requires sys/param.h
2255 # sys/sysctl.h on FreeBSD requires sys/types.h
2226 AC_CHECK_HEADERS(sys/param.h) 2256 AC_CHECK_HEADERS(sys/param.h)
2227 AC_CHECK_HEADERS(sys/sysctl.h, [], [], 2257 AC_CHECK_HEADERS(sys/sysctl.h, [], [],
2228 [[ 2258 [[
2259 #include <sys/types.h>
2229 #ifdef HAVE_PARAM_H 2260 #ifdef HAVE_PARAM_H
2230 # include <sys/param.h> 2261 # include <sys/param.h>
2231 #endif 2262 #endif
2232 ]]) 2263 ]])
2233 2264