blob: 20b9fbaee34e962575d38d45b838ad0d6e8c0230 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
set -eux
make="make -j$(nproc --all)"
configure_flags="--with-xwidgets --with-cairo"
if ! test -f Makefile
then
${make} configure
fi
check-config ()
{
if ! test -f src/config.h
then
return 1
fi
local pattern='#define EMACS_CONFIG_OPTIONS "'${configure_flags}'"'
grep "${pattern}" src/config.h
}
if ! check-config
then
./configure ${configure_flags}
fi
${make} "$@"
|