📄 configure
字号:
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 937 "configure"#include "confdefs.h" #include <ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:945: \"$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 if test "x$ac_cv_header_ndbm_h" = "xyes"; then SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_NDBM_H" else ac_safe=`echo "gdbm/ndbm.h" | sed 'y%./+-%__pm%'`echo $ac_n "checking for gdbm/ndbm.h""... $ac_c" 1>&6echo "configure:979: checking for gdbm/ndbm.h" >&5smart_include=smart_include_dir= old_CFLAGS="$CFLAGS" cat > conftest.$ac_ext <<EOF#line 986 "configure"#include "confdefs.h" #include <gdbm/ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:994: \"$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/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_try_dir $smart_include_dir /usr/local/include/ /opt/include; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 1038 "configure"#include "confdefs.h" #include <gdbm/ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1046: \"$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 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:1081: checking for gdbm-ndbm.h" >&5smart_include=smart_include_dir= old_CFLAGS="$CFLAGS" cat > conftest.$ac_ext <<EOF#line 1088 "configure"#include "confdefs.h" #include <gdbm-ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1096: \"$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-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_try_dir $smart_include_dir /usr/local/include/ /opt/include; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 1140 "configure"#include "confdefs.h" #include <gdbm-ndbm.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1148: \"$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 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:1183: checking for dbm in default lib" >&5 cat > conftest.$ac_ext <<EOF#line 1185 "configure"#include "confdefs.h"extern void* dbm_open();int main() {dbm_open(); return 0; }EOFif { (eval echo configure:1192: \"$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:1210: checking for dbm_open in -lndbm" >&5smart_lib=smart_lib_dir= old_LIBS="$LIBS" LIBS="$LIBS -lndbm" cat > conftest.$ac_ext <<EOF#line 1218 "configure"#include "confdefs.h"extern char dbm_open();int main() { dbm_open(); return 0; }EOFif { (eval echo configure:1225: \"$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* if 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_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do LIBS="$old_LIBS -L$try -lndbm" cat > conftest.$ac_ext <<EOF#line 1294 "configure"#include "confdefs.h"extern char dbm_open();int main() { dbm_open(); return 0; }EOFif { (eval echo configure:1301: \"$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 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_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:1331: checking for dbm_open in -lgdbm" >&5smart_lib=smart_lib_dir= old_LIBS="$LIBS" LIBS="$LIBS -lgdbm" cat > conftest.$ac_ext <<EOF#line 1339 "configure"#include "confdefs.h"extern char dbm_open();int main() { dbm_open(); return 0; }EOFif { (eval echo configure:1346: \"$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`
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -