Results 1 to 5 of 5

Thread: how to use environment variable in configure

  1. #1
    Join Date
    Jul 2015
    Beans
    42

    how to use environment variable in configure

    export APP_HOME = /something/
    is it possible to use it in configure --prefix=$APP_HOME?

    I also want to use it in ccmake . settings. It seems that I can not do it.

    Any help? Thanks.

  2. #2
    Join Date
    Jul 2015
    Beans
    42

    Re: how to use environment variable in configure

    configure --prefix=$APP_HOME works. But in the Makefile absolute path is used. I would prefer to have $APP_HOME in the Makefile.

  3. #3
    Join Date
    Jul 2015
    Beans
    42

    Re: how to use environment variable in configure

    I tried configure --prefix=${$APP_HOME}. configure does not like it

  4. #4
    Join Date
    Apr 2012
    Beans
    7,256

    Re: how to use environment variable in configure

    try
    Code:
    --prefix='$(APP_HOME)'
    the single quotes should prevent shell expansion

  5. #5
    Join Date
    Jul 2015
    Beans
    42

    Re: how to use environment variable in configure

    Thanks for your reply. the quotes do prevent shell expansion.
    But configure adds the source dir in front of $(APP_HOME)
    For example, if the source is in /home/src, install dir becomes /home/src/$APP_HOME

    Quote Originally Posted by steeldriver View Post
    try
    Code:
    --prefix='$(APP_HOME)'
    the single quotes should prevent shell expansion
    Last edited by newcfd; August 5th, 2015 at 06:31 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •