summaryrefslogtreecommitdiffstats
path: root/SoftHSMv2/m4/acx_prefixhack.m4
blob: 16a50a26a3a7ed6d0e7c7ec6a3dd8c957796e56b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Special processing of paths depending on whether --prefix,
# --sysconfdir or --localstatedir arguments were given.

AC_DEFUN([ACX_PREFIXHACK],[
	case "$prefix" in
		NONE)
			case "$sysconfdir" in
				'${prefix}/etc')
					sysconfdir=/etc
					ac_configure_args="$ac_configure_args --sysconfdir=$sysconfdir"
					AC_MSG_NOTICE([sysconfdir set to $sysconfdir])
					;;
			esac
			case "$localstatedir" in
				'${prefix}/var')
					localstatedir=/var
					ac_configure_args="$ac_configure_args --localstatedir=$localstatedir"
					AC_MSG_NOTICE([localstate set to $localstatedir])
					;;
			esac
			;;
	esac
])