comparison m4/relocatable.m4 @ 8334:a601c63691bf

Compile progreloc.c only if --enable-relocatable is specified.
author Bruno Haible <bruno@clisp.org>
date Sun, 04 Mar 2007 21:05:50 +0000
parents f5958c21416d
children 827a525c7057
comparison
equal deleted inserted replaced
8333:96afaf6c40a1 8334:a601c63691bf
1 # relocatable.m4 serial 10 1 # relocatable.m4 serial 11
2 dnl Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. 2 dnl Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation 3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it, 4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved. 5 dnl with or without modifications, as long as this notice is preserved.
6 6
12 dnl Supply RELOCWRAPPER-DIR as the directory where relocwrapper.c may be found. 12 dnl Supply RELOCWRAPPER-DIR as the directory where relocwrapper.c may be found.
13 AC_DEFUN([gl_RELOCATABLE], 13 AC_DEFUN([gl_RELOCATABLE],
14 [ 14 [
15 AC_REQUIRE([gl_RELOCATABLE_BODY]) 15 AC_REQUIRE([gl_RELOCATABLE_BODY])
16 gl_RELOCATABLE_LIBRARY 16 gl_RELOCATABLE_LIBRARY
17 if test $RELOCATABLE = yes; then
18 AC_LIBOBJ([progreloc])
19 fi
17 : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'} 20 : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
18 RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base" 21 RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
19 RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base" 22 RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
20 ]) 23 ])
21 dnl The guts of gl_RELOCATABLE. Needs to be expanded only once. 24 dnl The guts of gl_RELOCATABLE. Needs to be expanded only once.