]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Continue build even if python-config doesn't exist
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Aug 2007 09:41:58 +0000 (11:41 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Aug 2007 09:41:58 +0000 (11:41 +0200)
It's annoying that the configure script stops with an error if
python-config doesn't exist.  It's no fatal error, so the configure
should disable the python components and continue.

configure.in

index db0c1063f02d2449a9af56a026e25e5e8807709b..f7033868e6d6c9129fa2eed47dbc44b28a4cf8da 100644 (file)
@@ -348,9 +348,11 @@ if test "$build_python" = "yes"; then
   if test -z "$pythonlibs" ; then
     echo "Unable to determine python libraries! Probably python-config is not"
     echo "available on this system. Please, use --with-pythonlibs options."
-    exit 1
+    echo "Python components are disabled in this build."
+    build_python="no"
+  else
+    PYTHON_LIBS="$pythonlibs"
   fi
-  PYTHON_LIBS="$pythonlibs"
 fi
 AC_SUBST(PYTHON_LIBS)