X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=configure;h=7d91eafe89ca64ad39b659c89896090e27acce36;hb=refs%2Ftags%2Fv5.1.1;hp=24b3fba32c64137fe69ebf5f561c566668d4d88c;hpb=f7ee98f7d964ed361068179f0e7ea4475ed1abdf;p=ctsim.git diff --git a/configure b/configure index 24b3fba..7d91eaf 100755 --- a/configure +++ b/configure @@ -2800,7 +2800,7 @@ fi # Define the identity of the package. PACKAGE=ctsim - VERSION=5.0.0 + VERSION=5.1.1 cat >>confdefs.h <<_ACEOF @@ -2945,9 +2945,6 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" -CFLAGS="" -CXXFLAGS="" - for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. @@ -5572,13 +5569,59 @@ else fi wxwin=false +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5 +$as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; } +if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgtk-x11-2.0 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gtk_x11_2_0_main=yes +else + ac_cv_lib_gtk_x11_2_0_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5 +$as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; } +if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then : + hasx11gtk2=true +fi + +if test "x$hasx11gtk2" = "x" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5 +$as_echo "$as_me: Does not have X11 GTK2" >&6;} + + +fi +if test "$hasx11gtk2" = "true" ; then + + + CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; } if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread` $LIBS" +LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5608,13 +5651,13 @@ $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac-2.8" >&5 -$as_echo_n "checking for main in -lwx_mac-2.8... " >&6; } -if test "${ac_cv_lib_wx_mac_2_8_main+set}" = set; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5 +$as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; } +if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lwx_mac-2.8 $LIBS" +LIBS="-lwx_mac_core-2.8 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5628,17 +5671,17 @@ return main (); } _ACEOF if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_wx_mac_2_8_main=yes + ac_cv_lib_wx_mac_core_2_8_main=yes else - ac_cv_lib_wx_mac_2_8_main=no + ac_cv_lib_wx_mac_core_2_8_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_2_8_main" >&5 -$as_echo "$ac_cv_lib_wx_mac_2_8_main" >&6; } -if test "x$ac_cv_lib_wx_mac_2_8_main" = x""yes; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5 +$as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; } +if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then : wxwin=true; wx_mac=true; $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h @@ -5768,7 +5811,7 @@ if test "${ac_cv_lib_png_main+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpng -lz -lm $LIBS" +LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6211,7 +6254,7 @@ if test "$datadir" != "" ; then fi if test "$debug" = "true" ; then - CFLAGS="$CFLAGS -g -DDEBUG" + CFLAGS="$CFLAGS -g -O0 -DDEBUG" $as_echo "#define DEBUG 1" >>confdefs.h @@ -6428,18 +6471,18 @@ if test "${with_html_dir+set}" = set; then : fi -if test -n "$cgibindir" -o -n "$cgibinurl" ; then +if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then cgiprograms="ctsim.cgi ctsim.conf" fi -if test -n "$html_dir" ; then +if test "x$html_dir" = "x" ; then htmldata=simulate.html fi -if test -n "$html_dir"; then +if test "x$html_dir" = "x"; then USE_HTML_TRUE= USE_HTML_FALSE='#' else @@ -6448,20 +6491,20 @@ else fi -if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$html_dir" ; then +if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then webenabled=true { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - if test -z "$cgibindir" ; then + if test "x$cgibindir" = "x" ; then as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5 - elif test -z "$cgibinurl" ; then + elif test "x$cgibinurl" = "x" ; then as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5 - elif test -z "$webdatadir" ; then + elif test "x$webdatadir" = "x" ; then as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5 - elif test -z "$webdataurl" ; then + elif test "x$webdataurl" = "x" ; then as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5 - elif test -z "$html_dir" ; then + elif test "x$html_dir" = "x" ; then as_fn_error "--with-html-dir not set for web access" "$LINENO" 5 fi else @@ -6471,7 +6514,7 @@ fi -if test -n "$lamdir"; then +if test "x$lamdir" != "x"; then USE_LAM_TRUE= USE_LAM_FALSE='#' else @@ -7206,10 +7249,10 @@ $as_echo "yes" >&6; } if test "$debug" = "true"; then wxdebug="--debug" fi - if "$wx_gtk" ; then - ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --libs --version=2.8` -lwx_gtk2u_gl-2.8 `gtk-config --libs` `glib-config --libs glib gmodule gthread`" - elif "$wx_mac" ; then - ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.8" + if test "x$wx_gtk" != "x" ; then + ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}" + elif test "x$wx_mac" != "x" ; then + ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl`" fi fi fi @@ -7384,7 +7427,7 @@ $as_echo "Using efence" >&6; } fi if test "$wxwin" = "true" ; then - if "$wx_gtk" = "true" || "$wx_mac" = "true" ; then + if test "$wx_gtk" = "true" -o "$wx_mac" = "true" ; then wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8` #wxlibs=`$wxconfig --libs` else @@ -7411,7 +7454,7 @@ LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim" ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools" -if test -n "$lamdir" ; then +if test "x$lamdir" != "x" ; then lamprograms="ctsimtext-lam" lamdefs="$CFLAGS"