--- libltdl/config/ltmain.m4sh.old 2005-10-15 16:26:35.000000000 -0700 +++ libltdl/config/ltmain.m4sh 2005-10-17 21:26:09.785056333 -0700 @@ -2612,6 +2612,15 @@ # Rhapsody C and math libraries are in the System framework deplibs="$deplibs System.ltframework" continue + ;; + *-*-sco3.2v5*) + # Causes problems with __ctype + test "X$arg" = "X-lc" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # cc / CC insert libc in correct order for threads to work + test "X$arg" = "X-lc" && continue + ;; esac elif test "X$arg" = "X-lc_r"; then case $host in