Blame configure.ac

Packit 679830
#
Packit 679830
#  configure.ac -- autoconf configuration for the LZO library
Packit 679830
#
Packit 679830
#  This file is part of the LZO data compression library.
Packit 679830
#
Packit 679830
#  Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
Packit 679830
#  All Rights Reserved.
Packit 679830
#
Packit 679830
#  The LZO library is free software; you can redistribute it and/or
Packit 679830
#  modify it under the terms of the GNU General Public License as
Packit 679830
#  published by the Free Software Foundation; either version 2 of
Packit 679830
#  the License, or (at your option) any later version.
Packit 679830
#
Packit 679830
#  The LZO library is distributed in the hope that it will be useful,
Packit 679830
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 679830
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 679830
#  GNU General Public License for more details.
Packit 679830
#
Packit 679830
#  You should have received a copy of the GNU General Public License
Packit 679830
#  along with the LZO library; see the file COPYING.
Packit 679830
#  If not, write to the Free Software Foundation, Inc.,
Packit 679830
#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Packit 679830
#
Packit 679830
#  Markus F.X.J. Oberhumer
Packit 679830
#  <markus@oberhumer.com>
Packit 679830
#  http://www.oberhumer.com/opensource/lzo/
Packit 679830
#
Packit 679830
Packit 679830
Packit 679830
# /***********************************************************************
Packit 679830
# // Init
Packit 679830
# ************************************************************************/
Packit 679830
Packit 679830
AC_COPYRIGHT([Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer.
Packit 679830
All Rights Reserved.
Packit 679830
This configure script may be copied, distributed and modified under the
Packit 679830
terms of the GNU General Public License; see COPYING for more details.])
Packit 679830
Packit 679830
AC_PREREQ(2.69)
Packit 679830
AC_INIT([LZO],[2.08],[markus@oberhumer.com],[lzo],[http://www.oberhumer.com/opensource/lzo/])
Packit 679830
AC_MSG_NOTICE([Configuring LZO $PACKAGE_VERSION])
Packit 679830
AC_CONFIG_SRCDIR(src/lzo_init.c)
Packit 679830
AC_CONFIG_AUX_DIR(autoconf)
Packit 679830
m4_include([autoconf/local.m4])
Packit 679830
AC_PREFIX_DEFAULT(/usr/local)
Packit 679830
AC_CANONICAL_BUILD
Packit 679830
AC_CANONICAL_HOST
Packit 679830
AC_CANONICAL_TARGET
Packit 679830
AM_MAINTAINER_MODE
Packit 679830
Packit 679830
if test -z "$ac_abs_top_srcdir"; then
Packit 679830
    _AC_SRCDIRS([.])
Packit 679830
fi
Packit 679830
if test -z "$ac_abs_top_srcdir"; then
Packit 679830
    as_fn_error 1 "internal error: ac_abs_top_srcdir is not set"
Packit 679830
fi
Packit 679830
if test -r .Conf.settings1; then
Packit 679830
    . ./.Conf.settings1
Packit 679830
fi
Packit 679830
Packit 679830
AC_PROG_CC
Packit 679830
AM_PROG_CC_C_O
Packit 679830
AM_PROG_AS
Packit 679830
AC_PROG_CPP
Packit 679830
mfx_PROG_CPPFLAGS
Packit 679830
AC_C_CONST
Packit 679830
mfx_LZO_CHECK_ENDIAN
Packit 679830
AC_SYS_LARGEFILE
Packit 679830
Packit 679830
AM_INIT_AUTOMAKE([1.14.1 gnu subdir-objects])
Packit 679830
AM_SILENT_RULES([yes])
Packit 679830
AC_CONFIG_HEADERS([config.h:config.hin])
Packit 679830
Packit 679830
AC_ENABLE_STATIC
Packit 679830
AC_DISABLE_SHARED
Packit 679830
LT_INIT
Packit 679830
Packit 679830
Packit 679830
# /***********************************************************************
Packit 679830
# // Checks for header files
Packit 679830
# ************************************************************************/
Packit 679830
Packit 679830
mfx_ACC_CHECK_HEADERS
Packit 679830
dnl AC_CHECK_HEADERS([sys/param.h sys/resource.h sys/times.h])
Packit 679830
if test "X$ac_cv_header_limits_h" != Xyes; then
Packit 679830
    AC_MSG_ERROR([<limits.h> header not found])
Packit 679830
fi
Packit 679830
mfx_CHECK_HEADER_SANE_LIMITS_H
Packit 679830
if test "X$mfx_cv_header_sane_limits_h" != Xyes; then
Packit 679830
    AC_MSG_ERROR([your <limits.h> header is broken - for details see config.log])
Packit 679830
fi
Packit 679830
Packit 679830
Packit 679830
# /***********************************************************************
Packit 679830
# // Checks for typedefs and structures
Packit 679830
# ************************************************************************/
Packit 679830
Packit 679830
AC_TYPE_OFF_T
Packit 679830
AC_CHECK_TYPE(ptrdiff_t,long)
Packit 679830
AC_TYPE_SIZE_T
Packit 679830
AC_TYPE_SIGNAL
Packit 679830
Packit 679830
mfx_ACC_CHECK_SIZEOF
Packit 679830
mfx_CHECK_SIZEOF
Packit 679830
Packit 679830
Packit 679830
# /***********************************************************************
Packit 679830
# // Checks for library functions
Packit 679830
# ************************************************************************/
Packit 679830
Packit 679830
mfx_ACC_CHECK_FUNCS
Packit 679830
mfx_CHECK_LIB_WINMM
Packit 679830
Packit 679830
Packit 679830
# /***********************************************************************
Packit 679830
# // Checks for assembler
Packit 679830
# ************************************************************************/
Packit 679830
Packit 679830
AC_ARG_ENABLE(asm, AS_HELP_STRING(--disable-asm,disable assembly versions))
Packit 679830
Packit 679830
asm_arch=
Packit 679830
asm_dir=
Packit 679830
asm_msg_amd64=no
Packit 679830
asm_msg_i386=no
Packit 679830
Packit Service db4d20
case "$target_cpu-$ac_cv_sizeof_void_p" in
Packit 679830
    amd64-8 | x86_64-8) asm_arch="amd64"; asm_dir="asm/amd64/src_gas/elf64"; asm_mode="amd64_src_gas_elf64" ;;
Packit 679830
    i?86-4) asm_arch="i386"; asm_dir="asm/i386/src_gas"; asm_mode="i386_src_gas" ;;
Packit 679830
    *) enable_asm=no ;;
Packit 679830
esac
Packit 679830
LZO_USE_ASM_i386_src_gas=no
Packit 679830
Packit 679830
AC_MSG_CHECKING([whether to build assembly versions])
Packit 679830
if test "X$enable_asm" != Xno; then
Packit 679830
mfx_compile_S='${CCAS} ${CCASFLAGS} -c conftest.S 1>&AS_MESSAGE_LOG_FD'
Packit 679830
cat > conftest.S <
Packit 679830
#if !defined(__i386__) && !defined(__i386)
Packit 679830
#error
Packit 679830
this+is+an+error
Packit 679830
#endif
Packit 679830
#include "$ac_abs_top_srcdir/$asm_dir/lzo1x_f1.S"
Packit 679830
EOF
Packit 679830
enable_asm=no
Packit 679830
if AC_TRY_EVAL(mfx_compile_S); then
Packit 679830
    if AC_TRY_COMMAND([test -s conftest.$ac_objext]); then
Packit 679830
        enable_asm=yes
Packit 679830
        eval asm_msg_$asm_arch="'yes [[$asm_dir]]'"
Packit 679830
        eval LZO_USE_ASM_$asm_mode=yes
Packit 679830
    fi
Packit 679830
fi
Packit 679830
if test "X$enable_asm" = Xno; then
Packit 679830
    echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
Packit 679830
    cat conftest.S >&AS_MESSAGE_LOG_FD
Packit 679830
fi
Packit 679830
rm -rf conftest*
Packit 679830
fi
Packit 679830
AC_MSG_RESULT([$enable_asm])
Packit 679830
Packit 679830
AM_CONDITIONAL(LZO_USE_ASM_i386_src_gas, [test "X$LZO_USE_ASM_i386_src_gas" != Xno])
Packit 679830
AM_CONDITIONAL(LZO_USE_ASM_i386_obj_elf32, [false])
Packit 679830
Packit 679830
Packit 679830
# /***********************************************************************
Packit 679830
# // Write output files
Packit 679830
# ************************************************************************/
Packit 679830
Packit 679830
mfx_LZO_LZOCHK(["-I$srcdir"],[#include "include/lzo/lzoconf.h"],["src/lzo_supp.h"])
Packit 679830
Packit 679830
if test -r .Conf.settings2; then
Packit 679830
    . ./.Conf.settings2
Packit 679830
fi
Packit 679830
Packit 679830
my_DEFS="-DLZO_HAVE_CONFIG_H=1"
Packit 679830
if test "X$enable_asm" != Xno; then
Packit 679830
    my_DEFS="$my_DEFS -DLZO_USE_ASM=1"
Packit 679830
fi
Packit 679830
Packit 679830
AC_CONFIG_COMMANDS_PRE([
Packit 679830
    test "X$DEFS" = "X-DHAVE_CONFIG_H" && DEFS=
Packit 679830
    test "X$DEFS" != "X" && DEFS="$DEFS "
Packit 679830
    DEFS="${DEFS}${my_DEFS}"
Packit 679830
])
Packit 679830
AC_CONFIG_FILES([Makefile])
Packit 679830
AC_OUTPUT
Packit 679830
Packit 679830
Packit 679830
##   enable AMD64 assembly code : ${asm_msg_amd64}
Packit 679830
cat <
Packit 679830
Packit 679830
   LZO configuration summary
Packit 679830
   -------------------------
Packit 679830
   LZO version                : ${PACKAGE_VERSION}
Packit 679830
   configured for host        : ${host_cpu}-${host_vendor}-${host_os}
Packit 679830
   source code location       : ${srcdir}
Packit 679830
   compiler                   : ${CC}
Packit 679830
   preprocessor definitions   : ${DEFS}
Packit 679830
   preprocessor flags         : ${CPPFLAGS}
Packit 679830
   compiler flags             : ${CFLAGS}
Packit 679830
   build static library       : ${enable_static}
Packit 679830
   build shared library       : ${enable_shared}
Packit 679830
   enable i386 assembly code  : ${asm_msg_i386}
Packit 679830
Packit 679830
Packit 679830
   LZO ${PACKAGE_VERSION} configured.
Packit 679830
Packit 679830
   Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
Packit 679830
   All Rights Reserved.
Packit 679830
Packit 679830
   The LZO library is free software; you can redistribute it and/or
Packit 679830
   modify it under the terms of the GNU General Public License as
Packit 679830
   published by the Free Software Foundation; either version 2 of
Packit 679830
   the License, or (at your option) any later version.
Packit 679830
Packit 679830
   The LZO library is distributed in the hope that it will be useful,
Packit 679830
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 679830
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 679830
   GNU General Public License for more details.
Packit 679830
Packit 679830
   Markus F.X.J. Oberhumer
Packit 679830
   <markus@oberhumer.com>
Packit 679830
   http://www.oberhumer.com/opensource/lzo/
Packit 679830
Packit 679830
Packit 679830
Type \`make' to build LZO. Type \`make install' to install LZO.
Packit 679830
After installing LZO, please read the accompanied documentation.
Packit 679830
Packit 679830
EOF
Packit 679830
Packit 679830
# vi:ts=4:et