"Fossies" - the Fresh Open Source Software Archive

Member "speech_tools/configure.in" (4 Sep 2017, 4293 Bytes) of package /linux/misc/speech_tools-2.5.0-release.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 last Fossies "Diffs" side-by-side code changes report for "configure.in": 2.4-release_vs_2.5.0-release.

    1 dnl########################################################################
    2 dnl                                                                      ##
    3 dnl               Centre for Speech Technology Research                  ##
    4 dnl                    University of Edinburgh, UK                       ##
    5 dnl                      Copyright (c) 1996-2001                         ##
    6 dnl                       All Rights Reserved.                           ##
    7 dnl                                                                      ##
    8 dnl Permission is hereby granted, free of charge, to use and distribute  ##
    9 dnl this software and its documentation without restriction, including   ##
   10 dnl without limitation the rights to use, copy, modify, merge, publish,  ##
   11 dnl distribute, sublicense, and/or sell copies of this work, and to      ##
   12 dnl permit persons to whom this work is furnished to do so, subject to   ##
   13 dnl the following conditions:                                            ##
   14 dnl  1. The code must retain the above copyright notice, this list of    ##
   15 dnl     conditions and the following disclaimer.                         ##
   16 dnl  2. Any modifications must be clearly marked as such.                ##
   17 dnl  3. Original authors' names are not deleted.                         ##
   18 dnl  4. The authors' names are not used to endorse or promote products   ##
   19 dnl     derived from this software without specific prior written        ##
   20 dnl     permission.                                                      ##
   21 dnl                                                                      ##
   22 dnl THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK        ##
   23 dnl DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING      ##
   24 dnl ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT   ##
   25 dnl SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE     ##
   26 dnl FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES    ##
   27 dnl WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN   ##
   28 dnl AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,          ##
   29 dnl ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF       ##
   30 dnl THIS SOFTWARE.                                                       ##
   31 dnl                                                                      ##
   32 dnl########################################################################
   33 AC_INIT(include/EST.h)
   34 
   35 AC_CANONICAL_SYSTEM
   36 AC_PROG_CC
   37 if test "x$GCC" = "xyes"; then
   38 	CFLAGS="$CFLAGS -Wall"
   39 fi
   40 AC_PROG_RANLIB
   41 AC_CHECK_TOOL(AR, ar)
   42 
   43 AC_C_BIGENDIAN
   44 
   45 AC_CHECK_LIB(ncurses, tputs, [TERMCAPLIB=-lncurses], [TERMCAPLIB=-lcurses])
   46 dnl if test "$TERMCAPLIB" != "-ltermcap"; then
   47 dnl    AC_CHECK_LIB(termcap, tputs, [TERMCAPLIB=-ltermcap], [TERMCAPLIB=-lncurses])
   48 dnl 
   49 AC_SUBST(TERMCAPLIB)
   50 
   51 dnl Which version of GCC do we have here
   52 COMPILERTYPE=gcc
   53 AC_TRY_COMPILE([#include <stdio.h>],
   54                [int j= 
   55                 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
   56                 3;
   57                 #endif ],
   58                [COMPILERTYPE=gcc295])
   59 AC_TRY_COMPILE([#include <stdio.h>],
   60                [int j= 
   61                 #if __GNUC__ == 3 
   62                 3;
   63                 #endif ],
   64                [COMPILERTYPE=gcc32])
   65 AC_TRY_COMPILE([#include <stdio.h>],
   66                [ int j=
   67                 #if __GNUC__ == 2 && __GNUC_MINOR__ == 96
   68                 3;
   69                 #endif ],
   70                [COMPILERTYPE=gcc296])
   71 AC_TRY_COMPILE([#include <stdio.h>],
   72                [int j=
   73                 #if __GNUC__ == 2 && __GNUC_MINOR__ == 91
   74                 3;
   75                 #endif ],
   76                [COMPILERTYPE=egcs])
   77 AC_TRY_COMPILE([#include <stdio.h>],
   78                [int j=
   79                 #if __GNUC__ == 2 && __GNUC_MINOR__ == 8
   80                 3;
   81                 #endif ],
   82                [COMPILERTYPE=gcc28])
   83 AC_SUBST(COMPILERTYPE)
   84 
   85 LINUXAUDIO=none
   86 AC_CHECK_HEADER(alsa/asoundlib.h,
   87               [LINUXAUDIO="alsa"])
   88 AC_SUBST(LINUXAUDIO)
   89 
   90 OMP_OPTS=
   91 AC_TRY_COMPILE([#include <omp.h>],
   92                [ int j=1;],
   93                [OMP_OPTS="-fopenmp"])
   94 AC_SUBST(OMP_OPTS)
   95 OMP_DEFS=
   96 AC_TRY_COMPILE([#include <omp.h>],
   97                [ int j=1;],
   98                [OMP_DEFS="-DOMP_WAGON=1"])
   99 AC_SUBST(OMP_DEFS)
  100 
  101 AC_OUTPUT(config/config)