amb
amb

Reputation: 93

error: autoconf failed with exit status: 1

Hi am trying to a build shell script in centos 7.5 but am stopped due to the following error

ERROR:

[root@localhost unimrcp-1.5.0]# ./bootstrap
+ libtoolize --force --automake --copy
+ aclocal -I build/acmacros
+ automake --foreign --add-missing --copy
Usage: autoconf [-h] [--help] [-m dir] [--macrodir=dir]
       [-l dir] [--localdir=dir] [--version] [template-file]
automake: error: autoconf failed with exit status: 1
+ autoconf
autoconf: configure.in: No such file or directory
+ rm -rf autom4te.cache

and the following is the shell script i tried to execute. bootstrap.sh

#! /bin/sh

case `uname` in
    Darwin) libtoolize=glibtoolize ;;
    *)      libtoolize=libtoolize  ;;
esac

set -x
$libtoolize --force --automake --copy
aclocal -I build/acmacros
automake --foreign --add-missing --copy
autoconf

rm -rf autom4te.cache

Can any one help me to solve this problem? Thank you :)

Upvotes: 1

Views: 2919

Answers (1)

OneK
OneK

Reputation: 705

Your script is failing at the autoconf step.

From man autoconf:

Synopsis

autoconf [OPTION]... [TEMPLATE-FILE]

Description

Generate a configuration script from a TEMPLATE-FILE if given, or 'configure.ac' if present, or else 'configure.in'. Output is sent to the standard output if TEMPLATE-FILE is given, else into 'configure'.

As you can see autoconf is either expecting a TEMPLATE-FILE or it is looking for configure.ac or configure.in.

Since neither is given, your script is failing.

Upvotes: 1

Related Questions