xref: /netbsd-src/external/bsd/libevent/dist/autogen.sh (revision 80d9064ac03cbb6a4174695f0d5b237c8766d3d0)
1#!/bin/sh
2if [ -x "`which autoreconf 2>/dev/null`" ] ; then
3   exec autoreconf -ivf
4fi
5
6LIBTOOLIZE=libtoolize
7SYSNAME=`uname`
8if [ "x$SYSNAME" = "xDarwin" ] ; then
9  LIBTOOLIZE=glibtoolize
10fi
11aclocal -I m4 && \
12	autoheader && \
13	$LIBTOOLIZE && \
14	autoconf && \
15	automake --add-missing --force-missing --copy
16