Don't silently disable WiFi on Linux if we can't find iwlib.h. (Bug 503597) r=dougt,bsmedberg
☠☠ backed out by c0d86da16888 ☠ ☠
authorL. David Baron <dbaron@dbaron.org>
Mon, 20 Jul 2009 07:04:42 -0400
changeset 30422 6e11834d07c9e5eb2d5d0370119b072ba14b060f
parent 30421 aa85b2f55960cac97780c712fdf05c9e263c2fd8
child 30423 22ec9060a93fe6793609dea50a122007eea21c73
child 30425 c0d86da168885b0cd20af7eefacb33c5e330e128
push idunknown
push userunknown
push dateunknown
reviewersdougt, bsmedberg
bugs503597
milestone1.9.2a1pre
Don't silently disable WiFi on Linux if we can't find iwlib.h. (Bug 503597) r=dougt,bsmedberg
configure.in
--- a/configure.in
+++ b/configure.in
@@ -7952,16 +7952,18 @@ MOZ_ARG_DISABLE_BOOL(necko-wifi,
     NECKO_WIFI=1
 )
 if test "$NECKO_WIFI"; then
   NECKO_WIFI=
   if test "$OS_ARCH" = "Linux"; then
     AC_CHECK_HEADER([iwlib.h])
     if test "$ac_cv_header_iwlib_h" = "yes"; then
       NECKO_WIFI=1
+    else
+      AC_MSG_ERROR([Can't find header iwlib.h for Necko WiFi scanning (might be in package iwlib-dev (Ubuntu) or wireless-tools-devel (Fedora)); use --disable-necko-wifi to disable])
     fi
   elif test "$OS_ARCH" = "Darwin"; then
     NECKO_WIFI=1
   elif test "$OS_ARCH" = "WINNT"; then
     NECKO_WIFI=1
   elif test "$OS_ARCH" = "WINCE"; then
     NECKO_WIFI=1    
   else