Hi!

Enclosed is a patch to make --enable-default-12 do "the right
thing"(tm) all by itself.

I am interested in working with the 1.2, 2.0, and 2.1 versions, and
installing the 1.2 version as the default.  But if I configure as:

./configure --enable-build-12 --enable-build-21 --enable-default-12
...
checking whether to build a Motif 1.2 compatible version... yes
checking whether to build a Motif 2.0 compatible version... yes
checking whether to build a Motif 2.1 compatible version... yes
checking whether to install a Motif 2.1 compatible version as default... no
checking whether to install a Motif 2.0 compatible version as default... yes
checking whether to install a Motif 1.2 compatible version as default... no
...

Oops - the 2.0 version is still the default.  I know I can add
"--disable-default-20" or "--enable-default-20=no" (and that works),
but I think it would be more intuitive if one didn't have to do that
-- one doesn't have to supply extra args for "--enable-default-21" to
have the desired effect.  Hence the enclosed patch; let me know what
you think.

BTW, I am not on the list, so please carbon any replies to
[EMAIL PROTECTED] Thanks!

Cheers,
Craig

--- configure.in.orig   Thu Mar 29 20:45:55 2001
+++ configure.in        Thu Mar 29 21:54:20 2001
@@ -141,7 +141,13 @@
 test "$enable_default_20" = "no"  && Default20="no")
 
 if test -z "$Default20" ; then
-       AC_CACHE_VAL(lt_cv_default20, [ lt_cv_default20="yes" ])   dnl Here's the 
default
+       AC_CACHE_VAL(lt_cv_default20, [ 
+               if test "X$enable_default_12" != "Xyes"; then
+                       lt_cv_default20="yes"
+               else
+                       lt_cv_default20="no"
+               fi
+])
        Default20=$lt_cv_default20
 else
        lt_cv_default20=$Default20

Reply via email to