]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
ulogd: fix indentation in acinclude.m4
authorEric Leblond <eric@regit.org>
Thu, 31 Mar 2016 06:45:19 +0000 (08:45 +0200)
committerEric Leblond <eric@regit.org>
Thu, 31 Mar 2016 06:45:19 +0000 (08:45 +0200)
Some imbricated tests were not indented.

Signed-off-by: Eric Leblond <eric@regit.org>
acinclude.m4

index bd21255b56ceb045738da4b1491d049925e7b90c..8388c452aade3b3a9b0334475cd51b8c3e246c68 100644 (file)
@@ -45,43 +45,41 @@ do
 done
 
 if test "$PQINCPATH" = ""; then
-
-if test "$pg_prefix" != ""; then
-   AC_MSG_CHECKING([for PostgreSQL includes in $pg_prefix/include])
-   if test -f "$pg_prefix/include/libpq-fe.h" ; then
-      PQINCPATH="-I$pg_prefix/include"
-      AC_MSG_RESULT([yes])
-   else
-      AC_MSG_WARN(libpq-fe.h not found)
-   fi
-   AC_MSG_CHECKING([for PostgreSQL libraries in $pg_prefix/lib])
-   if test -f "$pg_prefix/lib/libpq.so" ; then
-      PQLIBPATH="-L$pg_prefix/lib"
-      AC_MSG_RESULT([yes])
+   if test "$pg_prefix" != ""; then
+      AC_MSG_CHECKING([for PostgreSQL includes in $pg_prefix/include])
+      if test -f "$pg_prefix/include/libpq-fe.h" ; then
+         PQINCPATH="-I$pg_prefix/include"
+         AC_MSG_RESULT([yes])
+      else
+         AC_MSG_WARN(libpq-fe.h not found)
+      fi
+      AC_MSG_CHECKING([for PostgreSQL libraries in $pg_prefix/lib])
+      if test -f "$pg_prefix/lib/libpq.so" ; then
+         PQLIBPATH="-L$pg_prefix/lib"
+         AC_MSG_RESULT([yes])
+      else
+         AC_MSG_WARN(libpq.so not found)
+      fi
    else
-      AC_MSG_WARN(libpq.so not found)
+     if test "$pg_inc" != ""; then
+       AC_MSG_CHECKING([for PostgreSQL includes in $pg_inc])
+       if test -f "$pg_inc/libpq-fe.h" ; then
+         PQINCPATH="-I$pg_inc"
+         AC_MSG_RESULT([yes])
+       else
+         AC_MSG_WARN(libpq-fe.h not found)
+       fi
+     fi
+     if test "$pg_lib" != ""; then
+       AC_MSG_CHECKING([for PostgreSQL libraries in $pg_lib])
+       if test -f "$pg_lib/libpq.so" ; then
+         PQLIBPATH="-L$pg_lib"
+         AC_MSG_RESULT([yes])
+       else
+         AC_MSG_WARN(libpq.so not found)
+       fi
+     fi
    fi
-else
-  if test "$pg_inc" != ""; then
-    AC_MSG_CHECKING([for PostgreSQL includes in $pg_inc])
-    if test -f "$pg_inc/libpq-fe.h" ; then
-      PQINCPATH="-I$pg_inc"
-      AC_MSG_RESULT([yes])
-    else
-      AC_MSG_WARN(libpq-fe.h not found)
-    fi
-  fi
-  if test "$pg_lib" != ""; then
-    AC_MSG_CHECKING([for PostgreSQL libraries in $pg_lib])
-    if test -f "$pg_lib/libpq.so" ; then
-      PQLIBPATH="-L$pg_lib"
-      AC_MSG_RESULT([yes])
-    else
-      AC_MSG_WARN(libpq.so not found)
-    fi
-  fi
-fi
-
 fi
 
 if test "$PQINCPATH" = "" ; then
@@ -140,43 +138,41 @@ do
 done
 
 if test "$MYSQL_INC" = ""; then
-
-if test "$my_prefix" != ""; then
-   AC_MSG_CHECKING([for MySQL includes in $my_prefix/include])
-   if test -f "$my_prefix/include/mysql.h" ; then
-      MYSQL_INC="-I$my_prefix/include"
-      AC_MSG_RESULT([yes])
-   else
-      AC_MSG_WARN(mysql.h not found)
-   fi
-   AC_MSG_CHECKING([for MySQL libraries in $my_prefix/lib])
-   if test -f "$my_prefix/lib/libmysql.so" ; then
-      MYSQL_LIB="-L$my_prefix/lib -lmysqlclient"
-      AC_MSG_RESULT([yes])
+   if test "$my_prefix" != ""; then
+      AC_MSG_CHECKING([for MySQL includes in $my_prefix/include])
+      if test -f "$my_prefix/include/mysql.h" ; then
+         MYSQL_INC="-I$my_prefix/include"
+         AC_MSG_RESULT([yes])
+      else
+         AC_MSG_WARN(mysql.h not found)
+      fi
+      AC_MSG_CHECKING([for MySQL libraries in $my_prefix/lib])
+      if test -f "$my_prefix/lib/libmysql.so" ; then
+         MYSQL_LIB="-L$my_prefix/lib -lmysqlclient"
+         AC_MSG_RESULT([yes])
+      else
+         AC_MSG_WARN(libmysqlclient.so not found)
+      fi
    else
-      AC_MSG_WARN(libmysqlclient.so not found)
+     if test "$my_inc" != ""; then
+       AC_MSG_CHECKING([for MySQL includes in $my_inc])
+       if test -f "$my_inc/mysql.h" ; then
+         MYSQL_INC="-I$my_inc"
+         AC_MSG_RESULT([yes])
+       else
+         AC_MSG_WARN(mysql.h not found)
+       fi
+     fi
+     if test "$my_lib" != ""; then
+       AC_MSG_CHECKING([for MySQL libraries in $my_lib])
+       if test -f "$my_lib/libmysqlclient.so" ; then
+         MYSQL_LIB="-L$my_lib -lmysqlclient"
+         AC_MSG_RESULT([yes])
+       else
+         AC_MSG_WARN(libmysqlclient.so not found)
+       fi
+     fi
    fi
-else
-  if test "$my_inc" != ""; then
-    AC_MSG_CHECKING([for MySQL includes in $my_inc])
-    if test -f "$my_inc/mysql.h" ; then
-      MYSQL_INC="-I$my_inc"
-      AC_MSG_RESULT([yes])
-    else
-      AC_MSG_WARN(mysql.h not found)
-    fi
-  fi
-  if test "$my_lib" != ""; then
-    AC_MSG_CHECKING([for MySQL libraries in $my_lib])
-    if test -f "$my_lib/libmysqlclient.so" ; then
-      MYSQL_LIB="-L$my_lib -lmysqlclient"
-      AC_MSG_RESULT([yes])
-    else
-      AC_MSG_WARN(libmysqlclient.so not found)
-    fi
-  fi
-fi
-
 fi
 
 if test "$MYSQL_INC" = "" ; then