]> xenbits.xensource.com Git - libvirt.git/commitdiff
Thu Nov 29 17:38:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 29 Nov 2007 17:41:57 +0000 (17:41 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 29 Nov 2007 17:41:57 +0000 (17:41 +0000)
* configure.in: Check for C compiler first before checking for
  external programs.
  Add AC_LIBTOOL_WIN32_DLL.
  Add AM_PROG_CC_STDC.
  Add AC_C_CONST.

ChangeLog
configure.in

index 034befd8dbb8b7cf4490cc8987948e0285f6e5ad..79b1ab4e73805d25fa2625e84295652437def0b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Thu Nov 29 17:38:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
+
+       * configure.in: Check for C compiler first before checking for
+         external programs.
+         Add AC_LIBTOOL_WIN32_DLL.
+         Add AM_PROG_CC_STDC.
+         Add AC_C_CONST.
+
 Thu Nov 29 16:19:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
 
        * docs/libvir.html, docs/windows.html: Updated Windows
index 6dc98adba9127c6fca7a57ee53bba2e8ab173602..eab69b308bfa18bfc8fb7b80e9ca651088c16d09 100644 (file)
@@ -26,34 +26,20 @@ LIBXML_REQUIRED="2.5.0"
 GNUTLS_REQUIRED="1.0.25"
 AVAHI_REQUIRED="0.6.0"
 
-dnl Checks for programs.
+dnl Checks for C compiler.
 AC_PROG_CC
+AM_PROG_CC_STDC
+AC_C_CONST
 AC_PROG_INSTALL
 AC_PROG_CPP
-AC_PATH_PROG(RM, rm, /bin/rm)
-AC_PATH_PROG(MV, mv, /bin/mv)
-AC_PATH_PROG(TAR, tar, /bin/tar)
-AC_PATH_PROG(XMLLINT, xmllint, /usr/bin/xmllint)
-AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc)
-
-dnl External programs that we can use if they are available.
-dnl We will hard-code paths to these programs unless we cannot
-dnl detect them, in which case we'll search for the program
-dnl along the $PATH at runtime and fail if it's not there.
-AC_PATH_PROG(DNSMASQ, dnsmasq, dnsmasq,
-       [/sbin:/usr/sbin:/usr/local/sbin:$PATH])
-AC_PATH_PROG(BRCTL, brctl, brctl,
-       [/sbin:/usr/sbin:/usr/local/sbin:$PATH])
-
-AC_DEFINE_UNQUOTED([DNSMASQ],["$DNSMASQ"],
-        [Location or name of the dnsmasq program])
-AC_DEFINE_UNQUOTED([BRCTL],["$BRCTL"],
-        [Location or name of the brctl program (see bridge-utils)])
 
 dnl Make sure we have an ANSI compiler
 AM_C_PROTOTYPES
 test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant)
 
+dnl Support building Win32 DLLs (must appear *before* AM_PROG_LIBTOOL)
+AC_LIBTOOL_WIN32_DLL
+
 AM_PROG_LIBTOOL
 
 AM_PROG_CC_C_O
@@ -78,6 +64,27 @@ if test "x$ac_cv_path_RPCGEN" != "xno"; then
                       [$ac_cv_path_RPCGEN -t </dev/null >/dev/null 2>&1])
 fi
 
+dnl Miscellaneous external programs.
+AC_PATH_PROG(RM, rm, /bin/rm)
+AC_PATH_PROG(MV, mv, /bin/mv)
+AC_PATH_PROG(TAR, tar, /bin/tar)
+AC_PATH_PROG(XMLLINT, xmllint, /usr/bin/xmllint)
+AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc)
+
+dnl External programs that we can use if they are available.
+dnl We will hard-code paths to these programs unless we cannot
+dnl detect them, in which case we'll search for the program
+dnl along the $PATH at runtime and fail if it's not there.
+AC_PATH_PROG(DNSMASQ, dnsmasq, dnsmasq,
+       [/sbin:/usr/sbin:/usr/local/sbin:$PATH])
+AC_PATH_PROG(BRCTL, brctl, brctl,
+       [/sbin:/usr/sbin:/usr/local/sbin:$PATH])
+
+AC_DEFINE_UNQUOTED([DNSMASQ],["$DNSMASQ"],
+        [Location or name of the dnsmasq program])
+AC_DEFINE_UNQUOTED([BRCTL],["$BRCTL"],
+        [Location or name of the brctl program (see bridge-utils)])
+
 dnl Specific dir for HTML output ?
 AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path],
             [path to base html directory, default $datadir/doc/html]),