]> git.sesse.net Git - vlc/commitdiff
* configure.ac: allow to specify another name for the wx-config script, for
authorSam Hocevar <sam@videolan.org>
Mon, 14 Mar 2005 10:38:45 +0000 (10:38 +0000)
committerSam Hocevar <sam@videolan.org>
Mon, 14 Mar 2005 10:38:45 +0000 (10:38 +0000)
    systems with both 2.4 and 2.5.

configure.ac

index 97cc604eb80bec4022b6ea4454330fe0da36a98d..0ec52ab2c5d1fe366565d52d9b6a9edf2f2b0de1 100644 (file)
@@ -3619,8 +3619,15 @@ then
       then
         WXWINDOWS_PATH="${with_wx_config_path}:${PATH}"
       fi ])
+  WXWINDOWS_NAME="wx-config"
+  AC_ARG_WITH(wx-config,
+    [    --with-wx-config=NAME      wx-config name (default is wx-config)],
+    [ if test "${with_wx_config}" != "no"
+      then
+        WXWINDOWS_NAME="${with_wx_config}"
+      fi ])
   # look for wx-config
-  AC_PATH_PROG(WX_CONFIG, wx-config, no, ${WXWINDOWS_PATH})
+  AC_PATH_PROG(WX_CONFIG, ${WXWINDOWS_NAME}, no, ${WXWINDOWS_PATH})
   if test "${WX_CONFIG}" != "no" -a "${CXX}" != ""
   then
     if expr 2.3.0 \> `${WX_CONFIG} --version` >/dev/null