📄 configure.ac
字号:
dnldnl Configuration script for GLOBAL.dnl Process this file with autoconf to produce a configure script.dnldnl Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005dnl Tama Communications Corporationdnldnl This file is part of GNU GLOBAL.dnldnl GNU GLOBAL is free software; you can redistribute it and/or modifydnl it under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2, or (at your option)dnl any later version.dnldnl GNU GLOBAL is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See thednl GNU General Public License for more details.dnldnl You should have received a copy of the GNU General Public Licensednl along with this program; if not, write to the Free Softwarednl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.dnlAC_INIT(GNU GLOBAL, 4.8.7)AC_CONFIG_SRCDIR(global/global.c)AM_CONFIG_HEADER(config.h:config-h.in)AC_PREREQ(2.59)AM_INIT_AUTOMAKE([1.9.3 gnu])dnl Checks for programs.AC_PROG_CCAC_PROG_INSTALLAC_PROG_MAKE_SETAC_PROG_RANLIBAM_PATH_LISPDIRdnldnl Currently, the absolute path name of perl is required only for CGI script.dnl So, if you don't use the -f(--form) option of htags(1), it is not required.dnlAC_PATH_PROG(PERL, perl, no)if test ${ac_cv_path_PERL} = no; then PERL=SPECIFY_ABSOLUTE_PATH_OF_PERLfiAC_CHECK_TOOL(AR, ar)AC_GNU_SOURCEdnl Checks for libraries.dnl Checks for header files.AC_CHECK_HEADERS(limits.h string.h unistd.h stdarg.h sys/time.h fcntl.h)AC_HEADER_DIRENTif test ${ac_header_dirent} = no; then AC_MSG_ERROR([dirent(3) is required but not found.])fiAC_HEADER_STDCAC_HEADER_STATAC_HEADER_TIMEdnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_OFF_TAC_TYPE_SIZE_TAC_STRUCT_ST_BLKSIZEAC_C_BIGENDIANAC_CHECK_TYPE([int8_t],,[AC_DEFINE_UNQUOTED([int8_t], [signed char], [Define to `signed char' if <sys/types.h> does not define.])])AC_CHECK_TYPE([int16_t],,[AC_DEFINE_UNQUOTED([int16_t], [short], [Define to `short' if <sys/types.h> does not define.])])AC_CHECK_TYPE([int32_t],,[AC_DEFINE_UNQUOTED([int32_t], [int], [Define to `int' if <sys/types.h> does not define.])])AC_CHECK_TYPE([u_int8_t],,[AC_DEFINE_UNQUOTED([u_int8_t], [unsigned char], [Define to `unsigned char' if <sys/types.h> does not define.])])AC_CHECK_TYPE([u_int16_t],,[AC_DEFINE_UNQUOTED([u_int16_t], [unsigned short], [Define to `unsigned short' if <sys/types.h> does not define.])])AC_CHECK_TYPE([u_int32_t],,[AC_DEFINE_UNQUOTED([u_int32_t], [unsigned int], [Define to `unsigned int' if <sys/types.h> does not define.])])AC_CHECK_TYPE([ssize_t],,[AC_DEFINE_UNQUOTED([ssize_t], [int], [Define to `int' if <sys/types.h> does not define.])])AC_CHECK_TYPE([caddr_t],,[AC_DEFINE_UNQUOTED([caddr_t], [char *], [Define to `char *' if <sys/types.h> does not define.])])AC_CHECK_SIZEOF(int)if test ${ac_cv_sizeof_int} != 4; then AC_MSG_ERROR([Integer size isn't 32 bit.])fiAC_CHECK_SIZEOF(short)if test ${ac_cv_sizeof_short} != 2; then AC_MSG_ERROR([Short integer size isn't 16 bit.])fiAC_CHECK_SIZEOF(char)if test ${ac_cv_sizeof_char} != 1; then AC_MSG_ERROR([Char size isn't 8 bit.])fidnl Checks for library functions.AC_FUNC_ALLOCAAC_FUNC_MEMCMPAC_TYPE_SIGNALAC_FUNC_STRFTIMEAC_CHECK_FUNCS(getcwd putenv strdup lstat snprintf utimes)AC_CHECK_FUNCS(index rindex bzero bcmp bcopy strchr strrchr memset memcmp memmove)AC_CHECK_FUNCS(malloc realloc alloca vprintf doprnt strerror strerror_r)AC_CHECK_FUNCS(pread pwrite)AC_CHECK_DECLS([free, lseek, malloc, memchr, realloc, stpcpy, strstr])AG_DJGPPINCLUDES='-I$(top_srcdir)/libutil -I$(top_srcdir)/libdb -I$(top_srcdir)/libglibc -I../libutil'LDADD='../libutil/libgloutil.a ../libdb/libglodb.a ../libglibc/libgloglibc.a'dnldnl This option is for debugging GLOBAL. Not for normal use.dnlAC_ARG_WITH(db185-compat,[ --with-db185-compat[=DIR] use DB1.85 compatible API included in DB2 or later ],[ if test "$withval" != 'no'; then case "$withval" in ''|yes) ;; *) if ! test -d $withval; then AC_MSG_ERROR([directory $withval not found.]) fi if ! test -r $withval/include/db_185.h; then AC_MSG_ERROR([header $withval/include/db_185.h not found.]) fi INCLUDES="$INCLUDES -I$withval/include" LDFLAGS="$LDFLAGS -L$withval/lib" ;; esac LDADD='../libutil/libgloutil.a -ldb ../libglibc/libgloglibc.a' AC_DEFINE(USE_DB185_COMPAT,1,[Define if you use DB1.85 compatible API.]) fi],[ with_db185_compat='no' ])AM_CONDITIONAL([USE_DB185_COMPAT], [test "$with_db185_compat" != no])dnldnl for home-etc supportdnlAC_MSG_CHECKING(for home-etc support)AC_ARG_WITH(home-etc,[ --with-home-etc[=DIR] include home-etc support ],[ if test "$withval" = 'no'; then AC_MSG_RESULT(no) else case $withval in ''|yes) HOMEETC=/usr/local;; *) HOMEETC=$withval;; esac if ! test -d $HOMEETC; then AC_MSG_ERROR([directory '$HOMEETC' not found.]) fi if ! test -f $HOMEETC/include/home_etc.h; then AC_MSG_ERROR([header '$HOMEETC/include/home_etc.h' not found.]) fi INCLUDES="$INCLUDES -I$HOMEETC/include" LDFLAGS="$LDFLAGS -L$HOMEETC/lib -lhome_etc" AC_DEFINE(HAVE_HOME_ETC_H,1,[Define if you use home-etc facility.]) AC_MSG_RESULT([yes, using $HOMEETC]) fi],[ AC_MSG_RESULT(no)])AC_SUBST(INCLUDES)AC_SUBST(LDADD)AC_SUBST(LDFLAGS)dnldnl The definition of config variable skip and suffixes.dnlDEFAULTSKIP='GPATH,GTAGS,GRTAGS,GSYMS,HTML/,html/,tags,TAGS,ID,y.tab.c,y.tab.h,.notfunction,cscope.out,.gdbinit,SCCS/,RCS/,CVS/,CVSROOT/,{arch}/,.svn/,.cvsrc,.cvsignore,.cvspass,.cvswrappers,.deps/,autom4te.cache/,.snprj/'DEFAULTLANGMAP='c:.c.h,yacc:.y,asm:.s.S,java:.java,cpp:.c++.cc.cpp.cxx.hxx.hpp.C.H,php:.php.php3.phtml'AC_SUBST(DEFAULTSKIP)AC_SUBST(DEFAULTLANGMAP)dnldnl Quoted langmap. It is only for gtags.conf.dnlDEFAULTLANGMAP_QUOTED=`echo $DEFAULTLANGMAP | sed 's/:/\\\\:/g'`AC_SUBST(DEFAULTLANGMAP_QUOTED)AC_OUTPUT([Makefile gtags.conf libutil/langmap.h htags/global.cgi.tmpl libutil/Makefile gtags/Makefile htags/Makefile gtags-parser/Makefile gnusort/Makefile libdb/Makefile global/Makefile gozilla/Makefile libglibc/Makefile doc/Makefile])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -