I'm not flaming anyone. I'm stating a fact: this configure platform you all
are using is broken.
It allows to specify the location of tcl/tk. I've done that; both using
variables passed in, and by manually editing the makefile itself. Neither
of these solutions have worked, so now you require editing configure?
Configure produces a makefile. If I edit that very makefile, and to no
avail.
On Wed, Oct 16, 2013 at 3:05 PM, Ben St-Pierre <benbon...@gmail.com> wrote:
> Thank you, Jai Dayal.
>
> Now, how would any competent programmer presumably like you would solve
> this problem?
>
> More precisely, here's the relevant bit from the makefile.conf:
>
> # TCL_INCLUDE, TCL_LIBRARY, TK_LIBRARY: these are the compiler options
> # needed for linking Scid with Tcl/Tk. The program "./configure"
> # will try to determine them automatically, but if it cannot, you
> # can use the examples below for help in setting these variables.
> #
> # @CONFIG_RESULT@
> #
> TCL_INCLUDE = @TCL_INCLUDE@
> TCL_LIBRARY = @TCL_LIBRARY@
> TK_LIBRARY = @TK_LIBRARY@
>
> ### Here are other commonly used settings for the Tcl/Tk compiler options:
>
> ### Linux (Red Hat and other distributions):
> # TCL_INCLUDE = -I /usr/include
> # TCL_LIBRARY = -L /usr/lib -ltcl$(TCL_VERSION) -ldl
> # TK_LIBRARY = $(TCL_LIBRARY) -ltk$(TCL_VERSION) -L /usr/X11R6/lib -lX11
>
> ### Solaris:
> # TCL_INCLUDE = -I /usr/local/tcl/include
> # TCL_LIBRARY = -L /usr/local/tcl/lib -ltcl$(TCL_VERSION) -ldl
> # TK_LIBRARY = $(TCL_LIBRARY) -ltk$(TCL_VERSION)
>
> # Someone sent me these settings for SuSE Linux 6.1:
> ### Linux (SuSE distribution):
> # TCL_INCLUDE = -I /usr/X11R6/include
> # TCL_LIBRARY = -L /usr/lib -ltcl$(TCL_VERSION) -ldl
> # TK_LIBRARY = $(TCL_LIBRARY) -L /usr/X11R6/lib -ltk$(TCL_VERSION) -lX11
>
> # Someone sent me these settings for FreeBSD with Tcl/Tk 8.0:
> ### FreeBSD:
> # TCL_INCLUDE = -I /usr/local/include/tcl8.0 -I /usr/local/include/tk8.0
> # TCL_LIBRARY = -L /usr/local/lib -ltcl80 -ldl
> # TK_LIBRARY = $(TCL_LIBRARY) -ltk80 -L /usr/X11/lib -lX11
> TCL_INCLUDE = @TCL_INCLUDE@
> TCL_LIBRARY = @TCL_LIBRARY@
> TK_LIBRARY = @TK_LIBRARY@
>
> ### Here are other commonly used settings for the Tcl/Tk compiler options:
>
> ### Linux (Red Hat and other distributions):
> # TCL_INCLUDE = -I /usr/include
> # TCL_LIBRARY = -L /usr/lib -ltcl$(TCL_VERSION) -ldl
> # TK_LIBRARY = $(TCL_LIBRARY) -ltk$(TCL_VERSION) -L /usr/X11R6/lib -lX11
>
> ### Solaris:
> # TCL_INCLUDE = -I /usr/local/tcl/include
> # TCL_LIBRARY = -L /usr/local/tcl/lib -ltcl$(TCL_VERSION) -ldl
> # TK_LIBRARY = $(TCL_LIBRARY) -ltk$(TCL_VERSION)
>
> # Someone sent me these settings for SuSE Linux 6.1:
> ### Linux (SuSE distribution):
> # TCL_INCLUDE = -I /usr/X11R6/include
> # TCL_LIBRARY = -L /usr/lib -ltcl$(TCL_VERSION) -ldl
> # TK_LIBRARY = $(TCL_LIBRARY) -L /usr/X11R6/lib -ltk$(TCL_VERSION) -lX11
>
> # Someone sent me these settings for FreeBSD with Tcl/Tk 8.0:
> ### FreeBSD:
> # TCL_INCLUDE = -I /usr/local/include/tcl8.0 -I /usr/local/include/tk8.0
> # TCL_LIBRARY = -L /usr/local/lib -ltcl80 -ldl
> # TK_LIBRARY = $(TCL_LIBRARY) -ltk80 -L /usr/X11/lib -lX11
>
> What would be the settings for your own Linux flavour?
>
> ***
>
> Then, any competent programmer like you should be able to update the
> configure script:
>
> # This program tries to determine system-specific details needed
> # for compiling Scid (such as the version of Tcl/Tk you have
> # installed, and where to find the Tcl/Tk header and library
> # files), and creates the file "Makefile".
>
>
> # Try to find the most recent version of Tcl/Tk 8.x that is installed,
> # by searching the PATH directories for tclsh8.3, tclsh83, etc. If no
> # tclsh program with a version number in the file name is found, the
> # default program to execute is just tclsh.
> # The backslashes at the end of these lines are needed: \
> # tclsh=tclsh8.5;
>
> # This shell script code did not work for me in Linux so it is
> # commented out for now; the configure script will just run in
> # tclsh even if there is a more recent version.
> ## for tclver in 80 8.0 81 8.1 82 8.2 83 8.3 84 8.4 85 8.5; do \
> ## IFS=:; \
> ## for dir in $PATH; do \
> ## if [ -x $dir/tclsh$tclver ]; then tclsh=$dir/tclsh$tclver; fi; \
> ## done; \
> ## done
>
> # Now execute this script using the best tclsh version found:
> # The backslash at the end of this line is needed: \
> exec tclsh "$0" ${1+"$@"}
>
> ***
>
> Alternatively, there's of course the possibility to teach us how to
> automatize all this with Autoconf.
>
> I'm sure any competent programmer should be able to produce a robust
> solution in a few minutes.
>
> ***
>
> On a personal note, I have no idea why a newly minted PHDs would flame
> anyone on a mailing list.
>
> Mailing lists might survive many nuclear winters.
>
>
>
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users