OLD | NEW |
1 # lib-link.m4 serial 4 (gettext-0.12) | 1 # lib-link.m4 serial 4 (gettext-0.12) |
2 dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. | 2 dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. |
3 dnl This file is free software, distributed under the terms of the GNU | 3 dnl This file is free software, distributed under the terms of the GNU |
4 dnl General Public License. As a special exception to the GNU General | 4 dnl General Public License. As a special exception to the GNU General |
5 dnl Public License, this file may be distributed as part of a program | 5 dnl Public License, this file may be distributed as part of a program |
6 dnl that contains a configuration script generated by Autoconf, under | 6 dnl that contains a configuration script generated by Autoconf, under |
7 dnl the same distribution terms as the rest of that program. | 7 dnl the same distribution terms as the rest of that program. |
8 | 8 |
9 dnl From Bruno Haible. | 9 dnl From Bruno Haible. |
10 | 10 |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 dnl 1. if it's the standard /usr/include, | 343 dnl 1. if it's the standard /usr/include, |
344 dnl 2. if it's /usr/local/include and we are using GCC on Linux, | 344 dnl 2. if it's /usr/local/include and we are using GCC on Linux, |
345 dnl 3. if it's already present in $CPPFLAGS or the already | 345 dnl 3. if it's already present in $CPPFLAGS or the already |
346 dnl constructed $INCNAME, | 346 dnl constructed $INCNAME, |
347 dnl 4. if it doesn't exist as a directory. | 347 dnl 4. if it doesn't exist as a directory. |
348 if test "X$additional_includedir" != "X/usr/include"; then | 348 if test "X$additional_includedir" != "X/usr/include"; then |
349 haveit= | 349 haveit= |
350 if test "X$additional_includedir" = "X/usr/local/include"; then | 350 if test "X$additional_includedir" = "X/usr/local/include"; then |
351 if test -n "$GCC"; then | 351 if test -n "$GCC"; then |
352 case $host_os in | 352 case $host_os in |
353 linux*) haveit=yes;; | 353 linux* | nacl*) haveit=yes;; |
354 esac | 354 esac |
355 fi | 355 fi |
356 fi | 356 fi |
357 if test -z "$haveit"; then | 357 if test -z "$haveit"; then |
358 for x in $CPPFLAGS $INC[]NAME; do | 358 for x in $CPPFLAGS $INC[]NAME; do |
359 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | 359 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
360 if test "X$x" = "X-I$additional_includedir"; then | 360 if test "X$x" = "X-I$additional_includedir"; then |
361 haveit=yes | 361 haveit=yes |
362 break | 362 break |
363 fi | 363 fi |
(...skipping 28 matching lines...) Expand all Loading... |
392 dnl 1. if it's the standard /usr/lib, | 392 dnl 1. if it's the standard /usr/lib, |
393 dnl 2. if it's /usr/local/lib and we are using GCC on Linu
x, | 393 dnl 2. if it's /usr/local/lib and we are using GCC on Linu
x, |
394 dnl 3. if it's already present in $LDFLAGS or the already | 394 dnl 3. if it's already present in $LDFLAGS or the already |
395 dnl constructed $LIBNAME, | 395 dnl constructed $LIBNAME, |
396 dnl 4. if it doesn't exist as a directory. | 396 dnl 4. if it doesn't exist as a directory. |
397 if test "X$additional_libdir" != "X/usr/lib"; then | 397 if test "X$additional_libdir" != "X/usr/lib"; then |
398 haveit= | 398 haveit= |
399 if test "X$additional_libdir" = "X/usr/local/lib"; then | 399 if test "X$additional_libdir" = "X/usr/local/lib"; then |
400 if test -n "$GCC"; then | 400 if test -n "$GCC"; then |
401 case $host_os in | 401 case $host_os in |
402 linux*) haveit=yes;; | 402 linux* | nacl*) haveit=yes;; |
403 esac | 403 esac |
404 fi | 404 fi |
405 fi | 405 fi |
406 if test -z "$haveit"; then | 406 if test -z "$haveit"; then |
407 haveit= | 407 haveit= |
408 for x in $LDFLAGS $LIB[]NAME; do | 408 for x in $LDFLAGS $LIB[]NAME; do |
409 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | 409 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
410 if test "X$x" = "X-L$additional_libdir"; then | 410 if test "X$x" = "X-L$additional_libdir"; then |
411 haveit=yes | 411 haveit=yes |
412 break | 412 break |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 if test "X$x" = "X$element"; then | 542 if test "X$x" = "X$element"; then |
543 haveit=yes | 543 haveit=yes |
544 break | 544 break |
545 fi | 545 fi |
546 done | 546 done |
547 if test -z "$haveit"; then | 547 if test -z "$haveit"; then |
548 [$1]="${[$1]}${[$1]:+ }$element" | 548 [$1]="${[$1]}${[$1]:+ }$element" |
549 fi | 549 fi |
550 done | 550 done |
551 ]) | 551 ]) |
OLD | NEW |