"Fossies" - the Fresh Open Source Software Archive

Member "xcdroast-1.19/configure.ac" (7 Nov 2018, 3343 Bytes) of package /linux/misc/xcdroast-1.19.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": 1.18_vs_1.19.

    1 dnl Copyright (C) 1996-2017 Thomas Niederreiter <tn@xcdroast.org>
    2 dnl 
    3 dnl This program is free software; you can redistribute it and/or modify
    4 dnl it under the terms of the GNU General Public License as published by
    5 dnl the Free Software Foundation; either version 2 of the License, or
    6 dnl (at your option) any later version.
    7 dnl 
    8 dnl This program is distributed in the hope that it will be useful,
    9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
   10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   11 dnl GNU General Public License for more details.
   12 dnl 
   13 dnl You should have received a copy of the GNU General Public License
   14 dnl along with this program; if not, write to the Free Software
   15 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   16 
   17 dnl Template file for GNU Autoconf
   18 dnl Process this file with autoconf to produce a configure script.
   19 AC_PREREQ(2.69)
   20 
   21 AC_INIT([xcdroast],[1.19])
   22 AC_CONFIG_SRCDIR([src/xcdroast.h])
   23 AM_INIT_AUTOMAKE
   24 
   25 AM_CONFIG_HEADER([config.h])
   26 
   27 dnl Checks for programs.
   28 AC_PROG_CC
   29 AM_PROG_CC_C_O
   30 AC_USE_SYSTEM_EXTENSIONS
   31 
   32 dnl Libtool
   33 LT_INIT
   34 AC_CONFIG_MACRO_DIR([m4])
   35 
   36 dnl Compiler flags
   37 AC_CANONICAL_HOST
   38 if test "$GCC" = "yes"; then
   39 	GNUCFLAGS="-Wall"
   40 
   41 	case "$host" in
   42 	*-*-darwin*)
   43 		EXTRA_CFLAGS="$EXTRA_CFLAGS -g -traditional-cpp -fno-common"
   44 		EXTRA_LDFLAGS="$EXTRA_LDFLAGS -framework CoreAudio"
   45 		;;
   46 	esac
   47 fi
   48 
   49 case "$host" in
   50 *-*-hpux*)
   51 	EXTRA_CFLAGS="-Dhpux"
   52 	
   53 	dnl check for hpux-alib and enable if found
   54 	if test -d /opt/audio/include; then
   55 		EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/audio/include"
   56 	fi
   57 	if test -d /opt/audio/lib; then
   58 		EXTRA_CFLAGS="$EXTRA_CFLAGS -Dhpux_alib"
   59 		EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/audio/lib -lAlib"
   60 	fi
   61 	;;
   62 
   63 *-*-solaris*)
   64 	# anyone knows how to make a autoconf test for socket() and
   65 	# socketpair() that works on solaris?
   66 	LIBS="$LIBS -lsocket -lnsl"
   67 	;;
   68 
   69 *-*-irix*)
   70         AUDIO_LIBS="-laudio"
   71         ;;
   72 esac
   73 
   74 AC_SUBST(GNUCFLAGS)
   75 AC_SUBST(EXTRA_CFLAGS)
   76 AC_SUBST(EXTRA_LDFLAGS)
   77 AC_SUBST(AUDIO_LIBS)
   78 
   79 
   80 dnl Checks for libraries.
   81 
   82 dnl Checks for header files.
   83 AC_HEADER_DIRENT
   84 AC_HEADER_STDC
   85 AC_HEADER_SYS_WAIT
   86 AC_CHECK_HEADERS([fcntl.h strings.h sys/ioctl.h sys/time.h unistd.h ctype.h])
   87 
   88 dnl Checks for typedefs, structures, and compiler characteristics.
   89 AC_C_CONST
   90 AC_TYPE_UID_T
   91 AC_TYPE_MODE_T
   92 AC_TYPE_OFF_T
   93 AC_TYPE_PID_T
   94 AC_HEADER_TIME
   95 
   96 dnl Checks for library functions.
   97 AC_FUNC_MEMCMP
   98 AC_FUNC_VPRINTF
   99 AC_CHECK_FUNCS([getcwd gethostname mkdir select socketpair socket strerror strstr strtol setenv unsetenv setreuid seteuid])
  100 
  101 
  102 AM_PATH_CDRTOOLS
  103 AM_PATH_XCDRLIBDIR
  104 AM_DEP_USER_HOST_MODE
  105 
  106 dnl PKG_CHECK_MODULES(PKGCONFIG, gtk+-3.0 >= 3.0.0)
  107 PKG_CHECK_MODULES(PKGCONFIG, gtk+-2.0 >= 2.0.6)
  108 LIBS="$LIBS $PKGCONFIG_LIBS"
  109 CFLAGS="$CFLAGS $PKGCONFIG_CFLAGS"
  110 
  111 case "$host" in
  112 *-*-linux*)
  113 	PKG_CHECK_MODULES([ALSA], [alsa])
  114 	AUDIO_LIBS="-lasound"
  115 	;;
  116 esac
  117 
  118 dnl internationalization macros
  119 AM_GNU_GETTEXT([external])
  120 
  121 dnl on my machine this macro is not yet defined. Uncomment if needed.
  122 dnl AM_GNU_GETTEXT_VERSION(0.11.5)
  123 
  124 dnl large file support
  125 AC_SYS_LARGEFILE
  126 if test "$enable_largefile" != no; then
  127 	EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_LARGEFILES"
  128 fi
  129 AC_SUBST(EXTRA_CFLAGS)
  130 
  131 AC_CONFIG_FILES([Makefile po/Makefile.in src/Makefile man/Makefile])
  132 AC_CONFIG_COMMANDS([default],[[ echo timestamp > stamp-h ]],[[]])
  133 AC_OUTPUT
  134