📄 configure
字号:
#include <sys/param.h>int main() {#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN bogus endian macros#endif; return 0; }EOFif { (eval echo configure:936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # It does; now see whether it defined to BIG_ENDIAN or not.cat > conftest.$ac_ext <<EOF#line 940 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/param.h>int main() {#if BYTE_ORDER != BIG_ENDIAN not big endian#endif; return 0; }EOFif { (eval echo configure:951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_bigendian=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_c_bigendian=nofirm -f conftest*else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*if test $ac_cv_c_bigendian = unknown; thenif test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }else cat > conftest.$ac_ext <<EOF#line 971 "configure"#include "confdefs.h"main () { /* Are we little or big endian? From Harbison&Steele. */ union { long l; char c[sizeof (long)]; } u; u.l = 1; exit (u.c[sizeof (long) - 1] == 1);}EOFif { (eval echo configure:984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_c_bigendian=noelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_c_bigendian=yesfirm -fr conftest*fififiecho "$ac_t""$ac_cv_c_bigendian" 1>&6if test $ac_cv_c_bigendian = yes; then cat >> confdefs.h <<\EOF#define WORDS_BIGENDIAN 1EOFfiecho $ac_n "checking for snd_pcm_open in -lasound""... $ac_c" 1>&6echo "configure:1018: checking for snd_pcm_open in -lasound" >&5ac_lib_var=`echo asound'_'snd_pcm_open | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lasound $LIBS"cat > conftest.$ac_ext <<EOF#line 1026 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char snd_pcm_open();int main() {snd_pcm_open(); return 0; }EOFif { (eval echo configure:1037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_alsa=yeselse echo "$ac_t""no" 1>&6have_alsa=nofi# Make sure we can run config.sub.if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }fiecho $ac_n "checking host system type""... $ac_c" 1>&6echo "configure:1066: checking host system type" >&5host_alias=$hostcase "$host_alias" inNONE) case $nonopt in NONE) if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;;esachost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$ac_t""$host" 1>&6 succeeded=no if test -z "$PKG_CONFIG"; then # Extract the first word of "pkg-config", so it can be a program name with args.set dummy pkg-config; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1094: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$PKG_CONFIG" in /*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;;esacfiPKG_CONFIG="$ac_cv_path_PKG_CONFIG"if test -n "$PKG_CONFIG"; then echo "$ac_t""$PKG_CONFIG" 1>&6else echo "$ac_t""no" 1>&6fi fi if test "$PKG_CONFIG" = "no" ; then echo "*** The pkg-config script could not be found. Make sure it is" echo "*** in your path, or set the PKG_CONFIG environment variable" echo "*** to the full path to pkg-config." echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." else PKG_CONFIG_MIN_VERSION=0.9.0 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then echo $ac_n "checking for jack""... $ac_c" 1>&6echo "configure:1138: checking for jack" >&5 if $PKG_CONFIG --exists "jack" ; then echo "$ac_t""yes" 1>&6 succeeded=yes echo $ac_n "checking JACK_CFLAGS""... $ac_c" 1>&6echo "configure:1145: checking JACK_CFLAGS" >&5 JACK_CFLAGS=`$PKG_CONFIG --cflags "jack"` echo "$ac_t""$JACK_CFLAGS" 1>&6 echo $ac_n "checking JACK_LIBS""... $ac_c" 1>&6echo "configure:1150: checking JACK_LIBS" >&5 JACK_LIBS=`$PKG_CONFIG --libs "jack"` echo "$ac_t""$JACK_LIBS" 1>&6 else JACK_CFLAGS="" JACK_LIBS="" ## If we have a custom action on failure, don't print errors, but ## do set a variable so people can do so. JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack"` fi else echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." echo "*** See http://www.freedesktop.org/software/pkgconfig" fi fi if test $succeeded = yes; then have_jack=yes else have_jack=no fi# Check whether --with-alsa or --without-alsa was given.if test "${with_alsa+set}" = set; then withval="$with_alsa" with_alsa=$withvalelse with_alsa="yes"fi# Check whether --with-jack or --without-jack was given.if test "${with_jack+set}" = set; then withval="$with_jack" with_jack=$withvalelse with_jack="yes"fi# Check whether --with-oss or --without-oss was given.if test "${with_oss+set}" = set; then withval="$with_oss" with_oss=$withvalelse with_oss="yes"fi# Check whether --with-host_os or --without-host_os was given.if test "${with_host_os+set}" = set; then withval="$with_host_os" host_os=$withvalfi# Check whether --with-winapi or --without-winapi was given.if test "${with_winapi+set}" = set; then withval="$with_winapi" with_winapi=$withvalelse with_winapi="wmme"fi# Check whether --with-macapi or --without-macapi was given.if test "${with_macapi+set}" = set; then withval="$with_macapi" with_macapi=$withvalelse with_macapi="asio"fi# Check whether --with-asiodir or --without-asiodir was given.if test "${with_asiodir+set}" = set; then withval="$with_asiodir" with_asiodir=$withvalelse with_asiodir="/usr/local/asiosdk2"fi# Check whether --with-dxdir or --without-dxdir was given.if test "${with_dxdir+set}" = set; then withval="$with_dxdir" with_dxdir=$withvalelse with_dxdir="/usr/local/dx7sdk"fiCFLAGS="-g -O2 -Wall"if [ $ac_cv_c_bigendian = "yes" ] ; then CFLAGS="$CFLAGS -DPA_BIG_ENDIAN"else CFLAGS="$CFLAGS -DPA_LITTLE_ENDIAN"ficase "${host_os}" in darwin* ) OTHER_OBJS="pa_mac_core/pa_mac_core.o"; LIBS="-framework AudioUnit -framework AudioToolbox -framework CoreAudio"; PADLL="libportaudio.dylib"; SHARED_FLAGS="-framework AudioUnit -framework AudioToolbox"; SHARED_FLAGS="$SHARED_FLAGS -framework CoreAudio -dynamiclib"; if [ $with_macapi = "asio" ] ; then if [ $with_asiodir ] ; then ASIODIR="$with_asiodir"; else ASIODIR="/usr/local/asiosdk2"; fi echo "ASIODIR: $ASIODIR"; OTHER_OBJS="$CFLAGS pa_asio/iasiothiscallresolver.o $ASIODIR/host/asiodrivers.o $ASIODIR/common/asio.o $ASIODIR/host/mac/asioshlib.o"; CFLAGS="$CFLAGS -Ipa_asio -I$ASIDIR/host/mac -I$ASIODIR/common"; CXXFLAGS="$CFLAGS"; fi ;; mingw* ) echo "WINAPI: $with_winapi" if [ $with_winapi = "directx" ] ; then if [ $with_dxdir ] ; then DXDIR="$with_dxdir"; else DXDIR="/usr/local/dx7sdk"; fi echo "DXDIR: $DXDIR" OTHER_OBJS="pa_win_ds/pa_win_ds.o pa_win_ds/dsound_wrapper.o pa_win/pa_win_hostapis.o pa_win/pa_win_util.o"; LIBS="-lwinmm -lm -ldsound -lole32"; PADLL="portaudio.dll"; SHARED_FLAGS="-shared -mthreads"; DLL_LIBS="-lwinmm -lm -L./dx7sdk/lib -ldsound -lole32"; #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""; #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"; CFLAGS="$CFLAGS -Ipa_common -I$DXDIR/include -DPA_NO_WMME -DPA_NO_ASIO"; elif [ $with_winapi = "asio" ] ; then if [ $with_asiodir ] ; then ASIODIR="$with_asiodir"; else ASIODIR="/usr/local/asiosdk2"; fi echo "ASIODIR: $ASIODIR" OTHER_OBJS="pa_asio/pa_asio.o pa_win/pa_win_hostapis.o pa_win/pa_win_util.o pa_asio/iasiothiscallresolver.o $ASIODIR/common/asio.o $ASIODIR/host/asiodrivers.o $ASIODIR/host/pc/asiolist.o"; LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid"; PADLL="portaudio.dll"; SHARED_FLAGS="-shared -mthreads"; DLL_LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid"; CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -Ipa_common -Ipa_asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -DPA_NO_WMME -DPA_NO_DS -DWINDOWS"; CXXFLAGS="$CFLAGS"; else # WMME default OTHER_OBJS="pa_win_wmme/pa_win_wmme.o pa_win/pa_win_hostapis.o pa_win/pa_win_util.o"; LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid"; PADLL="portaudio.dll"; SHARED_FLAGS="-shared -mthreads"; DLL_LIBS="-lwinmm"; CFLAGS="$CFLAGS -Ipa_common -DPA_NO_DS -DPA_NO_ASIO"; fi ;; cygwin* ) OTHER_OBJS="pa_win_wmme/pa_win_wmme.o"; LIBS="-lwinmm -lm"; PADLL="portaudio.dll"; SHARED_FLAGS="-shared -mthreads"; DLL_LIBS="-lwinmm"; ;; irix* ) echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6echo "configure:1331: checking for pthread_create in -lpthread" >&5ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lpthread $LIBS"cat > conftest.$ac_ext <<EOF#line 1339 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char pthread_create();int main() {pthread_create(); return 0; }EOFif { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF LIBS="-lpthread $LIBS"else echo "$ac_t""no" 1>&6{ echo "configure: error: IRIX posix thread library not found!" 1>&2; exit 1; }fi echo $ac_n "checking for alOpenPort in -laudio""... $ac_c" 1>&6echo "configure:1379: checking for alOpenPort in -laudio" >&5ac_lib_var=`echo audio'_'alOpenPort | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-laudio $LIBS"cat > conftest.$ac_ext <<EOF#line 1387 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -