[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:09

  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.33      +35 -0     eda/geda/gaf/utils/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/utils/configure.ac,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -b -r1.32 -r1.33
  --- configure.ac	22 Dec 2006 03:00:49 -0000	1.32
  +++ configure.ac	9 Feb 2007 00:24:08 -0000	1.33
  @@ -286,6 +286,39 @@
   
   #
   #########################################################################
  +
  +#########################################################################
  +#
  +# Change default location for pcb's newlib library directory
  +#
  +# Used by gsch2pcb
  +
  +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}])
  +CPPFLAGS="$CPPFLAGS -DPCBDATADIR=\\\"${PCBDATADIR}\\\""
  +
  +AC_MSG_CHECKING([For the default pcb newlib search path])
  +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="${PCBDATADIR}/pcb/pcblib-newlib:${PCBDATADIR}/pcb/newlib"]
  +)
  +AC_MSG_RESULT([${PCBLIBPATH}])
  +CPPFLAGS="$CPPFLAGS -DPCBLIBPATH=\\\"${PCBLIBPATH}\\\""
  +
  +#
  +#########################################################################
  +
   #########################################################################
   # Check for groff start
   #
  @@ -388,6 +421,7 @@
   expandedGEDADATADIR=`eval "echo $GEDADATADIR"`
   expandedGEDARCDIR=`eval "echo $GEDARCDIR"`
   expandedGEDADOCDIR=`eval "echo $GEDADOCDIR"`
  +expandedPCBLIBPATH=`eval "echo $PCBLIBPATH"`
   
   AC_MSG_RESULT([
   ** Configuration summary for $PACKAGE $VERSION:
  @@ -399,6 +433,7 @@
      data directory:                   $expandedGEDADATADIR
      rc directory:                     $expandedGEDARCDIR
      documentation directory:          $expandedGEDADOCDIR
  +   default pcb newlib path:          $expandedPCBLIBPATH
      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