]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2005-04-05 06:57:39 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Tue, 5 Apr 2005 06:57:41 +0000 (06:57 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Tue, 5 Apr 2005 06:57:41 +0000 (06:57 +0000)
AC_CHECK_HEADERS corrected

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@528 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

configure
configure.in
plugins.m4

index 8027fbf197dea300488f85df812a6b353fcd88a0..88adb7419fb71cba99ec4949695d3c408a603a71 100755 (executable)
--- a/configure
+++ b/configure
@@ -5289,9 +5289,9 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
   cat >>confdefs.h <<_ACEOF
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF
- has_gd=true
+ has_gd="true";break
 else
-  has_gd=false
+  has_gd="false"
 fi
 
 done
@@ -5442,9 +5442,9 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
   cat >>confdefs.h <<_ACEOF
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF
- has_usb=true
+ has_usb="true"
 else
-  has_usb=false
+  has_usb="false"
 fi
 
 done
@@ -5515,9 +5515,9 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
   cat >>confdefs.h <<_ACEOF
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF
- has_i2c=true
+ has_i2c="true"
 else
-  has_i2c=false
+  has_i2c="false";break
 fi
 
 done
@@ -6234,14 +6234,14 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
   cat >>confdefs.h <<_ACEOF
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF
- has_dvb_header=true
+ has_dvb_header="true"
 else
-  has_dvb_header=false
+  has_dvb_header="false"
 fi
 
 done
 
-   if test "$has_dvb_header" = true; then
+   if test "$has_dvb_header" = "true"; then
       PLUGINS="$PLUGINS plugin_dvb.o"
 
 cat >>confdefs.h <<\_ACEOF
@@ -6422,14 +6422,14 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
   cat >>confdefs.h <<_ACEOF
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF
- has_isdn_header=true
+ has_isdn_header="true"
 else
-  has_isdn_header=false
+  has_isdn_header="false"
 fi
 
 done
 
-   if test "$has_dvb_header" = false; then
+   if test "$has_dvb_header" = "false"; then
       { echo "$as_me:$LINENO: WARNING: linux/isdn.h header not found: isdn plugin CPS disabled" >&5
 echo "$as_me: WARNING: linux/isdn.h header not found: isdn plugin CPS disabled" >&2;}
    fi
@@ -6601,14 +6601,14 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
   cat >>confdefs.h <<_ACEOF
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF
- has_mysql_header=true
+ has_mysql_header="true"
 else
-  has_mysql_header=false
+  has_mysql_header="false"
 fi
 
 done
 
-   if test "$has_mysql_header" = true; then
+   if test "$has_mysql_header" = "true"; then
       echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
 echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
 if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
@@ -6673,12 +6673,12 @@ fi
 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
 if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
-  has_mysql_lib=true
+  has_mysql_lib="true"
 else
-  has_mysql_lib=false
+  has_mysql_lib="false"
 fi
 
-      if test "$has_mysql_lib" = true; then
+      if test "$has_mysql_lib" = "true"; then
         PLUGINS="$PLUGINS plugin_mysql.o"
 
 cat >>confdefs.h <<\_ACEOF
@@ -6856,14 +6856,14 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
   cat >>confdefs.h <<_ACEOF
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF
- has_ppp_header=true
+ has_ppp_header="true"
 else
-  has_ppp_header=false
+  has_ppp_header="false"
 fi
 
 done
 
-   if test "$has_ppp_header" = true; then
+   if test "$has_ppp_header" = "true"; then
    PLUGINS="$PLUGINS plugin_ppp.o"
 
 cat >>confdefs.h <<\_ACEOF
index 60b161f5190c83b69a912571de8da30cba306ebb..1a4c97d28f6b8fa8eddf9dfd9f532490d436b632 100644 (file)
@@ -49,13 +49,13 @@ AC_CHECK_CURSES
 AC_PATH_XTRA
 
 # check for gd.h
-AC_CHECK_HEADERS(gd/gd.h gd.h, [has_gd=true], [has_gd=false])
+AC_CHECK_HEADERS(gd/gd.h gd.h, [has_gd="true";break], [has_gd="false"])
 
 # check for usb.h
-AC_CHECK_HEADERS(usb.h, [has_usb=true], [has_usb=false])
+AC_CHECK_HEADERS(usb.h, [has_usb="true"], [has_usb="false"])
 
 # check for i2c
-AC_CHECK_HEADERS(linux/compiler.h linux/i2c.h linux/i2c-dev.h,[has_i2c=true],[has_i2c=false],[
+AC_CHECK_HEADERS(linux/compiler.h linux/i2c.h linux/i2c-dev.h,[has_i2c="true"],[has_i2c="false";break],[
 #if HAVE_LINUX_COMPILER_H
 #include <linux/compiler.h>
 # endif
index cf122f53e783a6d8d8b1cc247121acb31c93ef9e..63c4aa91359665ee4f18809bec20118d46899d41 100644 (file)
@@ -154,8 +154,8 @@ if test "$PLUGIN_DISKSTATS" = "yes"; then
    AC_DEFINE(PLUGIN_DISKSTATS,1,[diskstats plugin])
 fi
 if test "$PLUGIN_DVB" = "yes"; then
-   AC_CHECK_HEADERS(linux/dvb/frontend.h, [has_dvb_header=true], [has_dvb_header=false])
-   if test "$has_dvb_header" = true; then
+   AC_CHECK_HEADERS(linux/dvb/frontend.h, [has_dvb_header="true"], [has_dvb_header="false"])
+   if test "$has_dvb_header" = "true"; then
       PLUGINS="$PLUGINS plugin_dvb.o"
       AC_DEFINE(PLUGIN_DVB,1,[dvb plugin])
    else
@@ -175,8 +175,8 @@ if test "$PLUGIN_IMON" = "yes"; then
    AC_DEFINE(PLUGIN_IMON,1,[imon plugin])
 fi
 if test "$PLUGIN_ISDN" = "yes"; then
-   AC_CHECK_HEADERS(linux/isdn.h, [has_isdn_header=true], [has_isdn_header=false])
-   if test "$has_dvb_header" = false; then
+   AC_CHECK_HEADERS(linux/isdn.h, [has_isdn_header="true"], [has_isdn_header="false"])
+   if test "$has_dvb_header" = "false"; then
       AC_MSG_WARN(linux/isdn.h header not found: isdn plugin CPS disabled)
    fi   
    PLUGINS="$PLUGINS plugin_isdn.o"
@@ -191,10 +191,10 @@ if test "$PLUGIN_MEMINFO" = "yes"; then
    AC_DEFINE(PLUGIN_MEMINFO,1,[meminfo plugin])
 fi
 if test "$PLUGIN_MYSQL" = "yes"; then
-   AC_CHECK_HEADERS(mysql/mysql.h, [has_mysql_header=true], [has_mysql_header=false])
-   if test "$has_mysql_header" = true; then    
-      AC_CHECK_LIB(mysqlclient, mysql_init, [has_mysql_lib=true], [has_mysql_lib=false])
-      if test "$has_mysql_lib" = true; then
+   AC_CHECK_HEADERS(mysql/mysql.h, [has_mysql_header="true"], [has_mysql_header="false"])
+   if test "$has_mysql_header" = "true"; then  
+      AC_CHECK_LIB(mysqlclient, mysql_init, [has_mysql_lib="true"], [has_mysql_lib="false"])
+      if test "$has_mysql_lib" = "true"; then
         PLUGINS="$PLUGINS plugin_mysql.o"
         AC_DEFINE(PLUGIN_MYSQL,1,[mysql plugin])
         PLUGINLIBS="$PLUGINLIBS -lmysqlclient"
@@ -214,8 +214,8 @@ if test "$PLUGIN_POP3" = "yes"; then
    AC_DEFINE(PLUGIN_POP3,1,[POP3 plugin])
 fi
 if test "$PLUGIN_PPP" = "yes"; then
-   AC_CHECK_HEADERS(net/if_ppp.h, [has_ppp_header=true], [has_ppp_header=false])
-   if test "$has_ppp_header" = true; then
+   AC_CHECK_HEADERS(net/if_ppp.h, [has_ppp_header="true"], [has_ppp_header="false"])
+   if test "$has_ppp_header" = "true"; then
    PLUGINS="$PLUGINS plugin_ppp.o"
    AC_DEFINE(PLUGIN_PPP,1,[ppp plugin])
    else