Configure.in Error No Proper Invocation Of Am_init_automake Was Found
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings am_init_automake undefined and policies of this site About Us Learn more about Stack am_init_automake foreign Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs you should verify that configure.ac invokes am_init_automake Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them;
Am_init_automake Command Not Found
it only takes a minute: Sign up automake error: no proper invocation of AM_INIT_AUTOMAKE was found up vote 7 down vote favorite 4 i am new in autotools, and following this tutorial. but I could not solve this errors, $ automake configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found. .. Makefile.am: error: required file './depcomp' not found .. /usr/share/automake-1.12/am/depend2.am: required file `./news' not found error: am__fastdepCC does not appear in AM_CONDITIONAL .. /usr/share/automake-1.12/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL .. my configure.ac file is # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS]) AM_INIT_AUTOMAKE(hello,1.0) AC_CONFIG_SRCDIR([config.h.in]) AM_CONFIG_HEADERS(config.h) # Checks for programs. AC_PROG_CC # Checks for libraries. # Checks for header files. AC_CHECK_HEADERS([sys/time.h]) # Checks for typedefs, structures, and compiler characteristics. # Checks for library functions. AC_CHECK_FUNCS([gettimeofday]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT I checked for solution on Internet, my configure.ac looks fine, don't know what is wrong with it. Could any one help me, please ? autotools automake share|improve this question edited Jun 22 '14 at 18:22 Flow 14.9k765106 asked Apr 24 '13 at 9:28 alim 1722213 add a comment| 1 Answer 1 active oldest votes up vote 16 down vote Where did you copy&paste your configure.ac from? Whatever that site is, you should remove it from your bookmarks! You are mixing the new AC_INIT way to indicate the package version, with the old AM_INIT_AUTOMAKE way to do the same thing. Don't do both. (
here for a quick overview of the site Help Center autoconf am_init_automake Detailed answers to any questions you might have Meta Discuss
Automake: Error: No 'makefile.am' Found For Any Configure Output
the workings and policies of this site About Us Learn more about Stack Overflow
Am_maintainer_mode
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x http://stackoverflow.com/questions/16188335/automake-error-no-proper-invocation-of-am-init-automake-was-found Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Receiving error during automake command in ubuntu 14 up vote 1 down vote favorite I want to install a http://stackoverflow.com/questions/31111393/receiving-error-during-automake-command-in-ubuntu-14 tool named mfcuk, but the following errors appear. What shall I do? itsme@ubuntu:~/Desktop/mfcuk-master$ ls AUTHORS ChangeLog configure.ac INSTALL Makefile.am README TODO autom4te.cache configure COPYING LICENSE NEWS src tools ebrahim@ubuntu:~/Desktop/mfcuk-master$ sudo automake configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found. configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE, configure.ac: that aclocal.m4 is present in the top-level directory, configure.ac: and that aclocal.m4 was recently regenerated (using aclocal) configure.ac:7: error: required file 'config.h.in' not found src/Makefile.am: error: required file './depcomp' not found src/Makefile.am: 'automake --add-missing' can install 'depcomp' /usr/share/automake-1.14/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL /usr/share/automake-1.14/am/depend2.am: The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC' /usr/share/automake-1.14/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again /usr/share/automake-1.14/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.14/am/depend2.am: The usual way to define 'AMDEP' is to add one of the compiler tests /usr/share/automake-1.14/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX, /usr/share/automake
この Makefile.in を Makefile.am から作成するのが automake。 autotools でコンパイルする (1. Hello world プログラム) で作成した hello.c に対して Makefile を作成してみる。以下は http://markuskimius.wikidot.com/programming:tut:autotools:4 のチュートリアルを実行した。 automake のサンプル Makefile.am bin_PROGRAMS=hello hello_SOURCES=hello.c bin_PROGRAMS に作成するファイル名 hello を指定して、そのソースを hello_SOURCES に指定する。 automake の実行 automake とすると Makefile.in ができるはずなのだが、この段階ではエラーでうまくいかない。 automake のエラー 私の環境では次のようなエラーが出た。 configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found. configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE, configure.ac: that aclocal.m4 is present in the top-level directory, configure.ac: and that aclocal.m4 was recently regenerated (using aclocal). Makefile.am: required file `./INSTALL' not found Makefile.am: `automake --add-missing' can install `INSTALL' Makefile.am: required file `./NEWS' not found Makefile.am: required file `./README' not found Makefile.am: required file `./AUTHORS' not found Makefile.am: required file `./ChangeLog' not found Makefile.am: required file `./COPYING' not found Makefile.am: `automake --add-missing' can install `COPYING' Makefile.am: required file `./depcomp' not found Makefile.am: `automake --add-missing' can install `depcomp' /usr/share/automake-1.11/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL /usr/share/automake-1.11/am/depend2.am: The usual way to define `am__fastdepCC' is to add `AC_PROG_CC' /usr/share/automake-1.11/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again. /usr/share/automake-1.11/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.11/am/depend2.am: The usual way to define `AMDEP' is to add one of the compi