123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- #
- # Copyright (C) 1994-2018 Altair Engineering, Inc.
- # For more information, contact Altair at www.altair.com.
- #
- # This file is part of the PBS Professional ("PBS Pro") software.
- #
- # Open Source License Information:
- #
- # PBS Pro is free software. You can redistribute it and/or modify it under the
- # terms of the GNU Affero General Public License as published by the Free
- # Software Foundation, either version 3 of the License, or (at your option) any
- # later version.
- #
- # PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- # FOR A PARTICULAR PURPOSE.
- # See the GNU Affero General Public License for more details.
- #
- # You should have received a copy of the GNU Affero General Public License
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
- #
- # Commercial License Information:
- #
- # For a copy of the commercial license terms and conditions,
- # go to: (http://www.pbspro.com/UserArea/agreement.html)
- # or contact the Altair Legal Department.
- #
- # Altair’s dual-license business model allows companies, individuals, and
- # organizations to create proprietary derivative works of PBS Pro and
- # distribute them - whether embedded or bundled with other software -
- # under a commercial license agreement.
- #
- # Use of Altair’s trademarks, including but not limited to "PBS™",
- # "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
- # trademark licensing policies.
- #
- AC_PREREQ([2.63])
- # Use PBS_VERSION to override the version statically defined here. For example:
- # ./configure PBS_VERSION=19.1.3 --prefix=/opt/pbs
- AC_INIT([PBS Professional],
- [19.1.3],
- [pbssupport@altair.com],
- [pbspro],
- [http://www.pbspro.org/])
- AC_CONFIG_HEADERS([src/include/pbs_config.h])
- AC_CONFIG_SRCDIR([src/cmds/qmgr.c])
- AC_CONFIG_AUX_DIR([buildutils])
- AC_CONFIG_MACRO_DIR([m4])
- AC_CANONICAL_TARGET([])
- os_id=`grep ^ID= /etc/os-release | sed -n 's/.*"\(.*\)"/\1/p'`
- AS_CASE([$os_id],
- [opensuse-tumbleweed], m4_define([am_init_string], [-Wall foreign subdir-objects]),
- [*], m4_define([am_init_string], [-Wall foreign]))
- AM_INIT_AUTOMAKE(am_init_string)
- AC_USE_SYSTEM_EXTENSIONS
- # Checks for programs.
- AC_PROG_AWK
- AC_PROG_YACC
- AC_PROG_SED
- AC_PROG_CC
- AC_PROG_LEX
- AC_PROG_INSTALL
- AC_PROG_LN_S
- # Automake macros
- #AM_PROG_AR macro is defined with automake version >= 1.12
- m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
- AM_PROG_CC_C_O
- # Initialize libtool
- LT_INIT([shared static])
- # Checks for libraries.
- AC_CHECK_LIB([c], [xdr_int],
- [],
- AC_CHECK_LIB(nsl, xdr_int)
- )
- AC_CHECK_LIB([c], [ruserok],
- [],
- AC_CHECK_LIB(socket, ruserok)
- )
- AC_CHECK_LIB([c], [crypt],
- [],
- AC_CHECK_LIB(crypt, crypt)
- )
- AC_CHECK_LIB([c], [posix_openpt],
- AC_DEFINE([HAVE_POSIX_OPENPT], [], [Defined whe posix_openpt is available])
- )
- AC_CHECK_LIB(dl, dlopen)
- AC_CHECK_LIB([kvm], [kvm_open])
- AC_CHECK_LIB([socket], [socket],
- [socket_lib="-lsocket -lnsl"]
- AC_SUBST(socket_lib),
- [socket_lib=""]
- AC_SUBST(socket_lib),
- [-lnsl]
- )
- AC_CHECK_LIB([c], [malloc_info],
- AC_DEFINE([HAVE_MALLOC_INFO], [], [Defined when malloc_info is available])
- )
- # Check for X Window System
- AC_PATH_XTRA
- # Checks for optional header files.
- AC_CHECK_HEADERS([ \
- com_err.h \
- gssapi.h \
- krb5.h \
- libpq-fe.h \
- mach/mach.h \
- nlist.h \
- sys/eventfd.h \
- sys/systeminfo.h \
- ])
- # Checks for required header files.
- AC_CHECK_HEADERS([ \
- stdio.h \
- alloca.h \
- arpa/inet.h \
- asm/types.h \
- assert.h \
- crypt.h \
- ctype.h \
- dirent.h \
- dlfcn.h \
- execinfo.h \
- fcntl.h \
- features.h \
- float.h \
- fstab.h \
- ftw.h \
- grp.h \
- libgen.h \
- limits.h \
- malloc.h \
- math.h \
- memory.h \
- mntent.h \
- netdb.h \
- netinet/in.h \
- netinet/in_systm.h \
- netinet/ip.h \
- netinet/tcp.h \
- openssl/aes.h \
- openssl/bio.h \
- openssl/err.h \
- openssl/evp.h \
- openssl/ssl.h \
- paths.h \
- poll.h \
- pthread.h \
- pwd.h \
- regex.h \
- signal.h \
- stddef.h \
- stdint.h \
- stdio.h \
- stdlib.h \
- string.h \
- strings.h \
- syscall.h \
- syslog.h \
- sys/epoll.h \
- sys/fcntl.h \
- sys/file.h \
- sys/ioctl.h \
- sys/mman.h \
- sys/mount.h \
- sys/param.h \
- sys/poll.h \
- sys/prctl.h \
- sys/procfs.h \
- sys/quota.h \
- sys/resource.h \
- sys/select.h \
- sys/signal.h \
- sys/socket.h \
- sys/statfs.h \
- sys/stat.h \
- sys/statvfs.h \
- sys/sysctl.h \
- sys/sysinfo.h \
- sys/sysmacros.h \
- sys/time.h \
- sys/timeb.h \
- sys/times.h \
- sys/types.h \
- sys/uio.h \
- sys/un.h \
- sys/unistd.h \
- sys/user.h \
- sys/utsname.h \
- sys/vfs.h \
- sys/wait.h \
- termios.h \
- time.h \
- unistd.h \
- utime.h \
- X11/Intrinsic.h \
- X11/X.h \
- X11/Xlib.h \
- zlib.h \
- ],, AC_MSG_ERROR([Required header file is missing.]) \
- )
- # Checks for typedefs, structures, and compiler characteristics.
- #AC_CHECK_HEADER_STDBOOL macro is defined with autoconf version >= 2.67
- m4_ifdef([AC_CHECK_HEADER_STDBOOL], [AC_CHECK_HEADER_STDBOOL])
- AC_TYPE_UID_T
- AC_TYPE_MODE_T
- AC_TYPE_OFF_T
- AC_TYPE_PID_T
- AC_C_RESTRICT
- AC_TYPE_SIZE_T
- AC_TYPE_SSIZE_T
- AC_CHECK_MEMBERS([struct stat.st_blksize])
- AC_TYPE_UINT16_T
- AC_TYPE_UINT32_T
- AC_TYPE_UINT64_T
- AC_TYPE_UINT8_T
- AC_CHECK_TYPES([ptrdiff_t])
- # Checks for library functions.
- AC_FUNC_ALLOCA
- AC_FUNC_CHOWN
- AC_FUNC_ERROR_AT_LINE
- AC_FUNC_FORK
- AC_FUNC_GETGROUPS
- AC_FUNC_GETMNTENT
- AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
- AC_FUNC_MALLOC
- AC_FUNC_MKTIME
- AC_FUNC_MMAP
- AC_FUNC_REALLOC
- AC_FUNC_STRERROR_R
- AC_FUNC_STRTOD
- AC_CHECK_FUNCS([ \
- alarm \
- atexit \
- bzero \
- dup2 \
- endpwent \
- floor \
- ftruncate \
- getcwd \
- gethostbyaddr \
- gethostbyname \
- gethostname \
- getmntent \
- getpagesize \
- gettimeofday \
- hasmntopt \
- inet_ntoa \
- localtime_r \
- memchr \
- memmove \
- memset \
- mkdir \
- munmap \
- pathconf \
- poll \
- pstat_getdynamic \
- putenv \
- realpath \
- regcomp \
- rmdir \
- select \
- setresuid \
- setresgid \
- seteuid \
- setegid \
- strerror_r \
- socket \
- strcasecmp \
- strchr \
- strcspn \
- strdup \
- strerror \
- strncasecmp \
- strpbrk \
- strrchr \
- strspn \
- strstr \
- strtol \
- strtoul \
- strtoull \
- sysinfo \
- uname \
- utime \
- ])
- PKG_PROG_PKG_CONFIG
- m4_ifdef([PKG_INSTALLDIR],
- [PKG_INSTALLDIR],
- [
- pkgconfigdir=/usr/lib64/pkgconfig
- AC_SUBST([pkgconfigdir])
- ])
- # PBS macros (order matters for some of these)
- PBS_AC_PBS_VERSION
- PBS_AC_MACHINE_TYPE
- PBS_AC_DECL_H_ERRNO
- PBS_AC_DECL_SOCKLEN_T
- PBS_AC_DECL_EPOLL
- PBS_AC_DECL_EPOLL_PWAIT
- PBS_AC_DECL_PPOLL
- PBS_AC_WITH_SERVER_HOME
- PBS_AC_WITH_SERVER_NAME_FILE
- PBS_AC_WITH_DATABASE_DIR
- PBS_AC_WITH_DATABASE_USER
- PBS_AC_WITH_DATABASE_PORT
- PBS_AC_WITH_PBS_CONF_FILE
- PBS_AC_WITH_TMP_DIR
- PBS_AC_WITH_UNSUPPORTED_DIR
- PBS_AC_WITH_CORE_LIMIT
- PBS_AC_WITH_PYTHON
- PBS_AC_WITH_EXPAT
- PBS_AC_WITH_EDITLINE
- PBS_AC_WITH_HWLOC
- PBS_AC_WITH_LIBICAL
- PBS_AC_WITH_SENDMAIL
- PBS_AC_WITH_SWIG
- PBS_AC_WITH_TCL
- PBS_AC_WITH_TCLATRSEP
- PBS_AC_WITH_XAUTH
- PBS_AC_WITH_MIN_STACK_LIMIT
- PBS_AC_DISABLE_RPP
- PBS_AC_DISABLE_SHELL_PIPE
- PBS_AC_DISABLE_SYSLOG
- PBS_AC_ENABLE_ALPS
- PBS_AC_ENABLE_CPUSET
- PBS_AC_WITH_LIBZ
- PBS_AC_ENABLE_PTL
- PBS_AC_SYSTEMD_UNITDIR
- AC_CONFIG_FILES([
- pbspro.spec
- Makefile
- buildutils/Makefile
- buildutils/pbs_mkdirs
- doc/Makefile
- test/Makefile
- test/fw/Makefile
- test/tests/Makefile
- test/fw/setup.py
- test/fw/ptl/__init__.py
- src/Makefile
- src/cmds/Makefile
- src/cmds/mpiexec
- src/cmds/nqs2pbs
- src/cmds/pbs_lamboot
- src/cmds/pbs_mpihp
- src/cmds/pbs_mpilam
- src/cmds/pbs_mpirun
- src/cmds/pbs_remsh
- src/cmds/pbsrun_unwrap
- src/cmds/pbsrun_wrap
- src/cmds/pbsrun
- src/cmds/scripts/Makefile
- src/cmds/scripts/au-nodeupdate
- src/cmds/scripts/modulefile
- src/cmds/scripts/pbs_habitat
- src/cmds/scripts/pbs_init.d
- src/cmds/scripts/pbs_poerun
- src/cmds/scripts/pbs_postinstall
- src/cmds/scripts/pbs.service
- src/cmds/scripts/pbsrun.poe
- src/hooks/Makefile
- src/iff/Makefile
- src/include/Makefile
- src/include/pbs_version.h
- src/lib/Libattr/Makefile
- src/lib/Libdb/Makefile
- src/lib/Liblog/Makefile
- src/lib/Libnet/Makefile
- src/lib/Libpbs/Makefile
- src/lib/Libpbs/pbs.pc
- src/lib/Libpython/Makefile
- src/lib/Libsec/Makefile
- src/lib/Libsite/Makefile
- src/lib/Libtpp/Makefile
- src/lib/Libutil/Makefile
- src/lib/Makefile
- src/modules/Makefile
- src/modules/python/Makefile
- src/mom_rcp/Makefile
- src/resmom/Makefile
- src/scheduler/Makefile
- src/server/Makefile
- src/tools/Makefile
- src/tools/wrap_tcl.sh
- src/unsupported/Makefile
- src/unsupported/pbs_diag
- src/unsupported/pbs_dtj
- ])
- AC_OUTPUT
|