diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 950886aee..883198f1c 100644 --- a/configure.ac +++ b/configure.ac @@ -1485,7 +1485,10 @@ AC_CHECK_HEADER([linux/videodev.h], AST_EXT_LIB_CHECK([X11], [X11], [XOpenDisplay], [X11/Xlib.h],,, [standard_path]) AST_EXT_LIB_CHECK([X11], [X11], [XOpenDisplay], [X11/Xlib.h],, [-I/usr/X11R6/include], [X11R6]) -AC_CHECK_FILE(/sbin/launchd, AC_DEFINE([HAVE_SBIN_LAUNCHD], 1, [Define to 1 if your system has /sbin/launchd.])) +if test "${cross_compiling}" = "no"; +then + AC_CHECK_FILE(/sbin/launchd, AC_DEFINE([HAVE_SBIN_LAUNCHD], 1, [Define to 1 if your system has /sbin/launchd.])) +fi PBX_GTK=0 AST_EXT_TOOL_CHECK([GTK], [gtk], [--cflags gthread], [--libs gthread]) |