Blame configure.ac

Packit 9fb438
#******************************************************************************
Packit 9fb438
# Process this file with autoconf to produce a configure script.
Packit 9fb438
#******************************************************************************
Packit 9fb438
# Written by Chris Dunlap <cdunlap@llnl.gov>.
Packit 9fb438
# Copyright (C) 2007-2017 Lawrence Livermore National Security, LLC.
Packit 9fb438
# Copyright (C) 2002-2007 The Regents of the University of California.
Packit 9fb438
# UCRL-CODE-155910.
Packit 9fb438
#
Packit 9fb438
# This file is part of the MUNGE Uid 'N' Gid Emporium (MUNGE).
Packit 9fb438
# For details, see <https://dun.github.io/munge/>.
Packit 9fb438
#
Packit 9fb438
# MUNGE is free software: you can redistribute it and/or modify it under
Packit 9fb438
# the terms of the GNU General Public License as published by the Free
Packit 9fb438
# Software Foundation, either version 3 of the License, or (at your option)
Packit 9fb438
# any later version.  Additionally for the MUNGE library (libmunge), you
Packit 9fb438
# can redistribute it and/or modify it under the terms of the GNU Lesser
Packit 9fb438
# General Public License as published by the Free Software Foundation,
Packit 9fb438
# either version 3 of the License, or (at your option) any later version.
Packit 9fb438
#
Packit 9fb438
# MUNGE is distributed in the hope that it will be useful, but WITHOUT
Packit 9fb438
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
Packit 9fb438
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
Packit 9fb438
# and GNU Lesser General Public License for more details.
Packit 9fb438
#
Packit 9fb438
# You should have received a copy of the GNU General Public License
Packit 9fb438
# and GNU Lesser General Public License along with MUNGE.  If not, see
Packit 9fb438
# <http://www.gnu.org/licenses/>.
Packit 9fb438
#******************************************************************************
Packit 9fb438
Packit 9fb438
##
Packit 9fb438
# Prologue.
Packit 9fb438
##
Packit 9fb438
AC_INIT
Packit 9fb438
X_AC_META
Packit 9fb438
AC_CONFIG_AUX_DIR([config])
Packit 9fb438
AC_CONFIG_SRCDIR([src/libmunge/munge.h])
Packit 9fb438
X_AC_CANONICAL
Packit 9fb438
X_AC_HUMOR
Packit 9fb438
X_AC_EXPAND_INSTALL_DIRS
Packit 9fb438
Packit 9fb438
##
Packit 9fb438
# Automake support.
Packit 9fb438
##
Packit 9fb438
AM_INIT_AUTOMAKE([$PACKAGE], [$VERSION])
Packit 9fb438
AC_CONFIG_HEADERS([config/config.h])
Packit 9fb438
AM_MAINTAINER_MODE
Packit 9fb438
Packit 9fb438
##
Packit 9fb438
# Checks for programs.
Packit 9fb438
##
Packit 9fb438
AC_USE_SYSTEM_EXTENSIONS
Packit 9fb438
X_AC_ARCH
Packit 9fb438
AC_PROG_CC
Packit 9fb438
AM_PROG_CC_C_O
Packit 9fb438
LT_INIT
Packit 9fb438
AC_PROG_MAKE_SET
Packit 9fb438
X_AC_DEBUG
Packit 9fb438
Packit 9fb438
##
Packit 9fb438
# Checks for libraries.
Packit 9fb438
##
Packit 9fb438
X_AC_CHECK_PTHREADS
Packit 9fb438
X_AC_CHECK_COND_LIB(bz2, BZ2_bzBuffToBuffCompress)
Packit 9fb438
X_AC_CHECK_COND_LIB(z, compress)
Packit 9fb438
AC_SEARCH_LIBS(gethostbyname, nsl)
Packit 9fb438
AC_SEARCH_LIBS(socket, socket)
Packit 9fb438
AM_PATH_LIBGCRYPT
Packit 9fb438
X_AC_PATH_OPENSSL
Packit 9fb438
X_AC_SELECT_CRYPTO_LIB
Packit 9fb438
if test "${CRYPTO_PKG}" = "openssl"; then
Packit 9fb438
  X_AC_CHECK_OPENSSL
Packit 9fb438
fi
Packit 9fb438
Packit 9fb438
##
Packit 9fb438
# Checks for header files.
Packit 9fb438
##
Packit 9fb438
AC_HEADER_STDC
Packit 9fb438
AC_CHECK_HEADERS( \
Packit 9fb438
  bzlib.h \
Packit 9fb438
  standards.h \
Packit 9fb438
  sys/random.h \
Packit 9fb438
  zlib.h \
Packit 9fb438
)
Packit 9fb438
Packit 9fb438
##
Packit 9fb438
# Checks for typedefs, structures, and compiler characteristics.
Packit 9fb438
##
Packit 9fb438
AC_C_BIGENDIAN
Packit 9fb438
AC_C_CONST
Packit 9fb438
AC_TYPE_UID_T
Packit 9fb438
AC_CHECK_TYPES(socklen_t, [], [], [#include <sys/types.h>
Packit 9fb438
#include <sys/socket.h>])
Packit 9fb438
Packit 9fb438
##
Packit 9fb438
# Checks for library functions.
Packit 9fb438
##
Packit 9fb438
AC_CHECK_FUNCS( \
Packit 9fb438
  getentropy \
Packit 9fb438
  getrandom \
Packit 9fb438
  localtime_r \
Packit 9fb438
  mlockall \
Packit 9fb438
  sysconf \
Packit 9fb438
)
Packit 9fb438
AC_REPLACE_FUNCS( \
Packit 9fb438
  inet_ntop \
Packit 9fb438
  strlcat \
Packit 9fb438
  strlcpy \
Packit 9fb438
)
Packit 9fb438
X_AC_GETGRENT
Packit 9fb438
X_AC_GETGRNAM
Packit 9fb438
X_AC_GETPWNAM
Packit 9fb438
Packit 9fb438
##
Packit 9fb438
# Checks for platform-specific issues.
Packit 9fb438
##
Packit 9fb438
X_AC_AIX
Packit 9fb438
X_AC_DARWIN
Packit 9fb438
Packit 9fb438
##
Packit 9fb438
# Checks for client authentication method.
Packit 9fb438
##
Packit 9fb438
X_AC_SELECT_AUTH_METHOD
Packit 9fb438
Packit 9fb438
##
Packit 9fb438
# Epilogue.
Packit 9fb438
##
Packit 9fb438
AC_CONFIG_FILES( \
Packit 9fb438
  Makefile \
Packit 9fb438
  src/Makefile \
Packit 9fb438
  src/etc/Makefile \
Packit 9fb438
  src/libcommon/Makefile \
Packit 9fb438
  src/libcommon/munge.7 \
Packit 9fb438
  src/libmissing/Makefile \
Packit 9fb438
  src/libmunge/Makefile \
Packit 9fb438
  src/libmunge/munge.3 \
Packit 9fb438
  src/libmunge/munge_ctx.3 \
Packit 9fb438
  src/libmunge/munge_enum.3 \
Packit 9fb438
  src/munge/Makefile \
Packit 9fb438
  src/munge/munge.1 \
Packit 9fb438
  src/munge/remunge.1 \
Packit 9fb438
  src/munge/unmunge.1 \
Packit 9fb438
  src/munged/Makefile \
Packit 9fb438
  src/munged/munged.8 \
Packit 9fb438
)
Packit 9fb438
AC_OUTPUT