On 14-Mar-2000 Petter Reinholdtsen wrote:
> 
> What is the easiest way to get the current platforms DLL name ending?
> I want a string containing .so on Linux .sl on HP/UX and .dll on OS/2.
> 
> I tried reading ltmain.sh, ltconfig and libtool without discovering
> any method to get this information.

 Try this:

  ./libtool --config > conftest
  . ./conftest
  rm -f conftest
  last=
  for spec in $library_names_spec; do
    last="$spec"
  done
  shlibext=`echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//'`

Thomas Tanner -------------------------
email: tanner@(ffii.org|gnu.org|gmx.de)
web:   http://home.pages.de/~tanner/
UMI:   http://umi.ffii.org/

Reply via email to