Hello again, Jimmy,

I tried to check the file configure.ac and the configure script works 
changing the line

  CPPFLAGS=$save_CPPFLAGS])

to

  CPPFLAGS="$save_CPPFLAGS -I$ctl_h_path"])

Then regenerate the configure script with autoreconf.

Can you try this? It worked for me...

Regards,

Rafael



On 19:26 Thu 02 Feb     , Rafael Gomez Alcala wrote:
> Hi Jimmy,
> 
> I've been reading the part of the configure.ac file responsible for checking 
> the location
> of the ctl.h header file. It is the following piece of code:
> 
> # check for ctl.h (Fedora puts it in /usr/include/ctl, grrr)
> CTL_H_CPPFLAG=""
> AC_CHECK_HEADER(ctl.h, [CTL_H_CPPFLAG=" "], [
>   save_CPPFLAGS=$CPPFLAGS
>   AC_MSG_CHECKING([for alternate ctl.h location])
>   for ctl_h_path in /usr/include/ctl /usr/local/include/ctl; do
>      CPPFLAGS="$save_CPPFLAGS -I$ctl_h_path"
>      AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include <ctl.h>]],[]), 
> [CTL_H_CPPFLAG=-I$ctl_h_path; break])
>   done
>   AC_MSG_RESULT([$CTL_H_CPPFLAG])
>   CPPFLAGS=$save_CPPFLAGS])
> if test "x$CTL_H_CPPFLAG" = "x"; then
>   AC_MSG_ERROR([Couldn't find the ctl.h header file for libctl.])
> fi
> AC_SUBST(CTL_H_CPPFLAG)
> 
> 
> Seems that the authors of meep did consider the issue in the configure.ac 
> file. Perhaps this
> doesn't work with recent versions of Fedora ... You can also try to regenerate
> the "configure" file with autoreconf:
> 
> autoreconf --force --install
> 
>  - runs aclocal, autoconf, autoheader and automake in the right order to 
> create 
> config.h.in, Makefile.in, configure and a number of auxiliary files (*)
> 
> Kind regards,
> 
> Rafael
> 
> 
> 
> 
> (*) Check http://www.openismus.com/documents/linux/automake/automake 
> for more information about automake. 
> 
> 
> 
> 
> 
> On 10:50 Thu 02 Feb     , Jimmy Dorff wrote:
> > Thanks Rafael,
> > 
> > sym linking these files in "/usr/include" allows it to build under Fedora:
> > ctlgeom.h -> ctl/ctlgeom.h
> > ctlgeom-types.h -> ctl/ctlgeom-types.h
> > ctl.h -> ctl/ctl.h
> > 
> > However, that sort of thing isn't going to work on more formal Fedora 
> > build systems like "mock".
> > 
> > The Meep_release_notes have "Check for ctl.h in /usr/include/ctl/ctl.h 
> > (default in Fedora)" listed from "Meep 0.20". Perhaps that old fix isn't 
> > working anymore ??
> > 
> > Thanks,
> > Jimmy
> > 
> > 
> > On 02/02/2012 03:54 AM, [email protected] wrote:
> > > Hi Jimmy:
> > >
> > > I think there is a problem with the location of ctl.h . You can
> > > try first to copy only ctl.h to /usr/include. You will need superuser
> > > privileges to do that.
> > >
> > > If your configure program suceeds, then there is an issue with the
> > > location of ctl include files. In my installation (Gentoo ) all the
> > > include libctl files are located at /usr/include. You can try to move
> > > them as well.
> > >
> > > Hope it helps!
> > >
> > > Rafael Gomez Alcala
> > >
> > >
> > >
> > > On 15:40 Wed 01 Feb     , Jimmy Dorff wrote:
> > >> Hi Folks,
> > >>
> > >> I'm attempting to create a rpm for my Fedora/Scientific Linux users who
> > >> want meep. There seems to be some sort of problem detecting ctl.h from
> > >> the configure script.
> > >>
> > >> I've posted the configure command and partial config.log here:
> > >> http://pastebin.com/u6diBTZJ
> > >>
> > >> Looking through the list archives, I did see someone mention "pinning"
> > >> libctl under Ubuntu but I didn't find any more details.
> > >>
> > >> Thanks,
> > >> Jimmy
> > >>
> > 
> > _______________________________________________
> > meep-discuss mailing list
> > [email protected]
> > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to