📄 buildconf
字号:
#!/bin/sh# Default place to look for apr source. Can be overridden with # --with-apr=[directory]apr_src_dir=../aprwhile test $# -gt 0 do # Normalize case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case "$1" in --with-apr=*) apr_src_dir=$optarg ;; esac shiftdoneif test -d "$apr_src_dir"then echo "" echo "Looking for apr source in $apr_src_dir"else echo "" echo "Problem finding apr source in $apr_src_dir." echo "Use:" echo " --with-apr=[directory]" exit 1fi# Remove some files, then copy them from apr source treerm -f build/apr_common.m4 build/find_apr.m4 build/install.sh \ build/config.guess build/config.sub build/mkdir.sh \ build/make_exports.awk build/make_var_export.awkcp $apr_src_dir/build/apr_common.m4 $apr_src_dir/build/find_apr.m4 \ $apr_src_dir/build/install.sh $apr_src_dir/build/config.guess \ $apr_src_dir/build/config.sub $apr_src_dir/build/mkdir.sh \ $apr_src_dir/build/make_exports.awk $apr_src_dir/build/make_var_export.awk \ build# Remove aclocal.m4 as it'll break some builds...rm -rf aclocal.m4 autom4te*.cache## Generate the autoconf header and ./configure#echo "Creating lib/apr_iconv_private.h ..."${AUTOHEADER:-autoheader}echo "Creating configure ..."### do some work to toss config.cache?if ${AUTOCONF:-autoconf}; then :else echo "autoconf failed" exit 1fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -