⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 完整的RTP RTSP代码库
💻 IN
📖 第 1 页 / 共 3 页
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(README)dnl Set various version strings - taken gratefully from the GTk sources## Making releases:# Edit include/SDL/SDL_version.h and change the version, then:#   SDL_MICRO_VERSION += 1;#   SDL_INTERFACE_AGE += 1;#   SDL_BINARY_AGE += 1;# if any functions have been added, set SDL_INTERFACE_AGE to 0.# if backwards compatibility has been broken,# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.#SDL_MAJOR_VERSION=1SDL_MINOR_VERSION=2SDL_MICRO_VERSION=8SDL_INTERFACE_AGE=1SDL_BINARY_AGE=8SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSIONAC_SUBST(SDL_MAJOR_VERSION)AC_SUBST(SDL_MINOR_VERSION)AC_SUBST(SDL_MICRO_VERSION)AC_SUBST(SDL_INTERFACE_AGE)AC_SUBST(SDL_BINARY_AGE)AC_SUBST(SDL_VERSION)# libtool versioningLT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSIONLT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`LT_REVISION=$SDL_INTERFACE_AGELT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`AC_SUBST(LT_RELEASE)AC_SUBST(LT_CURRENT)AC_SUBST(LT_REVISION)AC_SUBST(LT_AGE)dnl Detect the canonical host and target build environmentAC_CANONICAL_SYSTEMdnl Setup for automakeAM_INIT_AUTOMAKE(SDL, $SDL_VERSION)dnl Check for toolsAC_LIBTOOL_WIN32_DLLAM_PROG_LIBTOOLAC_PROG_MAKE_SETAC_PROG_CCAC_C_INLINEAC_C_CONSTAC_PROG_CXXAC_PROG_INSTALLAC_FUNC_ALLOCAASFLAGS=""AC_SUBST(ASFLAGS)CCAS="$CC"AC_SUBST(CCAS)CCASFLAGS=""AC_SUBST(CCASFLAGS)AM_CONDITIONAL([am__fastdepOBJC], false)dnl The alpha architecture needs special flags for binary portabilitycase "$target" in    alpha*-*-linux*)        if test x$ac_cv_prog_gcc = xyes; then            CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"        fi        ;;esacdnl Add compiler-specific optimization flagsdnl See if the user wants aggressive optimizations of the codeAC_ARG_ENABLE(debug,[  --enable-debug          Disable aggressive optimizations [default=yes]],              , enable_debug=yes)if test x$enable_debug != xyes; then    if test x$ac_cv_prog_gcc = xyes; then        CFLAGS="$CFLAGS -fexpensive-optimizations"        # Ack! This breaks the MMX YV12 conversion on gcc 2.95.2        # CFLAGS="$CFLAGS -fomit-frame-pointer"    fi    case "$target" in        i486-*-*)            if test x$ac_cv_prog_gcc = xyes; then                CFLAGS="$CFLAGS -march=i486"            fi            ;;        i?86-*-*)            if test x$ac_cv_prog_gcc = xyes; then                CFLAGS="$CFLAGS -march=pentium -mcpu=pentiumpro"            fi            ;;        *-*-osf*)            if test x$ac_cv_prog_gcc != xyes; then                CFLAGS="-g3 -fast -arch host"            fi            ;;    esacfidnl Add verbose warnings by default, and allow ANSI compliance checkingAC_ARG_ENABLE(strict-ansi,[  --enable-strict-ansi    Enable strict ANSI compliance build [default=no]],              , enable_strict_ansi=no)if test x$ac_cv_prog_gcc = xyes; then    CFLAGS="$CFLAGS -Wall"    if test x$enable_strict_ansi = xyes; then        CFLAGS="$CFLAGS -ansi -pedantic -D_XOPEN_SOURCE"    fifidnl Initialize the compiler and linker flags for SDL applicationsSDL_CFLAGS=""SDL_LIBS="-lSDL"dnl Add the math library for the new gamma correction supportcase "$target" in    *-*-cygwin* | *-*-mingw32*)        MATHLIB=""        ;;    *-*-beos*)        MATHLIB=""        ;;    *-*-darwin*)        MATHLIB=""        ;;    *)        MATHLIB="-lm"        ;;esacSYSTEM_LIBS="$SYSTEM_LIBS $MATHLIB"dnl Enable/disable various subsystems of the SDL libraryAC_ARG_ENABLE(audio,[  --enable-audio          Enable the audio subsystem [default=yes]],              , enable_audio=yes)if test x$enable_audio = xyes; then    SDL_EXTRADIRS="$SDL_EXTRADIRS audio"    SDL_EXTRALIBS="$SDL_EXTRALIBS audio/libaudio.la"else    CFLAGS="$CFLAGS -DDISABLE_AUDIO"fiAC_ARG_ENABLE(video,[  --enable-video          Enable the video subsystem [default=yes]],              , enable_video=yes)AC_ARG_ENABLE(events,[  --enable-events         Enable the events subsystem [default=yes]],              , enable_events=yes)AC_ARG_ENABLE(joystick,[  --enable-joystick       Enable the joystick subsystem [default=yes]],              , enable_joystick=yes)AC_ARG_ENABLE(cdrom,[  --enable-cdrom          Enable the cdrom subsystem [default=yes]],              , enable_cdrom=yes)AC_ARG_ENABLE(threads,[  --enable-threads        Enable the threading subsystem [default=yes]],              , enable_threads=yes)AC_ARG_ENABLE(timers,[  --enable-timers         Enable the timer subsystem [default=yes]],              , enable_timers=yes)AC_ARG_ENABLE(endian,[  --enable-endian         Enable the endian subsystem [default=yes]],              , enable_endian=yes)AC_ARG_ENABLE(file,[  --enable-file           Enable the file subsystem [default=yes]],              , enable_file=yes)AC_ARG_ENABLE(cpuinfo,[  --enable-cpuinfo        Enable the cpuinfo subsystem [default=yes]],              , enable_cpuinfo=yes)dnl See if the OSS audio interface is supportedCheckOSS(){    AC_ARG_ENABLE(oss,[  --enable-oss            support the OSS audio API [default=yes]],                  , enable_oss=yes)    if test x$enable_audio = xyes -a x$enable_oss = xyes; then        AC_MSG_CHECKING(for OSS audio support)        have_oss=no        if test x$have_oss != xyes; then            AC_TRY_COMPILE([              #include <sys/soundcard.h>            ],[              int arg = SNDCTL_DSP_SETFRAGMENT;            ],[            have_oss=yes            ])        fi        if test x$have_oss != xyes; then            AC_TRY_COMPILE([              #include <soundcard.h>            ],[              int arg = SNDCTL_DSP_SETFRAGMENT;            ],[            have_oss=yes            CFLAGS="$CFLAGS -DOSS_USE_SOUNDCARD_H"            ])        fi        AC_MSG_RESULT($have_oss)        if test x$have_oss = xyes; then            CFLAGS="$CFLAGS -DOSS_SUPPORT"            AUDIO_SUBDIRS="$AUDIO_SUBDIRS dsp"            AUDIO_DRIVERS="$AUDIO_DRIVERS dsp/libaudio_dsp.la"            AUDIO_SUBDIRS="$AUDIO_SUBDIRS dma"            AUDIO_DRIVERS="$AUDIO_DRIVERS dma/libaudio_dma.la"        fi    fi}dnl See if the ALSA audio interface is supportedCheckALSA(){    AC_ARG_ENABLE(alsa,[  --enable-alsa           support the ALSA audio API [default=yes]],                  , enable_alsa=yes)    if test x$enable_audio = xyes -a x$enable_alsa = xyes; then        AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no)        # Restore all flags from before the ALSA detection runs        CFLAGS="$alsa_save_CFLAGS"        LDFLAGS="$alsa_save_LDFLAGS"        LIBS="$alsa_save_LIBS"        if test x$have_alsa = xyes; then            AC_ARG_ENABLE(alsa-shared,[  --enable-alsa-shared     dynamically load ALSA audio support [default=yes]],                          , enable_alsa_shared=yes)            if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then                if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then                    ALSA_LIBS="-L/lib $ALSA_LIBS"                elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then                    ALSA_LIBS="-L/usr/lib $ALSA_LIBS"                elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then                    ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS"                fi            fi            alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'`            alsa_lib=`ls $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`            echo "-- $alsa_lib_spec -> $alsa_lib"            if test x$use_dlopen != xyes && \               test x$enable_alsa_shared = xyes; then                AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])            fi            if test x$use_dlopen = xyes && \               test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then                CFLAGS="$CFLAGS -DALSA_SUPPORT -DALSA_DYNAMIC=\$(alsa_lib) $ALSA_CFLAGS"                AC_SUBST(alsa_lib)                AC_MSG_CHECKING(for dlvsym)                use_dlvsym=no                AC_TRY_COMPILE([                  #include <stdio.h>                  #define __USE_GNU                  #include <dlfcn.h>                ],[                  dlvsym(NULL,"","");                ],[                use_dlvsym=yes                ])                AC_MSG_RESULT($use_dlvsym);                if test x$use_dlvsym = xyes; then                    CFLAGS="$CFLAGS -DUSE_DLVSYM"                fi            else                CFLAGS="$CFLAGS -DALSA_SUPPORT $ALSA_CFLAGS"                SYSTEM_LIBS="$SYSTEM_LIBS $ALSA_LIBS"            fi            AUDIO_SUBDIRS="$AUDIO_SUBDIRS alsa"            AUDIO_DRIVERS="$AUDIO_DRIVERS alsa/libaudio_alsa.la"        fi    fi}dnl Check whether we want to use IRIX 6.5+ native audio or notCheckDMEDIA(){    if test x$enable_audio = xyes; then        AC_MSG_CHECKING(for dmedia audio support)        have_dmedia=no        AC_TRY_COMPILE([          #include <dmedia/audio.h>        ],[          ALport audio_port;        ],[        have_dmedia=yes        ])	AC_MSG_RESULT($have_dmedia)        # Set up files for the audio library        if test x$have_dmedia = xyes; then            CFLAGS="$CFLAGS -DDMEDIA_SUPPORT"            AUDIO_SUBDIRS="$AUDIO_SUBDIRS dmedia"            AUDIO_DRIVERS="$AUDIO_DRIVERS dmedia/libaudio_dmedia.la"            SYSTEM_LIBS="$SYSTEM_LIBS -laudio"        fi    fi}dnl Find the ESD includes and librariesCheckESD(){    AC_ARG_ENABLE(esd,[  --enable-esd            support the Enlightened Sound Daemon [default=yes]],                  , enable_esd=yes)    if test x$enable_audio = xyes -a x$enable_esd = xyes; then        AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)        if test x$have_esd = xyes; then            AC_ARG_ENABLE(esd-shared,[  --enable-esd-shared     dynamically load ESD audio support [default=yes]],                          , enable_esd_shared=yes)            esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`            esd_lib=`ls $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`            echo "-- $esd_lib_spec -> $esd_lib"            if test x$use_dlopen != xyes && \               test x$enable_esd_shared = xyes; then                AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])            fi            if test x$use_dlopen = xyes && \               test x$enable_esd_shared = xyes && test x$esd_lib != x; then                CFLAGS="$CFLAGS -DESD_SUPPORT -DESD_DYNAMIC=\$(esd_lib) $ESD_CFLAGS"                AC_SUBST(esd_lib)            else                CFLAGS="$CFLAGS -DESD_SUPPORT $ESD_CFLAGS"                SYSTEM_LIBS="$SYSTEM_LIBS $ESD_LIBS"            fi            AUDIO_SUBDIRS="$AUDIO_SUBDIRS esd"            AUDIO_DRIVERS="$AUDIO_DRIVERS esd/libaudio_esd.la"        fi    fi}CheckARTSC(){    AC_ARG_ENABLE(arts,[  --enable-arts           support the Analog Real Time Synthesizer [default=yes]],                  , enable_arts=yes)    if test x$enable_audio = xyes -a x$enable_arts = xyes; then        AC_PATH_PROG(ARTSCCONFIG, artsc-config)        if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; then            : # arts isn't installed        else            ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`            ARTSC_LIBS=`$ARTSCCONFIG --libs`            ARTSC_PREFIX=`$ARTSCCONFIG --arts-prefix`            AC_MSG_CHECKING(for aRts development environment)            audio_arts=no            save_CFLAGS="$CFLAGS"            CFLAGS="$CFLAGS $ARTSC_CFLAGS"            AC_TRY_COMPILE([             #include <artsc.h>            ],[             arts_stream_t stream;            ],[            audio_arts=yes            ])            CFLAGS="$save_CFLAGS"            AC_MSG_RESULT($audio_arts)            if test x$audio_arts = xyes; then                AC_ARG_ENABLE(arts-shared,[  --enable-arts-shared    dynamically load aRts audio support [default=yes]],                              , enable_arts_shared=yes)                arts_lib_spec="$ARTSC_PREFIX/lib/libartsc.so.*"                arts_lib=`ls $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`                echo "-- $arts_lib_spec -> $arts_lib"                if test x$use_dlopen != xyes && \                   test x$enable_arts_shared = xyes; then                    AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])                fi                if test x$use_dlopen = xyes && \                   test x$enable_arts_shared = xyes && test x$arts_lib != x; then                    CFLAGS="$CFLAGS -DARTSC_SUPPORT -DARTSC_DYNAMIC=\$(arts_lib) $ARTSC_CFLAGS"                    AC_SUBST(arts_lib)                else                    CFLAGS="$CFLAGS -DARTSC_SUPPORT $ARTSC_CFLAGS"                    SYSTEM_LIBS="$SYSTEM_LIBS $ARTSC_LIBS"                fi                AUDIO_SUBDIRS="$AUDIO_SUBDIRS arts"                AUDIO_DRIVERS="$AUDIO_DRIVERS arts/libaudio_arts.la"            fi        fi    fi}dnl See if the NAS audio interface is supportedCheckNAS(){    AC_ARG_ENABLE(nas,[  --enable-nas            support the NAS audio API [default=yes]],                  , enable_nas=yes)    if test x$enable_audio = xyes -a x$enable_nas = xyes; then        AC_MSG_CHECKING(for NAS audio support)        have_nas=no        if test -r /usr/X11R6/include/audio/audiolib.h; then            have_nas=yes            CFLAGS="$CFLAGS -DNAS_SUPPORT -I/usr/X11R6/include/"            SYSTEM_LIBS="$SYSTEM_LIBS -L/usr/X11R6/lib -laudio -lXt"            AUDIO_SUBDIRS="$AUDIO_SUBDIRS nas"            AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la"        dnl On IRIX, the NAS includes are in a different directory,        dnl and libnas must be explicitly linked in        elif test -r /usr/freeware/include/nas/audiolib.h; then            have_nas=yes            CFLAGS="$CFLAGS -DNAS_SUPPORT"            SYSTEM_LIBS="$SYSTEM_LIBS -lnas -lXt"            AUDIO_SUBDIRS="$AUDIO_SUBDIRS nas"            AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la"        fi        AC_MSG_RESULT($have_nas)    fi}dnl rcg07142001 See if the user wants the disk writer audio driver...CheckDiskAudio(){    AC_ARG_ENABLE(diskaudio,[  --enable-diskaudio      support the disk writer audio driver [default=yes]],                  , enable_diskaudio=yes)    if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then        CFLAGS="$CFLAGS -DDISKAUD_SUPPORT"        AUDIO_SUBDIRS="$AUDIO_SUBDIRS disk"        AUDIO_DRIVERS="$AUDIO_DRIVERS disk/libaudio_disk.la"    fi}dnl Set up the Atari Audio driverCheckAtariAudio(){    AC_ARG_ENABLE(mintaudio,[  --enable-mintaudio      support Atari audio driver [default=yes]],                  , enable_mintaudio=yes)    if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then        mintaudio=no        AC_CHECK_HEADER(mint/falcon.h, have_mint_falcon_hdr=yes)        if test x$have_mint_falcon_hdr = xyes; then            mintaudio=yes            CFLAGS="$CFLAGS -DMINTAUDIO_SUPPORT"            AUDIO_SUBDIRS="$AUDIO_SUBDIRS mint"            AUDIO_DRIVERS="$AUDIO_DRIVERS mint/libaudio_mintaudio.la"        fi    fi}dnl See if we can use x86 assembly blitters# NASM is available from: http://nasm.octium.net/dnl See if we can use the new unified event interface in Linux 2.4CheckInputEvents()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -