summaryrefslogtreecommitdiff
path: root/debian/patches/honor-sysconfdir.diff
blob: d3d59db4e4b9f60d913ae4310ce446cce77fc7aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: configure script read the sysconfdir option
Author: Ludwin Janvier <lud.janvier@gmail.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: gnucobol4-debian/configure.ac
===================================================================
--- gnucobol4-debian.orig/configure.ac
+++ gnucobol4-debian/configure.ac
@@ -2453,6 +2453,10 @@ elif test "$COB_USES_GCC" = "yes" && tes
 	CFLAGS="$CFLAGS -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k"
 fi
 
+if test -n "$sysconfdir"; then
+	COB_CONFIG_DIR="$sysconfdir/$PACKAGE_TARNAME"
+fi
+
 if test "x$lt_cv_dlopen_self" != "xyes"; then
 	AC_DEFINE([COB_NO_SELFOPEN], [1])
 fi