📄 configure
字号:
#line 768 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF#line 785 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF#line 802 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cppfirm -f conftest*firm -f conftest*firm -f conftest* ac_cv_prog_CPP="$CPP"fi CPP="$ac_cv_prog_CPP"else ac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6 ac_safe=`echo "gdbm.h" | sed 'y%./+-%__pm%'`echo $ac_n "checking for gdbm.h""... $ac_c" 1>&6echo "configure:837: checking for gdbm.h" >&5smart_include=smart_include_dir= old_CFLAGS="$CFLAGS" cat > conftest.$ac_ext <<EOF#line 844 "configure"#include "confdefs.h" #include <gdbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* smart_include=" "else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* smart_include=firm -f conftest* if test "x$smart_include" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=gdbm.h for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_include_dir=\"\$smart_include_dir $DIRS\"" for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 896 "configure"#include "confdefs.h" #include <gdbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* smart_include="-I$try"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* smart_include=firm -f conftest* if test "x$smart_include" != "x"; then break; fi done CFLAGS="$old_CFLAGS" fi if test "x$smart_include" != "x"; then echo "$ac_t""yes" 1>&6 eval "ac_cv_header_$ac_safe=yes" CFLAGS="$old_CFLAGS $smart_include" SMART_CFLAGS="$SMART_CFLAGS $smart_include" else echo "$ac_t""no" 1>&6 fi sm_lib_safe=`echo "gdbm" | sed 'y%./+-%__p_%'`sm_func_safe=`echo "gdbm_open" | sed 'y%./+-%__p_%'`echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6echo "configure:936: checking for gdbm_open in -lgdbm" >&5smart_lib=smart_lib_dir= old_LIBS="$LIBS" LIBS="$LIBS -lgdbm" cat > conftest.$ac_ext <<EOF#line 944 "configure"#include "confdefs.h"extern char gdbm_open();int main() { gdbm_open(); return 0; }EOFif { (eval echo configure:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-lgdbm"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* if test "x$smart_lib" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=libgdbm${libltdl_cv_shlibext} for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" if test "x$LOCATE" != "x"; then DIRS= file=libgdbm.a for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do LIBS="$old_LIBS -L$try -lgdbm" cat > conftest.$ac_ext <<EOF#line 1020 "configure"#include "confdefs.h"extern char gdbm_open();int main() { gdbm_open(); return 0; }EOFif { (eval echo configure:1027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-L$try -lgdbm"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* if test "x$smart_lib" != "x"; then break; fi done LIBS="$old_LIBS" fi if test "x$smart_lib" != "x"; then echo "$ac_t""yes" 1>&6 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" LIBS="$old_LIBS $smart_lib" SMART_LIBS="$SMART_LIBS $smart_lib" else echo "$ac_t""no" 1>&6 fi if test "x$ac_cv_lib_gdbm_gdbm_open" != "xyes"; then fail="$fail libgdbm" fi if test "x$fail" = "x"; then echo $ac_n "checking to see GDBM_SYNC status""... $ac_c" 1>&6echo "configure:1057: checking to see GDBM_SYNC status" >&5 cat > conftest.$ac_ext <<EOF#line 1059 "configure"#include "confdefs.h"#include <gdbm.h>#ifdef GDBM_SYNC found-gdbm-sync!#else not found. this version must use sync by default.#endif EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "found-gdbm-sync" >/dev/null 2>&1; then rm -rf conftest* cat >> confdefs.h <<\EOF#define NEED_GDBM_SYNC yesEOF echo "$ac_t""needs it." 1>&6 else rm -rf conftest* echo "$ac_t""SYNCs by default." 1>&6 firm -f conftest* fi old_LIBS=$LIBS LIBS="$LIBS $SMART_LIBS" echo $ac_n "checking for gdbm_fdesc""... $ac_c" 1>&6echo "configure:1094: checking for gdbm_fdesc" >&5if eval "test \"`echo '$''{'ac_cv_func_gdbm_fdesc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1099 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char gdbm_fdesc(); below. */#include <assert.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 gdbm_fdesc();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_gdbm_fdesc) || defined (__stub___gdbm_fdesc)choke me#elsegdbm_fdesc();#endif; return 0; }EOFif { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gdbm_fdesc=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_gdbm_fdesc=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'gdbm_fdesc`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6fi if test "x$ac_cv_func_gdbm_fdesc" = "xyes"; then cat >> confdefs.h <<\EOF#define HAVE_GDBM_FDESC 1EOF fi LIBS=$old_LIBS targetname=rlm_ippool
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -