1 # Process this file with autoconf to produce a configure script.
3 AC_CONFIG_SRCDIR([74/7400-1.sym])
8 echo Configuring $PACKAGE version $VERSION
10 # Initialize automake stuff
11 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
13 # Init maintainer mode
16 #########################################################################
17 # Command line flags start
19 # Change default location for rc files
20 AC_ARG_WITH(rcdir, [ --with-rcdir=path Change where the system-*rc files are installed], [opt_rcdir=$withval])
22 # --with-docdir : tells where to store documentation if not default
25 # Command line flags end
26 #########################################################################
28 #########################################################################
30 # Misc win32 / mingw checks and variables start
33 # Figure out if we are building on win32 and what environment.
35 *mingw32* ) echo "Configuring for mingw"; MINGW=yes ;;
38 if ! test "$MINGW" = "no" -o "$MINGW"x = x; then
50 # Misc win32 / mingw checks and variables end
51 #########################################################################
53 #########################################################################
54 # Check for fig2dev, groff, ps2pdf start
57 AC_PATH_PROG(FIG2DEV, fig2dev, no, ${PATH})
58 if test $FIG2DEV = "no"; then
59 echo "Cannot find fig2dev (transfig), some documentation will not be created."
63 AC_PATH_PROG(GROFF, groff, no, ${PATH})
64 if test $GROFF = "no"; then
65 echo "Cannot find groff, some documentation will not be created."
69 AC_PATH_PROG(PS2PDF, ps2pdf, no, ${PATH})
70 if test $PS2PDF = "no"; then
71 echo "Cannot find ps2pdf, some documentation will not be created."
75 # Check for fig2dev, groff, ps2pdf end
76 #########################################################################
78 #########################################################################
79 # Do individual library files start
82 # Some of our own macros for setting up library files
83 AC_DEFUN([GEDA_DECLARE_SYMLIB],
85 data$1=`ls -1 $srcdir/$1 | grep -v Makefile | grep -v ChangeLog \
86 | grep -v CVS | grep -v "\\.cvsignore" \
88 | grep -v "\\~" | grep -v "\\.orig"`
93 GEDA_DECLARE_SYMLIB(4000)
94 GEDA_DECLARE_SYMLIB(national)
95 GEDA_DECLARE_SYMLIB(local)
96 GEDA_DECLARE_SYMLIB(io)
97 GEDA_DECLARE_SYMLIB(amphenol)
98 GEDA_DECLARE_SYMLIB(analog)
99 GEDA_DECLARE_SYMLIB(maxim)
100 GEDA_DECLARE_SYMLIB(verilog)
101 GEDA_DECLARE_SYMLIB(vhdl)
102 GEDA_DECLARE_SYMLIB(spice)
103 GEDA_DECLARE_SYMLIB(connector)
104 GEDA_DECLARE_SYMLIB(altera)
105 GEDA_DECLARE_SYMLIB(linear)
106 GEDA_DECLARE_SYMLIB(switch)
107 GEDA_DECLARE_SYMLIB(switcap)
108 GEDA_DECLARE_SYMLIB(titleblock)
109 GEDA_DECLARE_SYMLIB(tube)
110 GEDA_DECLARE_SYMLIB(radio)
111 GEDA_DECLARE_SYMLIB(micro)
112 GEDA_DECLARE_SYMLIB(memory)
113 GEDA_DECLARE_SYMLIB(74)
114 GEDA_DECLARE_SYMLIB(relay)
115 GEDA_DECLARE_SYMLIB(diode)
116 GEDA_DECLARE_SYMLIB(opto)
117 GEDA_DECLARE_SYMLIB(bus)
118 GEDA_DECLARE_SYMLIB(supervisor)
119 GEDA_DECLARE_SYMLIB(lattice)
120 GEDA_DECLARE_SYMLIB(misc)
121 GEDA_DECLARE_SYMLIB(transistor)
122 GEDA_DECLARE_SYMLIB(power)
123 GEDA_DECLARE_SYMLIB(philips)
124 GEDA_DECLARE_SYMLIB(xilinx)
125 GEDA_DECLARE_SYMLIB(dec)
126 GEDA_DECLARE_SYMLIB(rf)
127 GEDA_DECLARE_SYMLIB(pla)
128 GEDA_DECLARE_SYMLIB(ecl)
129 GEDA_DECLARE_SYMLIB(IEC417)
130 GEDA_DECLARE_SYMLIB(font)
131 GEDA_DECLARE_SYMLIB(idt)
132 GEDA_DECLARE_SYMLIB(diode)
133 GEDA_DECLARE_SYMLIB(opto)
134 GEDA_DECLARE_SYMLIB(cascade)
135 GEDA_DECLARE_SYMLIB(asic)
136 GEDA_DECLARE_SYMLIB(asicpads)
137 GEDA_DECLARE_SYMLIB(gnetman)
138 GEDA_DECLARE_SYMLIB(minicircuits)
139 GEDA_DECLARE_SYMLIB(st)
140 GEDA_DECLARE_SYMLIB(apex)
141 GEDA_DECLARE_SYMLIB(allegro)
142 GEDA_DECLARE_SYMLIB(irf)
144 # Do individual library files start
145 #########################################################################
147 #########################################################################
148 # gEDA/gaf specify setup start
151 GEDADATADIR=$datadir/$DATADIR
153 if eval "test x$opt_rcdir = x"; then
154 # path not was specified with --with-rcdir
155 GEDARCDIR=$GEDADATADIR
157 # path WAS specified with --with-rcdir
158 GEDARCDIR="$opt_rcdir"
161 # Expand the prefix variable
162 # I don't like the way this is done, but it works (I hope).
163 if eval "test x$prefix = xNONE"; then
164 dprefix=$ac_default_prefix
169 gedadocdir=$dprefix/share/doc/geda-doc
170 AC_ARG_WITH(docdir, [ --with-docdir Where to store documentation if not default.], gedadocdir=$withval)
171 expandgedadocdir=`echo $gedadocdir`
172 GEDADOCDIR=$expandgedadocdir
174 # gEDA/gaf specify setup end
175 #########################################################################
178 AC_SUBST(GEDADATADIR)
182 AC_SUBST(OTHERPATHSEP)
229 minicircuits/Makefile
234 documentation/Makefile
239 expandedGEDADATADIR=`eval "echo $GEDADATADIR"`
240 expandedGEDARCDIR=`eval "echo $GEDARCDIR"`
241 expandedGEDADOCDIR=`eval "echo $GEDADOCDIR"`
244 ** Configuration summary for $PACKAGE $VERSION:
246 data directory: $expandedGEDADATADIR
247 rc directory: $expandedGEDARCDIR
248 documentation directory: $expandedGEDADOCDIR