patches/ppl/0.10.2/100-update-for-mingw-build.patch
author Remy Bohmer <linux@bohmer.net>
Sun Jul 11 22:23:34 2010 +0200 (2010-07-11)
changeset 2021 3e52a1510f87
permissions -rw-r--r--
debug/gdb: Fix compilation for Mingw hosts

GDB requires PDcurses instead of ncurses while running on Windows.
So, do not always compile ncurses in case GDB needs to build.

PDcurses is provided by an earlier build step and is not described in
this file.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
[yann.morin.1998@anciense.nib.fr: we already have a way to detect ncurses usage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 --- ppl-0.10.2/configure	2010-03-19 07:44:26.000000000 +0100
     2 +++ ppl-0.10.2-new/configure	2010-03-19 19:25:02.000000000 +0100
     3 @@ -15603,11 +15603,12 @@
     4                  found_la="$additional_libdir/lib$name.la"
     5                fi
     6              else
     7 -              if test -f "$additional_libdir/lib$name.$libext"; then
     8 +              post=${shlibext:+.${shlibext}}
     9 +              if test -f "$additional_libdir/lib$name$post.$libext"; then
    10                  found_dir="$additional_libdir"
    11 -                found_a="$additional_libdir/lib$name.$libext"
    12 -                if test -f "$additional_libdir/lib$name.la"; then
    13 -                  found_la="$additional_libdir/lib$name.la"
    14 +                found_a="$additional_libdir/lib$name$post.$libext"
    15 +                if test -f "$additional_libdir/lib$name$post.la"; then
    16 +                  found_la="$additional_libdir/lib$name$post.la"
    17                  fi
    18                fi
    19              fi