-#!/bin/sh
+#!/usr/bin/env bash
# Taken from lighthttpd server (BSD). Thanks Jan!
# Run this to generate all the initial makefiles, etc.
## We do not currently support glibtoolize
if test x$LIBTOOLIZE = x; then
-# if test \! "x`which glibtoolize 2> /dev/null | grep -v '^no'`" = x; then
-# LIBTOOLIZE=glibtoolize
- if test \! "x`which libtoolize-1.5 2> /dev/null | grep -v '^no'`" = x; then
+ if test \! "x`which glibtoolize 2> /dev/null | grep -v '^no'`" = x; then
+ LIBTOOLIZE=glibtoolize
+ elif test \! "x`which libtoolize-1.5 2> /dev/null | grep -v '^no'`" = x; then
LIBTOOLIZE=libtoolize-1.5
elif test \! "x`which libtoolize 2> /dev/null | grep -v '^no'`" = x; then
LIBTOOLIZE=libtoolize