"Fossies" - the Fresh Open Source Software Archive

Member "gnuchess-6.2.9/configure.ac" (13 Jul 2021, 3185 Bytes) of package /linux/privat/gnuchess-6.2.9.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure.ac": 6.2.8_vs_6.2.9.

    1 dnl Process this file with autoconf to produce a configure script.
    2 dnl
    3 dnl Copyright (C) 2001-2021 Free Software Foundation, Inc.
    4 dnl
    5 dnl This file is free software; as a special exception the author gives
    6 dnl unlimited permission to copy and/or distribute it, with or without
    7 dnl modifications, as long as this notice is preserved.
    8 dnl
    9 dnl This program is distributed in the hope that it will be useful, but
   10 dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
   11 dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   12 
   13 AC_INIT([GNU Chess], [6.2.9], [bug-gnu-chess@gnu.org], [gnuchess])
   14 AC_PREREQ(2.69)
   15 AC_CONFIG_HEADERS(src/config.h)
   16 AC_CONFIG_SRCDIR([src/main.cc])
   17 AM_INIT_AUTOMAKE
   18 
   19 dnl Checks for programs.
   20 AC_PROG_CC
   21 AC_PROG_CXX
   22 AM_PROG_AR
   23 AC_PROG_RANLIB
   24 AC_PROG_INSTALL
   25 AC_PROG_AWK
   26 AC_PROG_LN_S
   27 AC_STRUCT_TM
   28 AM_PROG_LEX
   29 
   30 dnl --with and --enable things
   31 AC_ARG_WITH(readline, 
   32 	AC_HELP_STRING([--with-readline],
   33 	[use readline library if available (default is YES)]),
   34 	ac_cv_use_readline=$withval,
   35 	ac_cv_use_readline=yes)
   36 
   37 dnl Check for readline library _and_ headers
   38 if test x"$ac_cv_use_readline" = "xyes"; then
   39 	AC_CHECK_LIB(ncurses, tputs)
   40 	AC_CHECK_LIB(readline, readline)
   41 	AC_CHECK_HEADERS(readline/readline.h readline/history.h)
   42 fi
   43 
   44 dnl Checks for header files.
   45 AC_HEADER_STDC
   46 
   47 dnl Either we should make these checks fail with an
   48 dnl AC_MSG_ERROR or we should treat missing headers
   49 dnl with #ifdef somehow. (As it stands, it still gives
   50 dnl valuable debugging info for bug reports, but not more.)
   51 AC_CHECK_HEADERS(time.h sys/time.h unistd.h errno.h fcntl.h libintl.h)
   52 
   53 dnl Checks for typedefs, structures, and compiler characteristics.
   54 AC_C_CONST
   55 AC_C_VOLATILE
   56 AC_FUNC_REALLOC
   57 AC_HEADER_STDBOOL
   58 AC_C_INLINE
   59 AC_TYPE_SIZE_T
   60 AC_HEADER_TIME
   61 AX_CREATE_STDINT_H(src/GCint.h)
   62 
   63 dnl Checks for library functions.
   64 AC_TYPE_SIGNAL
   65 AC_FUNC_MALLOC
   66 AC_FUNC_MEMCMP
   67 
   68 dnl See above, how do we treat failure here?
   69 AC_CHECK_FUNCS(gettimeofday strchr strcspn strstr strerror memset strdup strtol)
   70 
   71 dnl Don't Check for getopt_long 
   72 dnl just use bundled version like hello does
   73 dnl AC_SUBST(LIBOBJS)
   74 dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )
   75 ACX_PTHREAD()
   76 
   77 # GNU help2man creates man pages from --help output; in many cases, this
   78 # is sufficient, and obviates the need to maintain man pages separately.
   79 # However, this means invoking executables, which we generally cannot do
   80 # when cross-compiling, so we test to avoid that (the variable
   81 # "cross_compiling" is set by AC_PROG_CC).
   82 if test $cross_compiling = no; then
   83   AM_MISSING_PROG(HELP2MAN, help2man)
   84 else
   85   HELP2MAN=:
   86 fi
   87 
   88 # Support from GNU gettext.
   89 AM_GNU_GETTEXT_VERSION([0.18.3])
   90 AM_GNU_GETTEXT([external])
   91 
   92 AC_ARG_WITH([pluginsdir],
   93             [AS_HELP_STRING([--with-pluginsdir=DIR],
   94                             [path where game data files get installed (default: $datadir/games/plugins)])],
   95             [PLUGINSDIR="$withval"],
   96             [PLUGINSDIR='$(datadir)/games/plugins'])
   97 
   98 AC_SUBST(PLUGINSDIR)
   99 
  100 AC_CONFIG_FILES(Makefile src/Makefile src/frontend/Makefile src/adapter/Makefile src/engine/Makefile doc/Makefile po/Makefile.in man/Makefile)
  101 AC_OUTPUT