AS_IF([test x"$enable_reproducible" = "xyes"],[
AC_DEFINE([REPRODUCIBLE], [1], [Define to 1 for reproducible builds])
],[
- build_user=m4_esyscmd_s(id -u -n)
- AS_IF([test x"$host_os" = "xSunOS"],[
- build_host_host=m4_esyscmd_s(hostname)
- build_host_domain=m4_esyscmd_s(domainname)
+ build_user=$(id -u -n)
+ if [ test x"$host_os" = "xSunOS" ]; then
+ build_host_host=$(hostname)
+ build_host_domain=$(domainname)
build_host="$build_host_host.$build_host_domain"
- ],[
- build_host=m4_esyscmd_s(hostname -f || hostname || echo 'localhost')
- ])
+ else
+ build_host=$(hostname -f || hostname || echo 'localhost')
+ fi
AC_DEFINE_UNQUOTED([BUILD_HOST], ["$build_user@$build_host"], [Set to the user and host that builds PowerDNS])
])
])