ref: a3dfc26b9bead7bc4eb223913a58fc3639d399fd
dir: /common/libsndfile/configure.in/
# Configure `libsndfile'. # Copyright (C) 1999-2000 Erik de Castro Lopo (erikd@zip.com.au). dnl Require autoconf version >= 2.12 AC_PREREQ(2.12) AC_INIT(src/sndfile.c) AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE(libsndfile,0.0.22) dnl This is the version info according to the libtool versioning system. dnl It does *not* correspond to the release number. SHARED_VERSION_INFO="0:8:0" dnl Process this file with autoconf to produce a configure script. AM_CONFIG_HEADER(src/config.h) AC_PROG_CC AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_LN_S AM_PROG_LIBTOOL AC_HEADER_STDC AC_CHECK_HEADERS(endian.h) dnl AC_CHECK_FUNCS(fopen fread fwrite fclose fseek ftell malloc free) AC_TYPE_SIZE_T AC_TYPE_OFF_T AC_CHECK_SIZEOF(short,2) AC_CHECK_SIZEOF(int,4) AC_CHECK_SIZEOF(long,8) AC_CHECK_SIZEOF(float,4) AC_CHECK_SIZEOF(double,4) AC_CHECK_SIZEOF(void*,8) AC_ARG_ENABLE(justsrc, [ --enable-justsrc only compile library sources ], ac_arg_justsrc="$enableval", ac_arg_justsrc="N") AC_ARG_ENABLE(gcc-pipe, [ --disable-gcc-pipe disable gcc -pipe option ], ac_arg_gcc_pipe="N", ac_arg_gcc_pipe="Y") if test $ac_cv_prog_gcc = yes ; then CFLAGS="-g -O2 -Wall -pedantic -Wstrict-prototypes" dnl CFLAGS="-g -O0 -Wall -Werror -Wstrict-prototypes" dnl AC_MSG_WARN([**** Optimisation has been switched off. ****]) if test $ac_arg_gcc_pipe != "N" ; then CFLAGS="$CFLAGS -pipe" fi fi if test $cross_compiling = yes ; then AC_MSG_WARN([******************************************************************]) AC_MSG_WARN([*** We are cross-compiling, so have to assume sizeof (short) == 2 ]) AC_MSG_WARN([*** and sizeof (int) == 4. If this is not the case there is no ]) AC_MSG_WARN([*** chance of this working. Please contact the mantainer. ]) AC_MSG_WARN([*** If the sizeof issues are not a problem you may need to ]) AC_MSG_WARN([*** undefine CAN_READ_WRITE_x86_IEEE in src/config.h. ]) AC_MSG_WARN([******************************************************************]) fi if test $ac_cv_sizeof_int != 4 ; then AC_MSG_WARN([******************************************************************]) AC_MSG_WARN([*** sizeof (int) != 4 ]) AC_MSG_WARN([******************************************************************]) fi if test $ac_cv_sizeof_short != 2 ; then AC_MSG_WARN([******************************************************************]) AC_MSG_WARN([*** sizeof (short) != 2. ]) AC_MSG_WARN([******************************************************************]) fi if test $ac_cv_sizeof_float != 4 ; then AC_MSG_WARN([******************************************************************]) AC_MSG_WARN([*** sizeof (float) != 4. ]) AC_MSG_WARN([******************************************************************]) fi if test $ac_cv_sizeof_double != 8 ; then AC_MSG_WARN([******************************************************************]) AC_MSG_WARN([*** sizeof (double) != 8. ]) AC_MSG_WARN([******************************************************************]) fi case "$target_cpu" in alpha* | i?86 ) AC_DEFINE(GUESS_LITTLE_ENDIAN,1) AC_DEFINE(GUESS_BIG_ENDIAN,0) ;; hppa* | m68* | mips* | powerpc* | hppa* | sparc*) AC_DEFINE(GUESS_LITTLE_ENDIAN,0) AC_DEFINE(GUESS_BIG_ENDIAN,1) ;; *) AC_MSG_WARN([*****************************************************************]) AC_MSG_WARN([*** Not able to determine endian-ness of processor. ]) AC_MSG_WARN([*** You will need to edit src/config.h before compiling. ]) AC_MSG_WARN([*****************************************************************]) ;; esac case "$target_cpu" in i?86 ) AC_DEFINE(CAN_READ_WRITE_x86_IEEE,1) ;; alpha* | hppa* | m68* | mips* | powerpc* | hppa* | sparc*) AC_DEFINE(CAN_READ_WRITE_x86_IEEE,0) ;; *) AC_MSG_WARN([*****************************************************************]) AC_MSG_WARN([*** Not able to determine endian-ness of processor. ]) AC_MSG_WARN([*** You will need to edit src/config.h before compiling. ]) AC_MSG_WARN([*****************************************************************]) ;; esac case $ac_arg_justsrc in 1*|n*|N*) subdirs="src/GSM610 src/G72x src examples doc tests" ;; *) subdirs="src/GSM610 src/G72x src" ;; esac AC_SUBST(subdirs) AC_SUBST(SHARED_VERSION_INFO) AC_OUTPUT(Makefile src/Makefile src/GSM610/Makefile src/G72x/Makefile \ examples/Makefile tests/Makefile doc/Makefile Win32/Makefile \ MacOS/Makefile m4/Makefile libsndfile.spec)