Add autopoint detection

This commit is contained in:
Ganesh Viswanathan 2019-08-30 19:08:35 -05:00
commit 9c51c82418
3 changed files with 12 additions and 3 deletions

View file

@ -2,6 +2,11 @@ os:
- linux
- osx
addons:
apt:
packages:
- autopoint
language: c
env:
@ -15,7 +20,6 @@ cache:
- "$HOME/.choosenim/toolchains/nim-0.20.2"
install:
# `set -u` failed for ubuntu: /home/travis/.travis/job_stages: line 107: secure: unbound variable
- set -e
- export CHOOSENIM_CHOOSE_VERSION=$BRANCH
- |

View file

@ -10,7 +10,7 @@ matrix:
environment:
matrix:
- NIM_VERSION: 0.19.6
- NIM_VERSION: 0.20.0
- NIM_VERSION: 0.20.2
for:
-
@ -54,6 +54,8 @@ for:
- image: Ubuntu
install:
- sudo apt-get update
- sudo apt-get --yes --force-yes install liblzma-dev liblzma5 autopoint
- if [ ! -e /home/appveyor/binaries ]; then
echo $NIM_VERSION &&
mkdir /home/appveyor/binaries &&

View file

@ -462,7 +462,10 @@ proc buildLibrary(lname, outdir, conFlags, cmakeFlags, makeFlags: string): strin
if findExe("aclocal").len != 0:
if findExe("autoconf").len != 0:
if findExe("libtoolize").len != 0:
cfgCommon()
if findExe("autopoint").len != 0:
cfgCommon()
else:
conDepStr &= "autopoint executable missing"
else:
conDepStr &= "libtoolize executable missing"
else: