comparison configure.in @ 2131:646a9dd3e204

[xemacs-hg @ 2004-06-16 10:32:57 by stephent] autoconf hates me <87llinsv64.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Wed, 16 Jun 2004 10:32:59 +0000
parents 3c2d928e17ad
children 702b5727498a
comparison
equal deleted inserted replaced
2130:b7a50f64e748 2131:646a9dd3e204
1761 AC_DEFINE(_POSIX_C_SOURCE,199506L) 1761 AC_DEFINE(_POSIX_C_SOURCE,199506L)
1762 dnl #### should this be 600? 1762 dnl #### should this be 600?
1763 AC_DEFINE(_XOPEN_SOURCE,500) 1763 AC_DEFINE(_XOPEN_SOURCE,500)
1764 AC_DEFINE(_XOPEN_SOURCE_EXTENDED) 1764 AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
1765 ;; 1765 ;;
1766 freebsd4.[5-9]) 1766 freebsd4*)
1767 AC_DEFINE(_POSIX_C_SOURCE,199506L) 1767 AC_DEFINE(_POSIX_C_SOURCE,199506L)
1768 dnl #### Do we want these too? Apparently yes for _XOPEN_SOURCE=500. 1768 dnl #### Do we want these too? Apparently yes for _XOPEN_SOURCE=500.
1769 AC_DEFINE(_XOPEN_SOURCE,500) 1769 AC_DEFINE(_XOPEN_SOURCE,500)
1770 dnl AC_DEFINE(_XOPEN_SOURCE_EXTENDED) 1770 dnl AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
1771 ;; 1771 ;;
2933 eval "feature_value=\${with_${feature}}" 2933 eval "feature_value=\${with_${feature}}"
2934 case "${feature_value}" in 2934 case "${feature_value}" in
2935 yes|no|gtk|"" ) 2935 yes|no|gtk|"" )
2936 ;; 2936 ;;
2937 * ) 2937 * )
2938 AC_MSG_WARN([${feature_value} requested for ${feature}, forcing to gtk]) ;; 2938 feature_conflict_with_gtk=yes
2939 AC_MSG_WARN([--with-${feature}=${feature_value} is incompatible with --with-gtk]) ;;
2939 esac 2940 esac
2940 done 2941 done
2942 if test "${feature_conflict_with_gtk}" = "yes"; then
2943 XE_DIE(["One or more GUI toolkit features conflict with GTK"])
2944 fi
2941 2945
2942 test "${with_scrollbars}" != "no" && with_scrollbars=gtk 2946 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
2943 test "${with_toolbars}" != "no" && with_toolbars=gtk 2947 test "${with_toolbars}" != "no" && with_toolbars=gtk
2944 test "${with_menubars}" != "no" && with_menubars=gtk 2948 test "${with_menubars}" != "no" && with_menubars=gtk
2945 test "${with_dialogs}" != "no" && with_dialogs=gtk 2949 test "${with_dialogs}" != "no" && with_dialogs=gtk
4776 AC_CHECK_LIB(gpm, Gpm_Open, have_gpm=yes)]) 4780 AC_CHECK_LIB(gpm, Gpm_Open, have_gpm=yes)])
4777 if test "$have_gpm" = "yes"; then 4781 if test "$have_gpm" = "yes"; then
4778 with_gpm=yes 4782 with_gpm=yes
4779 AC_DEFINE(HAVE_GPM) 4783 AC_DEFINE(HAVE_GPM)
4780 XE_PREPEND(-lgpm, LIBS) 4784 XE_PREPEND(-lgpm, LIBS)
4785 elif test "$with_gpm" = "yes"; then
4786 XE_DIE(["GPM requested, but gpm.h or libgpm seems to be missing."])
4781 else 4787 else
4782 test "$with_gpm" = "yes" && \
4783 XE_DIE("GPM requested, but gpm.h or libgpm seems to be missing.")
4784 with_gpm=no 4788 with_gpm=no
4785 fi 4789 fi
4786 fi 4790 fi
4787 4791
4788 else dnl "$with_tty" = "no" 4792 else dnl "$with_tty" = "no"