utimens: port to NetBSD-10.99.12/amd64
[gnulib.git] / modules / relocatable-prog
blob4d13fda63b023081bd1a6e44baa82dd0aa086909
1 Description:
2 Help make programs relocatable, that is, to allow them to function
3 properly when copied to an arbitrary directory.
5 Files:
6 build-aux/config.libpath
7 build-aux/reloc-ldflags
8 build-aux/libtool-reloc
9 doc/relocatable.texi
10 lib/relocatable.h
11 lib/relocatable.c
12 lib/progreloc.c
13 m4/relocatable.m4
14 m4/relocatable-lib.m4
15 m4/lib-ld.m4
16 m4/host-cpu-c-abi.m4
18 Depends-on:
19 relocatable-prog-wrapper
20 progname
21 canonicalize-lgpl
22 xalloc
23 xreadlink
24 open
25 stdbool
26 unistd
27 memcmp
28 strdup
30 configure.ac:
31 gl_RELOCATABLE([$gl_source_base])
32 gl_CONDITIONAL([GL_COND_OBJ_PROGRELOC], [test $RELOCATABLE = yes])
33 AM_COND_IF([GL_COND_OBJ_PROGRELOC], [
34   AC_LIBOBJ([relocatable])
37 Makefile.am:
38 if GL_COND_OBJ_PROGRELOC
39 lib_SOURCES += progreloc.c
40 endif
41 DEFS += -DEXEEXT=\"@EXEEXT@\"
42 if RELOCATABLE_VIA_WRAPPER
43 uninstall-hook: uninstall-relocwrapper
44 uninstall-relocwrapper:
45         if test $(RELOCATABLE) = yes; then \
46           case '$(EXEEXT)' in \
47             .bin*) ;; \
48             *) cd $(top_builddir) && \
49                $(MAKE) $(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT) \
50                        AM_MAKEFLAGS='$(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT)' \
51                        uninstall ;; \
52           esac; \
53         fi
54 endif
55 ## Automake warns about conditionally added dependencies to unconditionally defined targets.
56 .PHONY: uninstall-relocwrapper
58 Include:
59 "relocatable.h"
60 "progname.h"
62 License:
63 GPL
65 Maintainer:
66 Ben Pfaff