📄 configure
字号:
defs="$defs -DSTD_MODEM -DANSWER_RING=4" ;; isdn) modem_type="IsdnModem" modem="/var/log/messages" defs="$defs -DISDN_MODEM" ;; sport) modem_type="SportsterVoice" modem="/dev/modem" defs="$defs -DSPORTSTER_MODEM -DVOICE -DANSWER_RING=4" # Check whether --with-toast_path or --without-toast_path was given.if test "${with_toast_path+set}" = set; then withval="$with_toast_path" :fi if test "$with_toast_path" != ""; then TOAST_PATH=$with_toast_path else PATH=$PATH:$MSQL_HOME/bin:$MYSQL_HOME/bin:PGSQL_HOME/bin # Extract the first word of "toast", so it can be a program name with args.set dummy toast; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:824: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_TOAST_PATH'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$TOAST_PATH" in /*) ac_cv_path_TOAST_PATH="$TOAST_PATH" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_TOAST_PATH="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_TOAST_PATH" && ac_cv_path_TOAST_PATH="no" ;;esacfiTOAST_PATH="$ac_cv_path_TOAST_PATH"if test -n "$TOAST_PATH"; then echo "$ac_t""$TOAST_PATH" 1>&6else echo "$ac_t""no" 1>&6fi fi case "$TOAST_PATH" in no) echo "You need the toast binary. Put it in your PATH or use the --with-toast-path= option." exit 1 ;; esac defs="$defs -DTOAST_PATH=\\\"$TOAST_PATH\\\"" ;;esac# Check whether --with-region or --without-region was given.if test "${with_region+set}" = set; then withval="$with_region" :fiif test "$with_region" != ""; then REGTYPE=$with_regionficase "$REGTYPE" in usa) region="RegionUSA" defs="$defs -DREGION_USA" ;; isdn) region="RegionIsdn" defs="$defs -DREGION_ISDN" ;;esac# Check whether --with-dpass or --without-dpass was given.if test "${with_dpass+set}" = set; then withval="$with_dpass" :fiif test "$with_dbase_password" != ""; then defs="$defs -DDPASS=\\\"$with_dbase_password\\\""fi# Check whether --with-duser or --without-duser was given.if test "${with_duser+set}" = set; then withval="$with_duser" :fiif test "$with_dbase_user" != ""; then defs="$defs -DDUSER=\\\"$with_dbase_user\\\""fifor ac_prog in gtkmm-configdo# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:912: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_GTKMM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$GTKMM"; then ac_cv_prog_GTKMM="$GTKMM" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_GTKMM="$ac_prog" break fi done IFS="$ac_save_ifs"fifiGTKMM="$ac_cv_prog_GTKMM"if test -n "$GTKMM"; then echo "$ac_t""$GTKMM" 1>&6else echo "$ac_t""no" 1>&6fitest -n "$GTKMM" && breakdonetest -n "$GTKMM" || GTKMM="no"if test $GTKMM != "no"; then gincs=`gtkmm-config --cflags` glibs=`gtkmm-config --libs`else echo "You need to have gtkmm-config in your PATH" exit 1fiGTKMM_VER=`gtkmm-config --version`GTK_VER=`gtk-config --version`echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:956: checking how to run the C preprocessor" >&5# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then CPP=fiif test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF#line 971 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`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 988 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`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* ac_cv_prog_CPP="$CPP"fi CPP="$ac_cv_prog_CPP"else ac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6echo "configure:1017: checking for ANSI C header files" >&5if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1022 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_stdc=yeselse echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=nofirm -f conftest*if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 1047 "configure"#include "confdefs.h"#include <string.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then :else rm -rf conftest* ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 1065 "configure"#include "confdefs.h"#include <stdlib.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then :else rm -rf conftest* ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.if test "$cross_compiling" = yes; then :else cat > conftest.$ac_ext <<EOF#line 1086 "configure"#include "confdefs.h"#include <ctype.h>#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))int main () { int i; for (i = 0; i < 256; i++)if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);exit (0); }EOFif { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthen :else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=nofirm -fr conftest*fififiecho "$ac_t""$ac_cv_header_stdc" 1>&6if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF#define STDC_HEADERS 1EOFfifor ac_hdr in fcntl.h sys/file.h sys/ioctl.h unistd.h sys/poll.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1124: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1129 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes"else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else echo "$ac_t""no" 1>&6fidoneecho $ac_n "checking for working const""... $ac_c" 1>&6echo "configure:1162: checking for working const" >&5if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1167 "configure"#include "confdefs.h"int main() {/* Ultrix mips cc rejects this. */typedef int charset[2]; const charset x;/* SunOS 4.1.1 cc rejects this. */char const *const *ccp;char **p;/* NEC SVR4.0.2 mips cc rejects this. */struct point {int x, y;};static struct point const zero = {0,0};/* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */const char *g = "string";ccp = &g + (g ? g-g : 0);/* HPUX 7.0 cc rejects these. */++ccp;p = (char**) ccp;ccp = (char const *const *) p;{ /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0;}{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -