?? configure.in
字號:
AC_CHECK_LIB(pq, PQsetdbLogin , [DEFINES="${DEFINES} -DWITH_SQL_PGSQL" ; LIBS="${LIBS} -lpq"], [ AC_MSG_CHECKING([for pgsql lib path]) pgsql_try_libs="/usr/lib /usr/lib/pgsql /usr/local/lib /usr/local/lib/pgsql /usr/local/pgsql/lib" for i in `echo ${pgsql_try_libs}`; do if test -f "${i}/libpq.so" -o -f "${i}/libpq.a" ; then save_ldflags="${LDFLAGS}" LDFLAGS="${LDFLAGS} -L${i}" AC_CHECK_LIB(pq, PQfinish , [DEFINES="${DEFINES} -DWITH_SQL_PGSQL" ; LIBS="${LIBS} -lpq" ; pgsql_lib_path="${i}"], [LDFLAGS="${save_ldflags}"]) break fi done if test -n "$pgsql_lib_path" ; then AC_MSG_RESULT([found in $pgsql_lib_path]) else AC_MSG_ERROR([not found, please install the PostgreSQL libraries]) fi ])fimssql_include_path=""dnl Detecting mssql pathsif test "$with_mssql" = "yes" ; then AC_MSG_CHECKING([for mssql/FreeTDS include path]) mssql_try_includes="/usr/include /usr/include/freetds /usr/local/include /usr/local/include/freetds /usr/local/freetds/include" for i in `echo ${mssql_try_includes}`; do if test -f "${i}/sqlfront.h" ; then CPPFLAGS="${CPPFLAGS} -I${i}" mssql_include_path=${i} break fi done if test -n "$mssql_include_path" ; then AC_MSG_RESULT([found in $mssql_include_path]) else AC_MSG_ERROR([not found, please install the FreeTDS includes]) fifimssql_lib_path=""if test "$with_mssql" = "yes" ; then AC_CHECK_LIB(sybdb, dbinit, [DEFINES="${DEFINES} -DWITH_SQL_MSSQL" ; LIBS="${LIBS} -lsybdb"], [ AC_MSG_CHECKING([for mssql/FreeTDS lib path]) mssql_try_libs="/usr/lib /usr/lib/freetds /usr/local/lib /usr/local/lib/freetds /usr/local/freetds/lib" for i in `echo ${mssql_try_libs}`; do if test -f "${i}/libsybdb.so" -o -f "${i}/libsybdb.a" ; then save_ldflags="${LDFLAGS}" LDFLAGS="${LDFLAGS} -L${i}" AC_CHECK_LIB(sybdb, dbclose, [DEFINES="${DEFINES} -DWITH_SQL_MSSQL" ; LIBS="${LIBS} -lsybdb" ; mssql_lib_path="${i}"], [LDFLAGS="${save_ldflags}"]) break fi done if test -n "$mssql_lib_path" ; then AC_MSG_RESULT([found in $mssql_lib_path]) else AC_MSG_ERROR([not found, please install the FreeTDS libraries]) fi ])fisqlite3_include_path=""dnl Detecting sqlite3 pathsif test "$with_sqlite3" = "yes" ; then AC_MSG_CHECKING([for SQLite3 include path]) sqlite3_try_includes="/usr/include /usr/include/sqlite3 /usr/local/include /usr/local/include/sqlite3 /usr/local/sqlite3/include" for i in `echo ${sqlite3_try_includes}`; do if test -f "${i}/sqlite3.h" ; then CPPFLAGS="${CPPFLAGS} -I${i}" sqlite3_include_path=${i} break fi done if test -n "$sqlite3_include_path" ; then AC_MSG_RESULT([found in $sqlite3_include_path]) else AC_MSG_ERROR([not found, please install the SQLite3 includes]) fifisqlite3_lib_path=""if test "$with_sqlite3" = "yes" ; then AC_CHECK_LIB(sqlite3, sqlite3_open, [DEFINES="${DEFINES} -DWITH_SQL_SQLITE3" ; LIBS="${LIBS} -lsqlite3"], [ AC_MSG_CHECKING([for SQLite3 lib path]) sqlite3_try_libs="/usr/lib /usr/lib/sqlite3 /usr/local/lib /usr/local/lib/sqlite3 /usr/local/sqlite3/lib" for i in `echo ${sqlite3_try_libs}`; do if test -f "${i}/libsqlite3.so" -o -f "${i}/libsqlite3.a" ; then save_ldflags="${LDFLAGS}" LDFLAGS="${LDFLAGS} -L${i}" AC_CHECK_LIB(sqlite3, sqlite3_close, [DEFINES="${DEFINES} -DWITH_SQL_SQLITE3" ; LIBS="${LIBS} -lsqlite3" ; sqlite3_lib_path="${i}"], [LDFLAGS="${save_ldflags}"]) break fi done if test -n "$sqlite3_lib_path" ; then AC_MSG_RESULT([found in $sqlite3_lib_path]) else AC_MSG_ERROR([not found, please install the SQLite3 libraries]) fi ])fiodbc_include_path=""dnl Detecting odbc pathsif test "$with_odbc" = "yes" ; then AC_MSG_CHECKING([for odbc include path]) odbc_try_includes="/usr/include /usr/include/odbc /usr/local/include /usr/local/include/odbc /usr/local/odbc/include" for i in `echo ${odbc_try_includes}`; do if test -f "${i}/sqlext.h" ; then CPPFLAGS="${CPPFLAGS} -I${i}" odbc_include_path=${i} break fi done if test -n "$odbc_include_path" ; then AC_MSG_RESULT([found in $odbc_include_path]) else AC_MSG_ERROR([not found, please install the odbc includes]) fifiodbc_lib_path=""if test "$with_odbc" = "yes" ; then AC_CHECK_LIB(odbc, SQLConnect, [DEFINES="${DEFINES} -DWITH_SQL_ODBC" ; LIBS="${LIBS} -lodbc"], [ AC_MSG_CHECKING([for odbc lib path]) odbc_try_libs="/usr/lib /usr/lib/odbc /usr/local/lib /usr/local/lib/odbc /usr/local/odbc/lib" for i in `echo ${odbc_try_libs}`; do if test -f "${i}/libodbc.so" -o -f "${i}/libodbc.a" ; then save_ldflags="${LDFLAGS}" LDFLAGS="${LDFLAGS} -L${i}" AC_CHECK_LIB(odbc, SQLDisconnect, [DEFINES="${DEFINES} -DWITH_SQL_ODBC" ; LIBS="${LIBS} -lodbc" ; odbc_lib_path="${i}"], [LDFLAGS="${save_ldflags}"]) break fi done if test -n "$odbc_lib_path" ; then AC_MSG_RESULT([found in $odbc_lib_path]) else AC_MSG_ERROR([not found, please install the odbc libraries]) fi ])fiAC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])AC_CHECK_LIB(resolv, inet_aton, [LIBS="$LIBS -lresolv"])dnl BeOS BONE...AC_CHECK_LIB(bind, __inet_aton, [LIBS="$LIBS -lbind"])case "$host" in [*-beos*]) if test "$ac_cv_lib_bind___inet_aton" = "yes"; then dnl force things, AC_CHECK_FUNC will never get the mangled versions anyway. echo "Forcing inet_aton() and inet_ntoa() to be enabled" ac_cv_func_inet_aton='yes' ac_cv_func_inet_ntoa='yes' fi ;;esac# Checks for header files.AC_HEADER_DIRENTAC_HEADER_STDCAC_HEADER_TIMEAC_HEADER_STATAC_CHECK_HEADERS([\ fcntl.h \ sys/time.h \ time.h \ sys/select.h \ string.h \ strings.h \ unistd.h \ stdarg.h \ varargs.h \ malloc.h \ sys/utsname.h \ sys/timeb.h \ sys/socket.h \ sys/param.h \ netinet/in.h \ arpa/inet.h \ netdb.h \ termios.h \ stddef.h \ memory.h \ sys/types.h \ sys/wait.h \ sys/ioctl.h \ stdint.h \ sys/file.h \ limits.h \ poll.h \ sys/poll.h \ stropts.h \ sys/stropts.h \ sys/stat.h \ pwd.h \ grp.h \ dir.h \ direct.h \ sys/mman.h \ sys/event.h \ sys/epoll.h \ sys/resource.h \ assert.h \ sqlite3.h \])# Checks for typedefs and structuresAC_STRUCT_TMAC_TYPE_PID_TAC_TYPE_SIGNALAC_TYPE_OFF_TAC_TYPE_SIZE_TAC_CHECK_SIZEOF(unsigned char, 1)AC_CHECK_SIZEOF(unsigned short, 2)AC_CHECK_SIZEOF(unsigned int, 4)AC_CHECK_SIZEOF(unsigned long, 4)AC_CHECK_SIZEOF(unsigned long long, 0)AC_CHECK_SIZEOF(signed char, 1)AC_CHECK_SIZEOF(signed short, 2)AC_CHECK_SIZEOF(signed int, 4)AC_CHECK_SIZEOF(signed long, 4)AC_CHECK_SIZEOF(signed long long, 0)# Checks for library functions.AC_FUNC_MMAPAC_FUNC_STRFTIMEAC_FUNC_VPRINTFAC_FUNC_SETPGRPAC_FUNC_CLOSEDIR_VOIDAC_FUNC_MKDIR_ARGSAC_CHECK_FUNCS(gethostname gettimeofday select socket strdup strtoul strerror inet_aton inet_ntoa uname recv send recvfrom sendto uname fork getpid sigaction sigprocmask sigaddset setpgid setpgrp ftime strcasecmp strncasecmp stricmp strnicmp chdir difftime strchr strrchr index rindex memcpy memset memmove bcopy wait waitpid pipe getenv ioctl setsid mktime poll gethostbyname getservbyname getlogin pow getpwnam getgrnam getuid getgid setuid setgid mkdir _mkdir strsep getopt kqueue setitimer epoll_create getrlimit vsnprintf _vsnprintf snprintf _snprintf)if test X"${am_cv_prog_cc_stdc}" = X"no"; then COMPILEANSI1='${PREPROCESS} $< | sed '"'"'s/^# *\([0-9][0-9]*\) *\([^ ]*[a-z][^ ]*\) *.*$$/#line \1 \2/'"'"' | ${SRC_ACDIR}/ansi2knr > ${SRC_SRCDIR}/.ansi2knr_tmp.c' COMPILEANSI2='${COMPILE} ${SRC_SRCDIR}/.ansi2knr_tmp.c -o $@' COMPILEANSI3='@${RMF} ${SRC_SRCDIR}/.ansi2knr_tmp.c' ANSI2KNR_TMP='${SRC_SRCDIR}/.ansi2knr_tmp.c' ANSI2KNR_DEP='${SRC_ACDIR}/ansi2knr'else COMPILEANSI1='${COMPILE} $< -o $@' COMPILEANSI2='@:' COMPILEANSI3='@:' ANSI2KNR_TMP='' ANSI2KNR_DEP=''fiAC_SUBST(COMPILEANSI1)AC_SUBST(COMPILEANSI2)AC_SUBST(COMPILEANSI3)AC_SUBST(ANSI2KNR_TMP)AC_SUBST(ANSI2KNR_DEP)AC_OUTPUT(Makefile)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -