{ echo "configure: error: no" 1>&2; exit 1; }
fi
- GUI_TK_LINK="-lXm -lXmu -lXt -lXpm -lX11 -lm"
- GUI_TK_LINK="$CHECK_LINK $GUI_TK_LINK"
+ GUI_TK_LINK="-lXm -lXpm -lXmu -lXt -lX11 -lm"
+ GUI_TK_LIBRARY="$CHECK_LIB $GUI_TK_LINK"
TOOLKIT=MOTIF
TOOLKIT_DEF="__WXMOTIF__ -D__LINUX__ -D__UNIX__"
WX_LINK=-lwx_motif2
+EXTRA_LINK=
+
WXDEBUG=
if test "$wxUSE_DEBUG_GDB" = 1 ; then
wxUSE_DEBUG_INFO=1
WXDEBUG="-g"
wxUSE_OPTIMISE=0
else
- WX_LINK="-s $WX_LINK"
+ EXTRA_LINK="-s $EXTRA_LINK"
fi
fi
fi
-EXTRA_LINK=
if test "$wxUSE_DMALLOC" = 1 ; then
EXTRA_LINK="$EXTRA_LINK -ldmalloc"
fi
echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
-echo "configure:6303: checking for main in -ldl" >&5
+echo "configure:6304: checking for main in -ldl" >&5
ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-ldl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6311 "configure"
+#line 6312 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
-echo "configure:6349: checking for pthread_create in -lpthread-0.7" >&5
+echo "configure:6350: checking for pthread_create in -lpthread-0.7" >&5
ac_lib_var=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lpthread-0.7 $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6357 "configure"
+#line 6358 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
pthread_create()
; return 0; }
EOF
-if { (eval echo configure:6368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
-echo "configure:6392: checking for sys/prctl.h" >&5
+echo "configure:6393: checking for sys/prctl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6397 "configure"
+#line 6398 "configure"
#include "confdefs.h"
#include <sys/prctl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:6403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6
-echo "configure:6428: checking for pthread_setcanceltype in -lpthread" >&5
+echo "configure:6429: checking for pthread_setcanceltype in -lpthread" >&5
ac_lib_var=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6436 "configure"
+#line 6437 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
pthread_setcanceltype()
; return 0; }
EOF
-if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo $ac_n "checking for printf in -lposix4""... $ac_c" 1>&6
-echo "configure:6483: checking for printf in -lposix4" >&5
+echo "configure:6484: checking for printf in -lposix4" >&5
ac_lib_var=`echo posix4'_'printf | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
ac_save_LIBS="$LIBS"
LIBS="-lposix4 $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6491 "configure"
+#line 6492 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
printf()
; return 0; }
EOF
-if { (eval echo configure:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:6503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@$(WXBASEDIR)/mkinstalldirs \
$(includedir)/wx \
$(includedir)/wx/gtk \
+ $(includedir)/wx/motif \
$(includedir)/wx/common \
$(includedir)/wx/generic \
$(includedir)/wx/protocol \
rm -f $(includedir)/wx/$$f ; \
$(INSTALL_DATA) $$f $(includedir)/wx/$$f ; \
done
- @echo " Copying headers from /include/wx/gtk"
- @cd $(WXBASEDIR)/include/wx/gtk ; \
- $(INSTALL) -d $(includedir)/wx/gtk ; \
- for f in *.h ; do \
- rm -f $(includedir)/wx/gtk/$$f ; \
- $(INSTALL_DATA) $$f $(includedir)/wx/gtk/$$f ; \
- done
+ @if test "@TOOLKIT@" = "GTK" ; then \
+ echo " Copying headers from /include/wx/gtk" ; \
+ cd $(WXBASEDIR)/include/wx/gtk ; \
+ $(INSTALL) -d $(includedir)/wx/gtk ; \
+ for f in *.h ; do \
+ rm -f $(includedir)/wx/gtk/$$f ; \
+ $(INSTALL_DATA) $$f $(includedir)/wx/gtk/$$f ; \
+ done ; \
+ fi
+ @if test "@TOOLKIT@" = "MOTIF" ; then \
+ echo " Copying headers from /include/wx/motif" ; \
+ cd $(WXBASEDIR)/include/wx/motif ; \
+ $(INSTALL) -d $(includedir)/wx/motif ; \
+ for f in *.h ; do \
+ rm -f $(includedir)/wx/motif/$$f ; \
+ $(INSTALL_DATA) $$f $(includedir)/wx/motif/$$f ; \
+ done ; \
+ fi
@echo " Copying headers from /include/wx/generic"
@cd $(WXBASEDIR)/include/wx/generic ; \
$(INSTALL) -d $(includedir)/wx/generic ; \
$(INSTALL_DATA) $$f $(includedir)/wx/protocol/$$f ; \
done
@echo " Moving setup.h to library path"
- @cd $(WXBASEDIR)/src ; \
- $(INSTALL) -d $(libdir)/wx/include/wx/gtk ;\
- mv $(includedir)/wx/gtk/setup.h $(libdir)/wx/include/wx/gtk/setup.h ;
+ @if test "@TOOLKIT@" = "GTK" ; then \
+ cd $(WXBASEDIR)/src ; \
+ $(INSTALL) -d $(libdir)/wx/include/wx/gtk ; \
+ mv $(includedir)/wx/gtk/setup.h $(libdir)/wx/include/wx/gtk/setup.h ; \
+ fi
+ @echo " Moving setup.h to library path"
+ @if test "@TOOLKIT@" = "MOTIF" ; then \
+ cd $(WXBASEDIR)/src ; \
+ $(INSTALL) -d $(libdir)/wx/include/wx/motif ; \
+ mv $(includedir)/wx/motif/setup.h $(libdir)/wx/include/wx/motif/setup.h ; \
+ fi
@echo " Copying wx-config"
@cd $(WXBASEDIR)/src ; \
$(INSTALL) -d $(bindir) ; \