language: c

matrix:
  include:
    - os: linux
      compiler: gcc
    - os: linux
      compiler: gcc
      env:
        - EXTRA_FLAGS=-m32
      addons:
        apt:
          packages:
          - gcc-multilib
    - os: osx
      compiler: clang
    - os: osx
      compiler: clang
      env:
        - EXTRA_FLAGS=-m32

before_script:
  - autoconf
  - ./configure${EXTRA_FLAGS:+ CC="$CC $EXTRA_FLAGS"}
  - make -j3
  - make -j3 tests

script:
  - make check

language: generic

matrix:
  include:
    - os: linux
      env: CC=gcc CXX=g++
      env: CC=clang CXX=clang++
    - os: linux
      env: CC=gcc CXX=g++ EXTRA_FLAGS=-m32
      env: CC=clang CXX=clang++ EXTRA_FLAGS=-m32
      addons:
        apt:
          packages:
          - gcc-multilib
    - os: osx
      env: CC=clang CXX=clang++
      env: CC=clang CXX=clang++ EXTRA_FLAGS=-m32

before_script:
  - autoconf
  - ./configure${EXTRA_FLAGS:+ CC="$CC $EXTRA_FLAGS" CXX="$CXX $EXTRA_FLAGS"}
  - make -j3
  - make -j3 tests

script:
  - make check

Update Travis-CI config for C++ integration.
Update Travis-CI config for C++ integration.
