A googling of "configure: error: invalid variable name" leads me to http://askubuntu.com/a/590679 . The reason: the first dash in your '--with-apr' is not correct typed.
btw I would suggest similiar questsions go to dev list instead of user list. On Fri, Jan 29, 2016 at 1:02 PM, Rinaldo Digiorgio <[email protected]> wrote: > I am trying to build 0.26 on OS/X 10.11.2 and failing in the configure > step. > I think all the required libraries are installed > > configure: error: cannot find libapr-1 headers > ------------------------------------------------------------------- > libapr-1 is required for mesos to build. > ————————————————————————————————— > > > ../configure –-with-apr=/usr/local/Cellar/apr/1.5.2/libexec/ > configure: error: invalid variable name: `–-with-apr’ > > > configure —help shows the following so the option should be accepted > > --with-apr=[=DIR] specify where to locate the apr-1 library > > > Rinaldo > > >

