./configure && gmake fails on FreeBSD 7.4
...
gcc -DHAVE_CONFIG_H -I../Source/Include -I../Source/CParse -I../Source/Include -I../Source/DOH -I../Source/CParse -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g -O2 -Wall -W -ansi -pedantic -MT Swig/misc.o -MD -MP -MF $depbase.Tpo -c -o Swig/misc.o Swig/misc.c &&\
mv -f $depbase.Tpo $depbase.Po
Swig/misc.c:1119:18: error: pcre.h: No such file or directory
Swig/misc.c: In function 'Swig_string_regex':
Swig/misc.c:1191: error: 'pcre' undeclared (first use in this function)
Swig/misc.c:1191: error: (Each undeclared identifier is reported only once
Swig/misc.c:1191: error: for each function it appears in.)
Swig/misc.c:1191: error: 'compiled_pat' undeclared (first use in this function)
Swig/misc.c:1192: warning: ISO C90 forbids mixed declarations and code
Swig/misc.c:1200: warning: implicit declaration of function 'pcre_compile'
Swig/misc.c:1207: warning: implicit declaration of function 'pcre_exec'
Swig/misc.c:1211: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function)
Swig/misc.c:1220: warning: implicit declaration of function 'pcre_free'
Swig/misc.c: In function 'Swig_pcre_version':
Swig/misc.c:1225: warning: implicit declaration of function 'pcre_version'
gmake[2]: *** [Swig/misc.o] Error 1
gmake[2]: Leaving directory `/var/tmp/swig-2.0.4/Source'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/var/tmp/swig-2.0.4/Source'
gmake: *** [source] Error 2
...
as a workaround define the PCRE_FLAGS and PCRE_LIBS environment variables
export PCRE_CFLAGS=-I/usr/local/include
export PCRE_LIBS="-L/usr/local/libs -lpcre"
Thanks for your report, but this isn't actually a bug - you will need to tell configure where PCRE is installed if it isn't in the default search paths. See:
./configure --help|grep -i PCRE