summaryrefslogtreecommitdiffstats
path: root/src/aclocal.m4
Commit message (Collapse)AuthorAgeFilesLines
* In KRB5_NEED_PROTO, #undef the name before testingKen Raeburn2008-10-061-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20826 dc483132-0cff-0310-8789-dd5450dbe970
* Based on patch from lxs, with some changes:Ken Raeburn2008-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add several new gcc warning flags, used in the KfM build process. Put declarations before code. Fix a bunch of signed/unsigned type mixes, mostly by changing variable types to unsigned int. Fix constness in handling name of default ccache name. Make sure functions get declared with prototypes: krb5int_pthread_loaded krb5int_gmt_mktime krb5int_aes_encrypt krb5int_aes_decrypt gssint_mecherrmap_init gssint_mecherramp_get. Don't shadow global names: stat accept index open encrypt. Fix variable shadowing in LDAP ASN.1 support. Don't define unused krb5int_local_addresses. Don't export internal krb5_change_set_password. Fix error return indications from gssint_oid_to_mech. Create and use k5-gmt_mktime.h to provide one global declaration of krb5int_gmt_mktime, needed before we've generated krb5.h on some platforms. Not incorporated from initial patch: const changes in function signatures. ticket: 6096 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20697 dc483132-0cff-0310-8789-dd5450dbe970
* New macro for testing whether the compiler supports a givenKen Raeburn2008-08-221-15/+43
| | | | | | | | | | | | | | command-line flag or not, and adding it to CFLAGS only if supported. Use it for GCC flag -Wno-format-zero-length, which we were testing for before, and for some additional flags: -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Werror=declaration-after-statement -Wdeclaration-after-statement -Werror=variadic-macros -Wvariadic-macros. (The last few are because we've had some code contributions that assumed full C99 support, and our baseline is currently C89+, so if possible we want certain newer constructs flagged as errors.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20685 dc483132-0cff-0310-8789-dd5450dbe970
* Check for struct sockaddr_storage only in top-level configure script, notKen Raeburn2008-08-221-29/+0
| | | | | | | | | in code common to all. Use an existing AC_CHECK_TYPES invocation, not a special-purpose test. Eliminate now-unused KRB5_AC_CHECK_TYPE_WITH_HEADERS and KRB5_AC_CHECK_SOCKADDR_STORAGE macros. Merge KRB5_AC_CHECK_INET6 into the one place where it gets used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20681 dc483132-0cff-0310-8789-dd5450dbe970
* Default to not building krb4 supportKen Raeburn2008-08-191-3/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20672 dc483132-0cff-0310-8789-dd5450dbe970
* Only add -Os for size optimizations if CFLAGS wasn't specified already. IfKen Raeburn2008-08-141-2/+6
| | | | | | | | the configure-generated CFLAGS string is one of the usual ones with -O2, replace -O2 rather than appending, since -Os will override previously specified optimization levels anyways. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20660 dc483132-0cff-0310-8789-dd5450dbe970
* New config option to enable size optimizationsKen Raeburn2008-08-071-2/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20636 dc483132-0cff-0310-8789-dd5450dbe970
* Set GNU warning options in CFLAGS and CXXFLAGS separately, avoiding optionsKen Raeburn2007-10-311-3/+16
| | | | | | in CXXFLAGS that G++ doesn't support. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20159 dc483132-0cff-0310-8789-dd5450dbe970
* Set CXX_LINK, CXX_LINK_STATIC, and CXX_LINK_SHARED, parallel to CC_ versions.Ken Raeburn2007-10-311-0/+2
| | | | | | | Assumes for now that libpath, rpath, ldflags, pthread flags and such apply to both C and C++ compilers. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20155 dc483132-0cff-0310-8789-dd5450dbe970
* Use ac_cv_c_compiler_gnu instead of copying it to krb5_cv_prog_gccKen Raeburn2007-10-311-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20154 dc483132-0cff-0310-8789-dd5450dbe970
* Use -Wno-format-zero-length if GCC version supports itKen Raeburn2007-08-231-0/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19848 dc483132-0cff-0310-8789-dd5450dbe970
* Get rid of some old SunOS 4 config stuffKen Raeburn2007-08-081-2/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19762 dc483132-0cff-0310-8789-dd5450dbe970
* On Solaris 10, define NO_WEAK_PTHREADS for the build. When that symbol isKen Raeburn2007-05-231-0/+9
| | | | | | | | | defined, skip the weak and conditional references in k5-thread.h and always use the real pthread functions. ticket: 5560 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19556 dc483132-0cff-0310-8789-dd5450dbe970
* Remove KRB5_BUILD_LIBRARY_STATIC; always use KRB5_BUILD_LIBRARYKen Raeburn2007-03-251-14/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19266 dc483132-0cff-0310-8789-dd5450dbe970
* Never set krb5_force_static. Instead, set the defaults for buildingKen Raeburn2007-03-251-1/+9
| | | | | | | | | | | | | | | | shared libraries, and allow a Makefile.in to include a new makefile fragment for building private (static, not installed) libraries. Created another makefile fragment to be included to indicate the shared library has no dependencies. (Currently this is the case only for the libdb2 library, which we don't install, but do build for testing.) The way we construct the library dependency search path arguments doesn't work for an empty list on some platforms. Updated Makefile.in to use @libpriv_frag@ and @libnodeps_frag@ as necessary. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19265 dc483132-0cff-0310-8789-dd5450dbe970
* Rearrange code so all of the 'krb5_force_static' stuff is done in one placeKen Raeburn2007-03-251-63/+41
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19262 dc483132-0cff-0310-8789-dd5450dbe970
* Remove traces of enable_shared, enable_static, enable_profiled, andKen Raeburn2007-03-251-80/+47
| | | | | | | build_dynobj. Hard-code the behavior for shared libraries, no static, no profiled. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19261 dc483132-0cff-0310-8789-dd5450dbe970
* Remove separate KRB5_BUILD_LIBRARY_WITH_DEPS macro, just use KRB5_BUILD_LIBRARYKen Raeburn2007-03-251-12/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19260 dc483132-0cff-0310-8789-dd5450dbe970
* Remove special support for building a shared library with no dependencies, ↵Ken Raeburn2007-03-251-3/+1
| | | | | | | | since we only have one such library, and it's one we don't install. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19258 dc483132-0cff-0310-8789-dd5450dbe970
* Don't define KRB5_PRIVATE, since it's not tested any moreKen Raeburn2007-01-201-2/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19083 dc483132-0cff-0310-8789-dd5450dbe970
* Merge Kevin Coffman's keyring ccache branch for Linux, with some modifications:Ken Raeburn2006-10-021-0/+12
| | | | | | | | | | | | | | | | | | | | | aclocal.m4: Enable keyring ccache if the header and library are available; no configure-time option. No error if it's not found. ccdefname.c: Keep old default of FILE: cache, at least for now. libkrb5.exports: Don't export krb5_krcc_ops. ccbase.c: Only initialize krb5int_krcc_mutex if USE_KEYRING_CCACHE; destroy it in finalization. Define INITIAL_TYPEHEAD macro (for file vs keyring), and use it for initialization and in krb5int_cc_finalize. Re-enable freeing of additional registered-type structures. cc_keyring.c: Avoid calls to com_err from within library. cc_file.c: Punt change; generate_new is badly broken, and we expect to replace it with a new API anyways. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18638 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_LIB_AUX): Disallow --enable-profiled and --disable-sharedKen Raeburn2006-07-211-6/+15
| | | | | | | | options as well. Don't generate help messages for these options. ticket: 4036 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18352 dc483132-0cff-0310-8789-dd5450dbe970
* reject configure option for static librariesKen Raeburn2006-07-211-0/+4
| | | | | | | | | | | | | We shouldn't accept --enable-static at configure time when we know it's not going to work at build time. * aclocal.m4 (KRB5_LIB_AUX): Error out if --enable-static. ticket: new target_version: 1.5.1 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18348 dc483132-0cff-0310-8789-dd5450dbe970
* need to look harder for tclConfig.shKen Raeburn2006-07-191-0/+8
| | | | | | | | | | | | Our current scheme doesn't find tclConfig.sh as installed by NetBSD's pkg system, even if it finds tclsh and gets the library pathname from it. The problem is that tclConfig.sh is one directory up. * aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Check $tcl_dir/.. for tclConfig.sh. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18342 dc483132-0cff-0310-8789-dd5450dbe970
* Merge remaining changes from LDAP integration branchKen Raeburn2006-07-181-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.mit.edu/krb5/branches/ldap-integ@18333. * plugins/kdb/ldap: New directory. * aclocal.m4 (WITH_LDAP): New macro. (CONFIG_RULES): Invoke it. * configure.in: Test ldap option, maybe configure and generate makefiles for new directories, and set and substitute ldap_plugin_dir. * Makefile.in (SUBDIRS): Add @ldap_plugin_dir@. * kdc/krb5kdc.M, kadmin/server/kadmind.M, kadmin/cli/kadmin.M, config-files/krb5.conf.M: Document LDAP changes (new options, config file entries, etc). * lib/kdb/kdb5.c (kdb_load_library): Put more info in error message. * lib/kadm5/admin.h (KADM5_CPW_FUNCTION, KADM5_RANDKEY_USED, KADM5_CONFIG_PASSWD_SERVER): New macros, disabled for now. (struct _kadm5_config_params): New field kpasswd_server, commented out for now. * lib/krb5/error_tables/kdb5_err.et: Add error codes KRB5_KDB_ACCESS_ERROR, KRB5_KDB_INTERNAL_ERROR, KRB5_KDB_CONSTRAINT_VIOLATION. ticket: 2935 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18334 dc483132-0cff-0310-8789-dd5450dbe970
* (KRB5_AC_FIND_DLOPEN): Use AC_SEARCH_LIBSKen Raeburn2006-07-171-2/+7
| | | | | | | | ticket: 3971 target_version: 1.5.1 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18331 dc483132-0cff-0310-8789-dd5450dbe970
* Don't output krb5_config_prefix commands into config.status; do the ↵Ken Raeburn2006-05-241-11/+4
| | | | | | | | substitutions in the configure script. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18035 dc483132-0cff-0310-8789-dd5450dbe970
* Don't look for pthread_mutexattr_setrobust_npKen Raeburn2006-05-161-3/+1
| | | | | | | | | | Apparently Red Hat's Fedora Core 5 defines it but doesn't declare it, so we'd have to declare it before testing the address. While it was once useful for checking whether the pthread code had been loaded, I think the other tests done now are more effective and this isn't needed any more. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18012 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_AC_CHOOSE_ET): Make sure that the error-table symbol isKen Raeburn2006-04-141-1/+1
| | | | | | declared and addressable; the type doesn't need to be complete. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17928 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_AC_CHECK_TYPE_WITH_HEADERS): Use quotes around tr argumentsKen Raeburn2006-04-081-1/+1
| | | | | | to prevent shell substitutions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17881 dc483132-0cff-0310-8789-dd5450dbe970
* Move definitions of KRB5_PRIVATE and KRB5_DEPRECATED from autoconf.hKen Raeburn2006-04-081-2/+2
| | | | | | to $(ALL_CFLAGS). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17871 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_SOCKADDR_SA_LEN): Use AC_CHECK_MEMBER.Ken Raeburn2006-04-011-48/+13
| | | | | | (CHECK_UTMP): Use AC_CHECK_MEMBERS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17822 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (CHECK_UTMP): Call AC_CHECK_FUNCS once instead of AC_CHECK_FUNCKen Raeburn2006-03-281-13/+10
| | | | | | | | for each function. (CHECK_SIGPROCMASK, CHECK_SETJMP, CHECK_UTMP, AC_KRB5_TCL_TRYOLD, KRB5_AC_LIBUTIL): Supply all three arguments in AC_DEFINE calls. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17790 dc483132-0cff-0310-8789-dd5450dbe970
* Merge from plugin branchKen Raeburn2006-03-071-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Add plugin support: - plugin routines in support library (may break windows build!) - plugin support in KDC location code - sample Python-based plugin for KDC location, not built without tweaking sources - changed service location interface to use an enum instead of passing profile string and DNS strings and port numbers - changed pathnames for plugin locations, including kdb back end - remove locate_service from accessor API Also, do build shared libraries for Darwin just like any other UNIX box. Not present yet: - use new plugin interface for kdb back end - Windows support - Mac bundle support (but dlopen support works) - search path for libkrb5 plugins (only one hard-coded directory for now) - sorting of plugin collections for predictable ordering See the various ChangeLogs for specifics. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17706 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (AC_KRB5_TCL_TRYOLD): Include $LIBS in $TCL_LIBSKen Raeburn2006-01-181-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17591 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (K5_AC_INIT): Initialize build_dynobj to noKen Raeburn2005-10-281-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17467 dc483132-0cff-0310-8789-dd5450dbe970
* If configure scripts set build_dynobj=yes, force build of shared objects andKen Raeburn2005-10-271-0/+5
| | | | | | | not static objects; set it in the db2 directories. Fix up some bugs in Mac support just checked in for building plugin modules. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17461 dc483132-0cff-0310-8789-dd5450dbe970
* Allow dynamic-object dependencies and build flags to be specified as ↵Ken Raeburn2005-10-271-0/+2
| | | | | | | | | | | | | | | | | | | | distinct from shared-library dependencies and flags. Define them for the Mac, default to same as shared-library versions on other platforms. * config/shlib.conf: Set DYNOBJ_EXPDEPS and DYNOBJ_EXPFLAGS. (*-*-darwin*): Change MAKE_DYNOBJ_COMMAND definition to use DYNOBJ_EXPFLAGS and DYNOBJ_LOADER_PROG instead of SHLIB_EXPFLAGS and a hardcoded pathname to the KDC binary, respectively. * config/pre.in (DYNOBJ_EXPDEPS, DYNOBJ_EXPFLAGS): New variables. * config/libnover.in ($(LIBBASE)$(DYNOBJEXT)): Use DYNOBJ_EXPDEPS instead of SHLIB_EXPDEPS in dependencies. * aclocal.m4 (KRB5_BUILD_LIBRARY_WITH_DEPS): Substitute DYNOBJ_EXPDEPS and DYNOBJ_EXPFLAGS. * modules/kdb/db2/Makefile.in (DYNOBJ_LOADER_PROG, DYNOBJ_EXPFLAGS_WITH_LOADER, DYNOBJ_EXPDEPS_WITH_LOADER): New variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17456 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_AC_INET6): Drop enable/disable-ipv6 option; emit a ↵Ken Raeburn2005-10-271-12/+2
| | | | | | | | warning for it for now, and always do use-if-available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17455 dc483132-0cff-0310-8789-dd5450dbe970
* Move libdb2 makefile stuff down into db2 module subtree.Ken Raeburn2005-10-051-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some steps towards making module build on Darwin, not there yet. * aclocal.m4 (KRB5_BUILD_LIBRARY_WITH_DEPS): Substitute DYNOBJEXT and MAKE_DYNOBJ_COMMAND. (KRB5_LIB_AUX): Don't define _KDB5_STATIC_LINK. * config/libnover.in (darwin.exports): New target. ($(LIBBASE)$(DYNOBJEXT)): New target, instead of $(LIBBASE)$(SHLIBVEXT). (all-libs): Build $(LIBBASE)$(DYNOBJEXT). (install-shared): Use DYNOBJEXT. * config/pre.in (DYNOBJEXT, MAKE_DYNOBJ_COMMAND): New variables. * config/shlib.conf: Set DYNOBJEXT, MAKE_DYNOBJ_COMMAND to the SHLIB versions. For Darwin, set them to create a .so bundle, and set SHLIB_EXPORT_FILE_DEP to darwin.exports. * config/pre.in (DB_DEPLIB, DB_DEPLIB-k5, DB_DEPLIB-sys, DB_VERSION, DB_DEPS, DB_DEPS-sys, DB_DEPS-k5, DB_DEPS-redirect, DB_LIB, KDB5_DB_LIB): Variables deleted. (KDB5_LIBS): Set to just $(KDB5_LIB). * modules/kdb/db2/Makefile.in (DB_VERSION, DB_DEPS, DB_DEPS-sys, DB_DEPS-k5, DB_DEPS-redirect, DB_LIB, KDB5_DB_LIB, DB_DEPLIB, DB_DEPLIB-k5, DB_DEPLIB-sys): Variable definitions moved here from config/pre.in. (SHLIB_EXPLIBS): Only use gssrpc and KDB5_DB_LIB. * modules/kdb/db2/libdb2/test/Makefile.in (DB_LIB, DB_DEPLIB): Define here now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17408 dc483132-0cff-0310-8789-dd5450dbe970
* Rework logic for using res_ninit() and friends to fall back toTom Yu2005-09-081-10/+2
| | | | | | | | | res_init() if res_ndestroy() isn't available. ticket: 3172 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17377 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (PL_KRB5_MAJOR_RELEASE, PL_KRB5_MINOR_RELEASE, PL_KRB5_PATCHLEVEL,Ken Raeburn2005-08-201-2/+19
| | | | | | | | | | | PL_KRB5_RELTAIL): New macros, holding values extracted from patchlevel.h at autoconf time. (K5_VERSION): Define in terms of the PL_* macros. (K5_TOPDIR): If m4exit doesn't work, try builtin(m4exit,1). * configure.in: Set KRB5_VERSION from K5_VERSION, don't parse patchlevel.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17343 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (K5_AC_INIT, K5_VERSION, K5_BUGADDR): New macrosKen Raeburn2005-08-201-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17341 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (AC_LIBRARY_NET): Special-case AIX 5.x due to brokenTom Yu2005-07-201-0/+9
| | | | | | | | | | res_ninit(), or more precisely, incorrect size of struct __res_state. ticket: 2902 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17309 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (libnover_frag): Set and substituteKen Raeburn2005-06-291-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17274 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_AC_ENABLE_THREADS): Override guessed PTHREAD_CFLAGS withKen Raeburn2005-06-211-0/+7
| | | | | | correct value for solaris+gcc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17266 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (WITH_CC): Don't use -pedantic on Linux.Ken Raeburn2005-06-211-2/+10
| | | | | | | (KRB5_AC_FIND_DLOPEN): New macro. Set DL_LIB. (CONFIG_RULES, AC_KRB5_TCL_TRYOLD): Use it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17262 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (WITH_CC): Don't use -pedantic on LinuxKen Raeburn2005-06-211-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17260 dc483132-0cff-0310-8789-dd5450dbe970
* Novell Database Abstraction Layer merge.Ken Raeburn2005-06-211-0/+1
| | | | | | Will probably break things. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17258 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Provide comment template when definingKen Raeburn2005-05-131-13/+11
| | | | | | | | C macros. (KRB5_GETPEERNAME_ARGS): Likewise. (KRB5_GETSOCKNAME_ARGS): Likewise. Only define the macros in one place. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17216 dc483132-0cff-0310-8789-dd5450dbe970