X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=configure.ac;h=adb31915b501f082e366c2297169df9189147948;hb=1b2cc402448da230af90ade6331f4712f73df6b0;hp=f1bff9552851907993dac19c9572e4b146cece33;hpb=54dcfb033c13fd56faa077520d425b1704c80fce;p=PuTTY.git diff --git a/configure.ac b/configure.ac index f1bff955..adb31915 100644 --- a/configure.ac +++ b/configure.ac @@ -42,12 +42,33 @@ AS_IF([test "x$setidtype" = "xsetgid"], AC_SUBST(SETID_CMD) AC_SUBST(SETID_MODE) +AC_ARG_ENABLE([git-commit], + [AS_HELP_STRING([--disable-git-commit], + [disable embedding current git HEAD in binaries])], + [], + [if test -d "$srcdir/.git"; then + enable_git_commit=yes; else enable_git_commit=no; fi]) + +if test "x$enable_git_commit" = "xyes" -a ! -d "$srcdir/.git"; then + AC_ERROR([Cannot --enable-git-commit when source tree is not a git checkout]) +fi +AM_CONDITIONAL(AUTO_GIT_COMMIT, [test "x$enable_git_commit" = "xyes"]) + AC_ARG_WITH([gssapi], [AS_HELP_STRING([--without-gssapi], [disable GSSAPI support])], [], [with_gssapi=yes]) +AC_ARG_WITH([quartz], + [AS_HELP_STRING([--with-quartz], + [build for the MacOS Quartz GTK back end])], + [AC_DEFINE([OSX_GTK], [1], [Define if building with GTK for MacOS.]) + with_quartz=yes], + [with_quartz=no]) + +AM_CONDITIONAL([HAVE_QUARTZ],[test "x$with_quartz" = "xyes"]) + WITH_GSSAPI= AS_IF([test "x$with_gssapi" != xno], [AC_DEFINE([WITH_GSSAPI], [1], [Define if building with GSSAPI support.])]) @@ -70,26 +91,11 @@ AC_CHECK_HEADERS([utmpx.h sys/select.h],,,[ #include #include ]) -# Look for GTK 2, GTK 3 and GTK 1, in descending order of preference. -# -# (I like GTK 2 for its faster support for X server-side fonts due to -# not being required to do all its drawing via Cairo; GTK 3 is -# tolerable if GTK 2 can't be had, and GTK 1 is an extreme fallback -# for platforms - of which I've heard of at least one - to which -# nothing newer has ever been ported.) -# +# Look for GTK 3, GTK 2 and GTK 1, in descending order of preference. # If we can't find any, have the makefile only build the CLI programs. gtk=none -case "$gtk_version_desired:$gtk" in - 2:none | any:none) - ifdef([AM_PATH_GTK_2_0],[ - AM_PATH_GTK_2_0([2.0.0], [gtk=2], []) - ],[AC_WARNING([generating configure script without GTK 2 autodetection])]) - ;; -esac - case "$gtk_version_desired:$gtk" in 3:none | any:none) ifdef([AM_PATH_GTK_3_0],[ @@ -98,6 +104,14 @@ case "$gtk_version_desired:$gtk" in ;; esac +case "$gtk_version_desired:$gtk" in + 2:none | any:none) + ifdef([AM_PATH_GTK_2_0],[ + AM_PATH_GTK_2_0([2.0.0], [gtk=2], []) + ],[AC_WARNING([generating configure script without GTK 2 autodetection])]) + ;; +esac + case "$gtk_version_desired:$gtk" in 1:none | any:none) ifdef([AM_PATH_GTK],[ @@ -194,12 +208,6 @@ your system. Therefore, PuTTY itself and the other GUI utilities will not be built by the generated Makefile: only the command-line tools such as puttygen, plink and psftp will be built. -EOF -elif test "$gtk" = "3"; then cat <