📄 configure
字号:
#elsedlopen();#endif; return 0; }EOFif { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_dlopen=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_dlopen=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF#define HAVE_DLOPEN 1EOFelse echo "$ac_t""no" 1>&6fi if test "$ac_cv_func_dlopen" != yes then echo "configure: warning: cannot perform dynamic linking" 1>&2 fi fielse echo "$ac_t""no" 1>&6fiELFLIB="lib\$(THIS_LIB).so"ELFLIB_MAJOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION)"ELFLIB_MAJOR_MINOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION)"case "$host_os" in *linux* ) DYNAMIC_LINK_FLAGS="-Wl,-export-dynamic" ELF_CC="gcc" ELF_CFLAGS="-O2 -fno-strength-reduce -fPIC" ELF_LINK="gcc -shared -Wl,-soname#" ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)" ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" CC_SHARED="gcc \$(CFLAGS) -shared -fPIC" ;; *solaris* ) if test "$GCC" = yes then DYNAMIC_LINK_FLAGS="" ELF_CC="gcc" ELF_CFLAGS="-O2 -fno-strength-reduce -fPIC" ELF_LINK="gcc -shared -Wl,-ztext -Wl,-h#" ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)" ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" CC_SHARED="gcc \$(CFLAGS) -G -fPIC" else DYNAMIC_LINK_FLAGS="" ELF_CC="cc" ELF_CFLAGS="-K pic" ELF_LINK="cc -G -h#" ELF_LINK_CMD="\$(ELF_LINK)\$(ELFLIB_MAJOR)" ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" CC_SHARED="cc \$(CFLAGS) -G -K pic" fi ;; # osr5 or unixware7 with current or late autoconf *sco3.2v5* | *unixware-5* | *sco-sysv5uw7*) if test "$GCC" = yes then DYNAMIC_LINK_FLAGS="" ELF_CC="gcc" ELF_CFLAGS="-O2 -fno-strength-reduce -fPIC" ELF_LINK="gcc -shared -Wl,-h#" ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)" ELF_DEP_LIBS= CC_SHARED="gcc \$(CFLAGS) -G -fPIC" else DYNAMIC_LINK_FLAGS="" ELF_CC="cc" ELF_CFLAGS="-K pic" # ELF_LINK="ld -G -z text -h#" ELF_LINK="cc -G -z text -h#" ELF_LINK_CMD="\$(ELF_LINK)\$(ELFLIB_MAJOR)" ELF_DEP_LIBS= CC_SHARED="cc \$(CFLAGS) -G -K pic" fi ;; *irix6.5* ) echo "Note: ELF compiler for host_os=$host_os may not be correct" echo "double-check: 'mode_t', 'pid_t' may be wrong!" if test "$GCC" = yes then # not tested DYNAMIC_LINK_FLAGS="" ELF_CC="gcc" ELF_CFLAGS="-O2 -fno-strength-reduce -fPIC" ELF_LINK="gcc -shared -Wl,-h#" ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)" ELF_DEP_LIBS= CC_SHARED="gcc \$(CFLAGS) -shared -fPIC" else DYNAMIC_LINK_FLAGS="" ELF_CC="cc" ELF_CFLAGS="-K pic" # default anyhow ELF_LINK="cc -shared -o #" ELF_LINK_CMD="\$(ELF_LINK)\$(ELFLIB_MAJOR)" ELF_DEP_LIBS= CC_SHARED="cc \$(CFLAGS) -shared -K pic" fi ;; *darwin* ) DYNAMIC_LINK_FLAGS="" ELF_CC="cc" ELF_CFLAGS="$CFLAGS -O2 -fno-strength-reduce -fno-common" ELF_LINK="cc -dynamiclib" ELF_LINK_CMD="\$(ELF_LINK) -install_name \$(install_lib_dir)/\$(ELFLIB_MAJOR) -compatibility_version \$(ELF_MAJOR_VERSION) -current_version \$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION)" ELF_DEP_LIBS="$LDFLAGS \$(DL_LIB)" CC_SHARED="cc -bundle -flat_namespace -undefined suppress \$(CFLAGS) -fno-common" ELFLIB="lib\$(THIS_LIB).dylib" ELFLIB_MAJOR="lib\$(THIS_LIB).\$(ELF_MAJOR_VERSION).dylib" ELFLIB_MAJOR_MINOR="lib\$(THIS_LIB).\$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION).dylib" ;; * ) echo "Note: ELF compiler for host_os=$host_os may be wrong" ELF_CC="$CC" ELF_CFLAGS="$CFLAGS -fPIC" ELF_LINK="$CC -shared" ELF_LINK_CMD="\$(ELF_LINK)" ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" CC_SHARED="$CC $CFLAGS -shared -fPIC"esaccase "$host_cpu" in *alpha* ) if test "$GCC" = yes then IEEE_CFLAGS="-mieee" else IEEE_CFLAGS="-ieee_with_no_inexact" fi ;; * ) IEEE_CFLAGS=""esacELF_CFLAGS="$ELF_CFLAGS $IEEE_CFLAGS"CFLAGS="$CFLAGS $IEEE_CFLAGS"if test "X$libdir" != "X"then if test "X$RPATH" = "X" then case "$host_os" in *linux*|*solaris* ) if test "X$GCC" = Xyes then if test "X$ac_R_nospace" = "Xno" then RPATH="-Wl,-R," else RPATH="-Wl,-R" fi else if test "X$ac_R_nospace" = "Xno" then RPATH="-R " else RPATH="-R" fi fi ;; *osf*) if test "X$GCC" = Xyes then RPATH="-Wl,-rpath," else RPATH="-rpath " fi ;;esac if test "X$RPATH" != "X" then RPATH="$RPATH$libdir" fi else RPATH="$RPATH:$libdir" fifiecho $ac_n "checking size of short""... $ac_c" 1>&6echo "configure:2123: checking size of short" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_sizeof_short=2else cat > conftest.$ac_ext <<EOF#line 2131 "configure"#include "confdefs.h"#include <stdio.h>#include <sys/types.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(short)); exit(0);}EOFif { (eval echo configure:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_short=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_short=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_short" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_SHORT $ac_cv_sizeof_shortEOFecho $ac_n "checking size of int""... $ac_c" 1>&6echo "configure:2163: checking size of int" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_sizeof_int=4else cat > conftest.$ac_ext <<EOF#line 2171 "configure"#include "confdefs.h"#include <stdio.h>#include <sys/types.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(int)); exit(0);}EOFif { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_int=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_int=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_int" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_INT $ac_cv_sizeof_intEOFecho $ac_n "checking size of long""... $ac_c" 1>&6echo "configure:2203: checking size of long" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_sizeof_long=4else cat > conftest.$ac_ext <<EOF#line 2211 "configure"#include "confdefs.h"#include <stdio.h>#include <sys/types.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(long)); exit(0);}EOFif { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_long=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_long=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_long" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_LONG $ac_cv_sizeof_longEOFecho $ac_n "checking size of float""... $ac_c" 1>&6echo "configure:2243: checking size of float" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_sizeof_float=4else cat > conftest.$ac_ext <<EOF#line 2251 "configure"#include "confdefs.h"#include <stdio.h>#include <sys/types.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(float)); exit(0);}EOFif { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_float=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_float=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_float" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_FLOAT $ac_cv_sizeof_floatEOFecho $ac_n "checking size of double""... $ac_c" 1>&6echo "configure:2283: checking size of double" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_sizeof_double=8else cat > conftest.$ac_ext <<EOF#line 2291 "configure"#include "confdefs.h"#include <stdio.h>#include <sys/types.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(double)); exit(0);}EOFif { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_double=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_double=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_double" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_DOUBLE $ac_cv_sizeof_doubleEOFecho $ac_n "checking for Terminfo""... $ac_c" 1>&6echo "configure:2325: checking for Terminfo" >&5MISC_TERMINFO_DIRS="$FINKPREFIX/share/terminfo"if test ! -d $MISC_TERMINFO_DIRSthen MISC_TERMINFO_DIRS=""fiJD_Terminfo_Dirs="/usr/lib/terminfo \ /usr/share/terminfo \ /usr/share/lib/terminfo \ /usr/local/lib/terminfo \ $MISC_TERMINFO_DIRS"TERMCAP=-ltermcapfor terminfo_dir in $JD_Terminfo_Dirsdo if test -d $terminfo_dir then echo "$ac_t""yes" 1>&6 TERMCAP="" break fidoneif test "$TERMCAP"; then echo "$ac_t""no" 1>&6 cat >> confdefs.h <<\EOF#define USE_TERMCAP 1EOFfi# Check whether --enable-warnings or --disable-warnings was given.if test "${enable_warnings+set}" = set; then enableval="$enable_warnings" gcc_warnings=$enablevalfiif test -n "$GCC"then CFLAGS="$CFLAGS -fno-strength-reduce" if test -n "$gcc_warnings" then CFLAGS="$CFLAGS -Wall -W -pedantic -Winline -Wmissing-prototypes \ -Wnested-externs -Wpointer-arith -Wcast-align -Wshadow -Wstrict-prototypes" # Now trim excess whitespace CFLAGS=`echo $CFLAGS` fifi#------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -