[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: configure.ac



  User: danmc   
  Date: 07/02/08 19:24:07

  Modified:    .        configure.ac
  Log:
  1)  add a new option to gsch2pcb "use-m4" for the project file or "--use-m4" for the
  
  command line.  By default now, gsch2pcb will not try to run m4 at all.  If you want
  
  the old behaviour of running m4, you'll have to use this option.  It seems that this
  
  is what most users want (no m4 involved at run time).
  
  
  
  2) rather than hard coding a number of paths like /usr/X11R6/lib and /usr/local/share
  
  into the code for places to look for PCB footprints, use a single default directory
  
  which is based on ${datadir}.  If the user wants to, they can override that with
  
  --with-pcb-datadir=/opt/pcb-20070204/share for example.
  
  
  
  3)  when searching for newlib footprints with, for example, a name like
  
  footprint=MY1206, match either "MY1206" or "MY1206.fp" so we can start having extensions
  
  on footprint files without needing to explicitly add the ".fp" part in the footprint=
  
  attribute.  All of the footprints in the pcb distribution which came from the m4
  
  libraries have .fp extensions now.
  
  
  
  4)  add some example schematic files in the gsch2pcb example directory
  
  
  
  
  Revision  Changes    Path
  1.35      +26 -2     eda/geda/gaf/gnetlist/configure.ac
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: configure.ac
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gnetlist/configure.ac,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -b -r1.34 -r1.35
  --- configure.ac	22 Dec 2006 02:49:43 -0000	1.34
  +++ configure.ac	9 Feb 2007 00:24:06 -0000	1.35
  @@ -21,14 +21,36 @@
   # Change default location for rc files
   AC_ARG_WITH(rcdir, [  --with-rcdir=path       Change where the system-*rc files are installed], [opt_rcdir=$withval])
   
  +AC_MSG_CHECKING([For the default pcb installation data directory])
  +AC_ARG_WITH(pcb-datadir,
  +	[  --with-pcb-datadir=path
  +                          Change the default location for an installed pcb.  This is used
  +                          to set the default search path for pcb newlib libraries.
  +                          [[default=${datadir}]]],
  +        [PCBDATADIR=$withval],
  +        [PCBDATADIR="${datadir}"]
  +)
  +AC_MSG_RESULT([${PCBDATADIR}])
  +AC_SUBST(PCBDATADIR)
  +
   # Change default location for pcb's m4 library directory
  +AC_MSG_CHECKING([For the default pcb m4 directory])
   AC_ARG_WITH(pcbm4dir,
  -	[  --with-pcbm4dir=path     Change where the PCB m4 files are installed [[default=${datadir}/pcb/m4]]],
  +	[  --with-pcbm4dir=path     Change where the PCB m4 files are installed [[default=${PCBDATADIR}/pcb/m4]]],
           [PCBM4DIR=$withval],
  -	[PCBM4DIR="${datadir}/pcb/m4"]
  +	[PCBM4DIR="${PCBDATADIR}/pcb/m4"]
   )
  +AC_MSG_RESULT([${PCBM4DIR}])
   AC_SUBST(PCBM4DIR)
   
  +# Change default location for pcb's newlib library directory
  +AC_ARG_WITH(pcb-newlib-path,
  +	[  --with-pcb-newlib-path=path   Change the default search path for PCB newlib libraries [[default=${datadir}/pcb/pcblib-newlib:${datadir}/pcb/newlib:]]],
  +        [PCBLIBPATH=$withval],
  +	[PCBLIBPATH="${datadir}/pcb/pcblib-newlib:${datadir}/pcb/newlib"]
  +)
  +AC_SUBST(PCBLIBPATH)
  +
   # Change default location for pcb's m4 site configuration directory
   AC_ARG_WITH(pcbconfdir,
   	[  --with-pcbconfdir=path     Change where the PCB site config files are installed [[default=${sysconfdir}/pcb]]],
  @@ -376,6 +398,7 @@
   expandedGEDADATADIR=`eval "echo $GEDADATADIR"`
   expandedGEDARCDIR=`eval "echo $GEDARCDIR"`
   expandedGEDADOCDIR=`eval "echo $GEDADOCDIR"`
  +expandedPCBM4DIR=`eval "echo $PCBM4DIR"`
   
   AC_MSG_RESULT([
   ** Configuration summary for $PACKAGE $VERSION:
  @@ -386,6 +409,7 @@
      data directory:                   $expandedGEDADATADIR
      rc directory:                     $expandedGEDARCDIR
      documentation directory:          $expandedGEDADOCDIR
  +   default PCB m4 directory:         $expandedPCBM4DIR
      dmalloc debugging:                $with_dmalloc
      Electric Fence debugging:         $with_efence
   ])
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs