fix bug 145, build on freebsd

* https://sourceforge.net/p/qucs/bugs/145/
This commit is contained in:
Guilherme Brondani Torri 2014-05-15 00:51:43 +02:00
parent be8d71cf46
commit 6da845a885
2 changed files with 4 additions and 5 deletions

View File

@ -159,7 +159,7 @@ case $host_os in
paths="$QTDIR/include /usr/local/qt4/include /usr/include/qt4 /usr/include/qt4 \
/usr/include /usr/X11R6/include/X11/qt4 /usr/X11R6/include/X11/qt4 \
/usr/X11R6/include/qt4 /usr/X11R6/include /sw/include/qt4 \
/usr/X11R6/include/qt4 $prefix/include/qt4"
/usr/X11R6/include/qt4 /usr/local/include/qt4"
for path in $paths; do
if test -f "$path/Qt/qapplication.h"; then
QT_INCLUDES="$path -I$path/Qt -I$path/QtGui -I$path/QtCore -I$path/QtSvg -I$path/QtXml -I$path/QtScript"
@ -191,8 +191,7 @@ case $host_os in
QT_LIB="-lQtCore -lQtGui -lQtXml -lQt3Support -lQtSvg -lQtScript"
QT_INC="$QT_DEF -DQT3_SUPPORT -DQT_THREAD_SUPPORT -D_REENTRANT"
[case $host_os in
*freebsd4*) QT_LIB="$QT_LIB -pthread" ;;
*freebsd*) QT_LIB="$QT_LIB -lpthread" ;;
*freebsd*) QT_LIB="$QT_LIB -pthread" ;;
*mingw*) QT_INC="$QT_INC -mthreads"; QT_LDF="$QT_LDF -mthreads" ;;
esac]
QT_MTS="multi-threaded"
@ -226,7 +225,7 @@ case $host_os in
AC_MSG_CHECKING([for Qt library])
paths="$QTDIR_paths /usr/local/qt4/lib /usr/lib/qt4 /usr/lib/qt4/Qtconf /usr/lib \
/usr/X11R6/lib/X11/qt4 /usr/X11R6/lib/X11/qt4 /usr/X11R6/lib/qt4 \
/usr/X11R6/lib /sw/lib /usr/lib64/qt4 /usr/X11R6/lib/qt4 $prefix/lib/qt4"
/usr/X11R6/lib /sw/lib /usr/lib64/qt4 /usr/X11R6/lib/qt4 /usr/local/lib/qt4"
AC_LANG(C++)
for path in $paths; do
save_LIBS="$LIBS"

View File

@ -2,7 +2,7 @@
install-data-local:
$(MKDIR_P) $(DESTDIR)$(datadir)/qucs/docs/examples
if [[ ! -d examples ]] ; then $(MKDIR_P) examples; echo -e "This distribution contains no examples, please copy them manually from the qucs git repository:\ngit clone git://git.code.sf.net/p/qucs/git qucs">examples/README; fi
if [ ! -d examples ] ; then $(MKDIR_P) examples; echo -e "This distribution contains no examples, please copy them manually from the qucs git repository:\ngit clone git://git.code.sf.net/p/qucs/git qucs">examples/README; fi
for examplefile in examples/* ; do \
if test -f $$examplefile; then \
$(INSTALL_DATA) $$examplefile $(DESTDIR)$(datadir)/qucs/docs/$$examplefile; \