Changeset 368


Ignore:
Timestamp:
Nov 21, 2012 7:08:03 AM (7 years ago)
Author:
kulshres
Message:

honour command line --libdir if given

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r366 r368  
    1616        ADOLC_VER.ADOLC_SUB.ADOLC_LVL-trunk,
    1717        [adol-c@list.coin-or.org])
     18config_flags="$*"
    1819AC_REVISION($Revision$)
    1920AC_CONFIG_SRCDIR([ADOL-C/src/adouble.cpp])
     
    3435    ac_shell_cxxflags="$CXXFLAGS"
    3536fi
     37libdir_set_on_cmd="no"
     38for i in $config_flags ; do
     39    case $i in
     40    -libdir | --libdir | --libdi | --libd | -libdir=* | --libdir=* | --libdi=* | --libd=*)
     41            libdir_set_on_cmd="yes"
     42            break
     43            ;;
     44    esac
     45done
    3646
    3747# checks for programs
     
    5161   _lib=lib
    5262fi
    53 libdir='${exec_prefix}/${_lib}'
    54 AC_SUBST(_lib)
    55 AC_SUBST(libdir)
     63if test "x$libdir_set_on_cmd" = "xno" ; then
     64   libdir='${exec_prefix}/${_lib}'
     65   AC_SUBST(_lib)
     66   AC_SUBST(libdir)
     67fi
    5668
    5769# checks for header files
Note: See TracChangeset for help on using the changeset viewer.