configure: fix mktemp call for macOS

Add missing template to mktemp, as required by macOS / OS X.

Signed-off-by: Ralph Seichter <abbot@monksofcool.net>
This commit is contained in:
Ralph Seichter 2019-06-16 17:18:47 +02:00 committed by David Bremner
parent 20842dfb6d
commit 4b17201c4f

2
configure vendored
View file

@ -529,7 +529,7 @@ int main () {
return 0; return 0;
} }
EOF EOF
if ! TEMP_GPG=$(mktemp -d); then if ! TEMP_GPG=$(mktemp -d "${TMPDIR:-/tmp}/notmuch.XXXXXX"); then
printf 'No.\nCould not make tempdir for testing session-key support.\n' printf 'No.\nCould not make tempdir for testing session-key support.\n'
errors=$((errors + 1)) errors=$((errors + 1))
elif ${CC} ${CFLAGS} ${gmime_cflags} _check_session_keys.c ${gmime_ldflags} -o _check_session_keys \ elif ${CC} ${CFLAGS} ${gmime_cflags} _check_session_keys.c ${gmime_ldflags} -o _check_session_keys \