source: freewrt/package/glib/patches/02-cross-compile-fix.patch@ 475ad56

freewrt_1_0 freewrt_2_0
Last change on this file since 475ad56 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 8.0 KB
  • glib-1.2.10

    diff -urN glib-1.2.10.old/configure glib-1.2.10/configure
    old new  
    60256025glib_save_LIBS=$LIBS
    60266026LIBS="$LIBS -lm"
    60276027if test "$cross_compiling" = yes; then
    6028     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6028    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    60296029else
    60306030  cat > conftest.$ac_ext <<EOF
    60316031#line 6032 "configure"
     
    60436043  glib_save_CFLAGS=$CFLAGS
    60446044     CFLAGS="$CFLAGS -std1"
    60456045     if test "$cross_compiling" = yes; then
    6046     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6046    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    60476047else
    60486048  cat > conftest.$ac_ext <<EOF
    60496049#line 6050 "configure"
     
    63906390  echo $ac_n "(cached) $ac_c" 1>&6
    63916391else
    63926392  if test "$cross_compiling" = yes; then
    6393     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6393    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    63946394else
    63956395  cat > conftest.$ac_ext <<EOF
    63966396#line 6397 "configure"
     
    64306430  echo $ac_n "(cached) $ac_c" 1>&6
    64316431else
    64326432  if test "$cross_compiling" = yes; then
    6433     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6433    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    64346434else
    64356435  cat > conftest.$ac_ext <<EOF
    64366436#line 6437 "configure"
     
    64706470  echo $ac_n "(cached) $ac_c" 1>&6
    64716471else
    64726472  if test "$cross_compiling" = yes; then
    6473     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6473    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    64746474else
    64756475  cat > conftest.$ac_ext <<EOF
    64766476#line 6477 "configure"
     
    65106510  echo $ac_n "(cached) $ac_c" 1>&6
    65116511else
    65126512  if test "$cross_compiling" = yes; then
    6513     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6513    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    65146514else
    65156515  cat > conftest.$ac_ext <<EOF
    65166516#line 6517 "configure"
     
    65506550  echo $ac_n "(cached) $ac_c" 1>&6
    65516551else
    65526552  if test "$cross_compiling" = yes; then
    6553     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6553    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    65546554else
    65556555  cat > conftest.$ac_ext <<EOF
    65566556#line 6557 "configure"
     
    65906590  echo $ac_n "(cached) $ac_c" 1>&6
    65916591else
    65926592  if test "$cross_compiling" = yes; then
    6593     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6593    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    65946594else
    65956595  cat > conftest.$ac_ext <<EOF
    65966596#line 6597 "configure"
     
    67086708else
    67096709 
    67106710        if test "$cross_compiling" = yes; then
    6711     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6711    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    67126712else
    67136713  cat > conftest.$ac_ext <<EOF
    67146714#line 6715 "configure"
     
    67496749else
    67506750 
    67516751        if test "$cross_compiling" = yes; then
    6752     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6752    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    67536753else
    67546754  cat > conftest.$ac_ext <<EOF
    67556755#line 6756 "configure"
     
    67906790else
    67916791 
    67926792        if test "$cross_compiling" = yes; then
    6793     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6793    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    67946794else
    67956795  cat > conftest.$ac_ext <<EOF
    67966796#line 6797 "configure"
     
    68766876rm -f conftest*
    68776877if test $ac_cv_c_bigendian = unknown; then
    68786878if test "$cross_compiling" = yes; then
    6879     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     6879    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    68806880else
    68816881  cat > conftest.$ac_ext <<EOF
    68826882#line 6883 "configure"
     
    77677767else
    77687768 
    77697769        if test "$cross_compiling" = yes; then
    7770     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     7770    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    77717771else
    77727772  cat > conftest.$ac_ext <<EOF
    77737773#line 7774 "configure"
     
    78097809else
    78107810 
    78117811        if test "$cross_compiling" = yes; then
    7812     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     7812    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    78137813else
    78147814  cat > conftest.$ac_ext <<EOF
    78157815#line 7816 "configure"
     
    78547854else
    78557855 
    78567856        if test "$cross_compiling" = yes; then
    7857     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     7857    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    78587858else
    78597859  cat > conftest.$ac_ext <<EOF
    78607860#line 7861 "configure"
     
    78997899else
    79007900 
    79017901        if test "$cross_compiling" = yes; then
    7902     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     7902    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    79037903else
    79047904  cat > conftest.$ac_ext <<EOF
    79057905#line 7906 "configure"
     
    82548254else
    82558255 
    82568256                if test "$cross_compiling" = yes; then
    8257     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     8257    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    82588258else
    82598259  cat > conftest.$ac_ext <<EOF
    82608260#line 8261 "configure"
     
    83068306else
    83078307 
    83088308                if test "$cross_compiling" = yes; then
    8309     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     8309    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    83108310else
    83118311  cat > conftest.$ac_ext <<EOF
    83128312#line 8313 "configure"
     
    91379137  echo $ac_n "(cached) $ac_c" 1>&6
    91389138else
    91399139  if test "$cross_compiling" = yes; then
    9140     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     9140    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    91419141else
    91429142  cat > conftest.$ac_ext <<EOF
    91439143#line 9144 "configure"
     
    92379237echo "configure:9238: checking whether pthread_mutex_trylock is posix like" >&5
    92389238                # DCE Threads return 1 as success, posix 0. what a mess.
    92399239                if test "$cross_compiling" = yes; then
    9240     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     9240    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    92419241else
    92429242  cat > conftest.$ac_ext <<EOF
    92439243#line 9244 "configure"
     
    92679267echo "configure:9268: checking whether pthread_cond_timedwait is posix like" >&5
    92689268                # DCE Threads return -1 as failure, posix ETIMEDOUT.
    92699269                if test "$cross_compiling" = yes; then
    9270     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     9270    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    92719271else
    92729272  cat > conftest.$ac_ext <<EOF
    92739273#line 9274 "configure"
     
    93329332  echo $ac_n "(cached) $ac_c" 1>&6
    93339333else
    93349334  if test "$cross_compiling" = yes; then
    9335     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     9335    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    93369336else
    93379337  cat > conftest.$ac_ext <<EOF
    93389338#line 9339 "configure"
     
    94529452done
    94539453echo "return 0; }" >>confrun.c
    94549454if test "$cross_compiling" = yes; then
    9455     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     9455    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
    94569456else
    94579457  cat > conftest.$ac_ext <<EOF
    94589458#line 9459 "configure"
Note: See TracBrowser for help on using the repository browser.