
There's a ton of stuff in here that's holdovers from the days of Drizzle, such as intel c compiler and solaris support, that can just flat go away. There's also support for being able to turn off a bunch of various things with m4 parameters that were there to let us deal with legacy MySQL code. We don't need any of those. We can also just depend on autoconf archive for more functions and align with the behavior there rather than carrying local logic. While we're at it, rename both pandora and zuul prefixed things to opendev. pandora-build is what we were calling the collection of autoconf stuff 10 years ago, but is a long-dead project. That said, none of this is specific to zuul, but might still be useful for general C++ "I want to build things cleanly and stricly like Drizzle did". Use opendev for now, with the thought that perhaps we'll extract these into their own repo to be used by people should they choose. Perhaps a better prefix choice would be "DRIZZLE_" - since these are "build things inspired by Drizzle" - but maybe that implies a provenance that doesn't exist. Update copyright for the files that have essentially been rewritten. For the ones that are still legitimately based on the original code, add a Red Hat header line.
82 lines
2.2 KiB
Plaintext
82 lines
2.2 KiB
Plaintext
dnl -*- bash -*-
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl Copyright 2009 Sun Microsystems, Inc.
|
|
dnl Copyright 2019 Red Hat, Inc.
|
|
dnl
|
|
dnl This program is free software; you can redistribute it and/or modify
|
|
dnl it under the terms of the GNU General Public License as published by
|
|
dnl the Free Software Foundation; version 2 of the License.
|
|
dnl
|
|
dnl This program is distributed in the hope that it will be useful,
|
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
dnl GNU General Public License for more details.
|
|
dnl
|
|
dnl You should have received a copy of the GNU General Public License
|
|
dnl along with this program; if not, write to the Free Software
|
|
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
|
AC_INIT(
|
|
[zuul_preview],
|
|
[1.0],
|
|
[http://storyboard.openstack.org],
|
|
[zuul-preview],
|
|
[http://zuul-ci.org/])
|
|
|
|
AC_CONFIG_AUX_DIR([config])
|
|
|
|
AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability subdir-objects foreign tar-ustar])
|
|
AC_PREREQ(2.59)dnl Minimum Autoconf version required.
|
|
|
|
AX_CHECK_ENABLE_DEBUG
|
|
AC_CANONICAL_HOST
|
|
AC_CANONICAL_BUILD
|
|
AC_ARG_PROGRAM
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AC_CONFIG_SRCDIR([zuul-preview/main.cc])
|
|
|
|
OPENDEV_CANONICAL_TARGET
|
|
|
|
LT_PREREQ([2.4])
|
|
LT_INIT
|
|
LT_LANG([C++])
|
|
|
|
REQUIRE_LIBCPPREST
|
|
|
|
#########################################################################
|
|
|
|
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
|
|
LDFLAGS="${LDFLAGS} ${LD_VERSION_SCRIPT}"
|
|
])
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|
|
|
|
echo "---"
|
|
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
|
|
echo ""
|
|
echo " * Installation prefix: $prefix"
|
|
echo " * System type: $host_vendor-$host_os"
|
|
echo " * Host CPU: $host_cpu"
|
|
echo " * C++ Flags: $AM_CXXFLAGS"
|
|
echo " * CPP Flags: $AM_CPPFLAGS"
|
|
echo " * Debug enabled: $enable_debug"
|
|
echo " * Coverage enabled: $enable_code_coverage"
|
|
echo ""
|
|
echo "---"
|
|
|
|
dnl libtoolize scans configure.ac and needs to see some text
|
|
m4_define([LIBTOOLIZE_AC_INIT], [])
|
|
m4_define([UNUSED_MACRO], [
|
|
LT_INIT
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
])
|