📄 configure
字号:
#line 1018 "configure"#include "confdefs.h" #include <gdbm/ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1026: \"$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 CFLAGS="$old_CFLAGS" donefiif test "x$smart_include" = "x"; then cat > conftest.$ac_ext <<EOF#line 1045 "configure"#include "confdefs.h" #include <gdbm/ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1053: \"$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*fiif test "x$smart_include" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=gdbm/ndbm.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_include_dir /usr/local/include /opt/include; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 1097 "configure"#include "confdefs.h" #include <gdbm/ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1105: \"$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 CFLAGS="$old_CFLAGS" donefiif 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>&6fi if test "x$ac_cv_header_gdbm_ndbm_h" = "xyes"; then SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_GDBM_NDBM_H" else ac_cv_header_gdbm_ndbm_h="bad autoconf assumption" ac_safe=`echo "gdbm-ndbm.h" | sed 'y%./+-%__pm%'`echo $ac_n "checking for gdbm-ndbm.h""... $ac_c" 1>&6echo "configure:1139: checking for gdbm-ndbm.h" >&5old_CFLAGS="$CFLAGS"smart_include=smart_include_dir=if test "x$smart_try_dir" != "x"; then for try in $smart_try_dir; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 1149 "configure"#include "confdefs.h" #include <gdbm-ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1157: \"$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 CFLAGS="$old_CFLAGS" donefiif test "x$smart_include" = "x"; then cat > conftest.$ac_ext <<EOF#line 1176 "configure"#include "confdefs.h" #include <gdbm-ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1184: \"$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*fiif test "x$smart_include" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=gdbm-ndbm.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_include_dir /usr/local/include /opt/include; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 1228 "configure"#include "confdefs.h" #include <gdbm-ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1236: \"$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 CFLAGS="$old_CFLAGS" donefiif 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>&6fi if test "x$ac_cv_header_gdbmmndbm_h" = "xyes"; then SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_GDBMNDBM_H" else fail="$fail (ndbm.h or gdbm/ndbm.h or gdbm-ndbm.h)" fi fi fi echo $ac_n "checking for dbm in default lib""... $ac_c" 1>&6echo "configure:1270: checking for dbm in default lib" >&5 cat > conftest.$ac_ext <<EOF#line 1272 "configure"#include "confdefs.h"extern void* dbm_open();int main() {dbm_open(); return 0; }EOFif { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_default_dbm_open=yes echo "$ac_t""yes" 1>&6else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""no" 1>&6firm -f conftest* if test "x$ac_cv_lib_default_dbm_open" != "xyes"; then smart_try_dir=$rlm_dbm_lib_dir sm_lib_safe=`echo "ndbm" | sed 'y%./+-%__p_%'`sm_func_safe=`echo "dbm_open" | sed 'y%./+-%__p_%'`echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6echo "configure:1297: checking for dbm_open in -lndbm" >&5old_LIBS="$LIBS"smart_lib=smart_lib_dir=if test "x$smart_try_dir" != "x"; then for try in $smart_try_dir; do LIBS="-L$try -lndbm $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1307 "configure"#include "confdefs.h"extern char dbm_open();int main() { dbm_open(); return 0; }EOFif { (eval echo configure:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-L$try -lndbm"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* if test "x$smart_lib" != "x"; then break; fi LIBS="$old_LIBS" donefiif test "x$smart_lib" = "x"; then LIBS="-lndbm $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1332 "configure"#include "confdefs.h"extern char dbm_open();int main() { dbm_open(); return 0; }EOFif { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-lndbm"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* LIBS="$old_LIBS"fiif test "x$smart_lib" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=libndbm${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=libndbm.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_lib_dir /usr/local/lib /opt/lib; do LIBS="-L$try -lndbm $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1409 "configure"#include "confdefs.h"extern char dbm_open();int main() { dbm_open(); return 0; }EOFif { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-L$try -lndbm"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* if test "x$smart_lib" != "x"; then break; fi LIBS="$old_LIBS" donefiif test "x$smart_lib" != "x"; then echo "$ac_t""yes" 1>&6 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" LIBS="$smart_lib $old_LIBS" SMART_LIBS="$smart_lib $SMART_LIBS"else echo "$ac_t""no" 1>&6fi if test "x$ac_cv_lib_ndbm_dbm_open" != "xyes"; then sm_lib_safe=`echo "gdbm" | sed 'y%./+-%__p_%'`sm_func_safe=`echo "dbm_open" | sed 'y%./+-%__p_%'`echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6echo "configure:1446: checking for dbm_open in -lgdbm" >&5old_LIBS="$LIBS"smart_lib=smart_lib_dir=if test "x$smart_try_dir" != "x"; then for try in $smart_try_dir; do LIBS="-L$try -lgdbm $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1456 "configure"#include "confdefs.h"extern char dbm_open();int main() { dbm_open(); return 0; }EOFif { (eval echo configure:1463: \"$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 LIBS="$old_LIBS" donefiif test "x$smart_lib" = "x"; then LIBS="-lgdbm $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1481 "configure"#include "confdefs.h"extern char dbm_open();int main() { dbm_open(); return 0; }EOFif { (eval echo configure:1488: \"$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* LIBS="$old_LIBS"fiif 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\""
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -