How to make a library with custom params like ./configure

Hi,

A manual install of the library is like this:

$ wget http://www.freetds.org/files/stable/freetds-1.00.21.tar.gz

$ tar -xzf freetds-1.00.21.tar.gz

$ cd freetds-1.00.21

$ ./configure --prefix=/usr/local --with-tdsver=7.3

$ make

$ make install

I have this with ansible, but I’m not sure how to do the ./configure --prefix and --with-tdsver part. Any tips?

  • name: Install tinytds
    make: chdir=/root/freetds-1.00.21 target=install

I haven’t used it myself, but there is a make module:

http://docs.ansible.com/ansible/latest/make_module.html

You’ll probably use the shell module to do the configure with your specific flags.

I don't think there is a module for configure so you need to use the shell or command module.

- shell: ./configure --prefix=/usr/local --with-tdsver=7.3
   args:
     chdir: /absolute/path/to/freetds-1.00.21