]> arthur.barton.de Git - netatalk.git/commitdiff
Backport from trunk: cleanup SSL macro. netatalk-1-5-rc1
authorsrittau <srittau>
Sat, 15 Dec 2001 12:44:34 +0000 (12:44 +0000)
committersrittau <srittau>
Sat, 15 Dec 2001 12:44:34 +0000 (12:44 +0000)
macros/ssl-check.m4

index c9fbbe813dde71b7d09382f0e326bf20149a114a..e77e86186bbe192b00462baf45fdb7a9649803d4 100644 (file)
@@ -1,19 +1,21 @@
-dnl $Id: ssl-check.m4,v 1.3 2001-11-13 15:43:41 srittau Exp $
+dnl $Id: ssl-check.m4,v 1.3.2.1 2001-12-15 12:44:34 srittau Exp $
 dnl Autoconf macro to check for SSL or OpenSSL
 
 AC_DEFUN([AC_PATH_SSL], [
-       tryssl=yes
-       tryssldir=
-
        AC_ARG_WITH(ssl-dir, [  --with-ssl-dir=PATH     specify path to OpenSSL installation (must contain
                           lib and include dirs)],
                [
-                       if test "x$withval" != "xno"; then
-                               tryssldir="$withval"
-                       else
+                       if test "x$withval" = "xno"; then
                                tryssl=no
+                       elif test "x$withval" = "xyes"; then
+                               tryssl=yes
+                               tryssldir=
+                       else
+                               dnl FIXME: should only try in $withval
+                               tryssl=yes
+                               tryssldir="$withval"
                        fi
-               ]
+               ], [tryssl=yes]
        )
 
        SSL_CFLAGS=""