xwiimote / xf86-input-xwiimote

X.org XInput2 Wii Remote driver based on XWiimote
Other
37 stars 14 forks source link

configure fails because AUTOMAKE_OPTIONS = subdir-objects is not set #9

Closed jkoelndorfer closed 11 years ago

jkoelndorfer commented 11 years ago

I'm running an up-to-date Arch Linux. When I first run configure, I get this error:

configure: creating ./config.status config.status: error: cannot find input file: `Makefile.in'

So I tried running autogen.sh, which resulted in:

automake: warnings are treated as errors Makefile.am:43: warning: source file 'src/@DRIVER_NAME@.c' is in a subdirectory, Makefile.am:43: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. autoreconf: automake failed with exit status: 1

I was able to fix this by adding the line:

AUTOMAKE_OPTIONS = subdir-objects

to Makefile.am. I added it right underneath the ACLOCAL_AMFLAGS line.

After that, running autogen.sh did work (but configure did not work if run first).

jkoelndorfer commented 11 years ago

I'm a noob at GitHub, I've updated the pull request appropriately. :-)