File: configure

package info (click to toggle)
pcb-rnd 3.1.7b-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,108 kB
  • sloc: ansic: 213,400; yacc: 6,241; sh: 4,698; awk: 3,016; makefile: 2,254; lex: 1,166; python: 519; xml: 261; lisp: 154; tcl: 67; perl: 34; javascript: 6; ruby: 5
file content (40 lines) | stat: -rwxr-xr-x 799 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh

if test -z "$LIBRND_PREFIX"
then
	for P in /usr/local /opt/librnd /usr $HOME/usr
	do
		if test -e "$P/include/librnd4/librnd/core/config.h"
		then
			LIBRND_PREFIX="$P"
			break
		fi
	done
fi


case "$LIBRND_PREFIX" in
	"") 
		echo "

ERROR: Can not find librnd (required for pcb-rnd).

If librnd is not installed, please read INSTALL for details.

If librnd is installed at a non-standard prefix, please read
doc/INSTALL.librnd.txt and set LIBRND_PREFIX accordingly
(e.g. export LIBRND_PREFIX=/home/foo/sw/librnd) before running ./configure

" >&2
		exit 1
		;;
	/usr/include) ;;
	/usr/local/include) ;;
	*) LIBRND_EXTRA_INCLUDE="$LIBRND_PREFIX/include/librnd4"
esac


cd scconfig
make "LIBRND_PREFIX=$LIBRND_PREFIX" LIBRND_EXTRA_INCLUDE="-I$LIBRND_EXTRA_INCLUDE" && \
./configure "$@"