aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
blob: 1da687450d79e32ca19c3fdce548fbf80ab01428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# SPDX-License-Identifier: LGPL-2.1-or-later

#
# This file is part of libgpiod.
#
# Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
#                    2017 Thierry Reding <treding@nvidia.com>
#

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd "$srcdir"

autoreconf --force --install --verbose || exit 1
cd $ORIGDIR || exit $?

if test -z "$NOCONFIGURE"; then
	exec "$srcdir"/configure "$@"
fi