~ubuntu-branches/ubuntu/vivid/winefish/vivid

« back to all changes in this revision

Viewing changes to config.rpath

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-03-14 12:33:14 UTC
  • Revision ID: james.westby@ubuntu.com-20070314123314-00iot72gb8zp3qvp
Tags: 1.3.3-0dl1ubuntu1
Added texlive option to Depends. (LP: #90807)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Output a system dependent set of variables, describing how to set the
3
3
# run time search path of shared libraries in an executable.
4
4
#
5
 
#   Copyright 1996-2005 Free Software Foundation, Inc.
 
5
#   Copyright 1996-2006 Free Software Foundation, Inc.
6
6
#   Taken from GNU libtool, 2001
7
7
#   Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8
8
#
25
25
#   known workaround is to choose shorter directory names for the build
26
26
#   directory and/or the installation directory.
27
27
 
28
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
28
# All known linkers require a `.a' archive for static linking (except MSVC,
29
29
# which needs '.lib').
30
30
libext=a
31
31
shrext=.so
35
35
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
36
36
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
37
37
 
38
 
cc_basename=`echo "$CC" | sed -e 's%^.*/%%'`
 
38
# Code taken from libtool.m4's _LT_CC_BASENAME.
 
39
 
 
40
for cc_temp in $CC""; do
 
41
  case $cc_temp in
 
42
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
43
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
44
    \-*) ;;
 
45
    *) break;;
 
46
  esac
 
47
done
 
48
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
39
49
 
40
50
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
41
51
 
48
58
      wl='-Wl,'
49
59
      ;;
50
60
    darwin*)
51
 
      case "$cc_basename" in
 
61
      case $cc_basename in
52
62
        xlc*)
53
63
          wl='-Wl,'
54
64
          ;;
78
88
        como)
79
89
          wl='-lopt='
80
90
          ;;
 
91
        *)
 
92
          case `$CC -V 2>&1 | sed 5q` in
 
93
            *Sun\ C*)
 
94
              wl='-Wl,'
 
95
              ;;
 
96
          esac
 
97
          ;;
81
98
      esac
82
99
      ;;
83
100
    osf3* | osf4* | osf5*)
120
137
      with_gnu_ld=no
121
138
    fi
122
139
    ;;
 
140
  interix*)
 
141
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
142
    with_gnu_ld=yes
 
143
    ;;
123
144
  openbsd*)
124
145
    with_gnu_ld=no
125
146
    ;;
127
148
 
128
149
ld_shlibs=yes
129
150
if test "$with_gnu_ld" = yes; then
 
151
  # Set some defaults for GNU ld with shared library support. These
 
152
  # are reset later if shared libraries are not supported. Putting them
 
153
  # here allows them to be overridden if necessary.
 
154
  # Unlike libtool, we use -rpath here, not --rpath, since the documented
 
155
  # option of GNU ld is called -rpath, not --rpath.
 
156
  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
130
157
  case "$host_os" in
131
158
    aix3* | aix4* | aix5*)
132
159
      # On AIX/PPC, the GNU linker is very broken
162
189
        ld_shlibs=no
163
190
      fi
164
191
      ;;
 
192
    interix3*)
 
193
      hardcode_direct=no
 
194
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
195
      ;;
 
196
    linux*)
 
197
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
198
        :
 
199
      else
 
200
        ld_shlibs=no
 
201
      fi
 
202
      ;;
165
203
    netbsd*)
166
204
      ;;
167
 
    solaris* | sysv5*)
 
205
    solaris*)
168
206
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
169
207
        ld_shlibs=no
170
208
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
173
211
        ld_shlibs=no
174
212
      fi
175
213
      ;;
 
214
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
215
      case `$LD -v 2>&1` in
 
216
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
217
          ld_shlibs=no
 
218
          ;;
 
219
        *)
 
220
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
221
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
222
          else
 
223
            ld_shlibs=no
 
224
          fi
 
225
          ;;
 
226
      esac
 
227
      ;;
176
228
    sunos4*)
177
229
      hardcode_direct=yes
178
230
      ;;
179
 
    linux*)
180
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
181
 
        :
182
 
      else
183
 
        ld_shlibs=no
184
 
      fi
185
 
      ;;
186
231
    *)
187
232
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
188
233
        :
191
236
      fi
192
237
      ;;
193
238
  esac
194
 
  if test "$ld_shlibs" = yes; then
195
 
    # Unlike libtool, we use -rpath here, not --rpath, since the documented
196
 
    # option of GNU ld is called -rpath, not --rpath.
197
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
239
  if test "$ld_shlibs" = no; then
 
240
    hardcode_libdir_flag_spec=
198
241
  fi
199
242
else
200
243
  case "$host_os" in
225
268
              break
226
269
            fi
227
270
          done
 
271
          ;;
228
272
        esac
229
273
      fi
230
274
      hardcode_direct=yes
244
288
            hardcode_libdir_flag_spec='-L$libdir'
245
289
            hardcode_libdir_separator=
246
290
          fi
 
291
          ;;
247
292
        esac
248
293
      fi
249
294
      # Begin _LT_AC_SYS_LIBPATH_AIX.
291
336
      if test "$GCC" = yes ; then
292
337
        :
293
338
      else
294
 
        case "$cc_basename" in
 
339
        case $cc_basename in
295
340
          xlc*)
296
341
            ;;
297
342
          *)
326
371
      # but as the default location of the library.
327
372
      hardcode_minus_L=yes
328
373
      ;;
329
 
    hpux10* | hpux11*)
330
 
      if test "$with_gnu_ld" = no; then
331
 
        case "$host_cpu" in
332
 
          hppa*64*)
333
 
            hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
334
 
            hardcode_libdir_separator=:
335
 
            hardcode_direct=no
336
 
            ;;
337
 
          ia64*)
338
 
            hardcode_libdir_flag_spec='-L$libdir'
339
 
            hardcode_direct=no
340
 
            # hardcode_minus_L: Not really in the search PATH,
341
 
            # but as the default location of the library.
342
 
            hardcode_minus_L=yes
 
374
    hpux10*)
 
375
      if test "$with_gnu_ld" = no; then
 
376
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
377
        hardcode_libdir_separator=:
 
378
        hardcode_direct=yes
 
379
        # hardcode_minus_L: Not really in the search PATH,
 
380
        # but as the default location of the library.
 
381
        hardcode_minus_L=yes
 
382
      fi
 
383
      ;;
 
384
    hpux11*)
 
385
      if test "$with_gnu_ld" = no; then
 
386
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
387
        hardcode_libdir_separator=:
 
388
        case $host_cpu in
 
389
          hppa*64*|ia64*)
 
390
            hardcode_direct=no
343
391
            ;;
344
392
          *)
345
 
            hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
346
 
            hardcode_libdir_separator=:
347
393
            hardcode_direct=yes
348
394
            # hardcode_minus_L: Not really in the search PATH,
349
395
            # but as the default location of the library.
397
443
      fi
398
444
      hardcode_libdir_separator=:
399
445
      ;;
400
 
    sco3.2v5*)
401
 
      ;;
402
446
    solaris*)
403
447
      hardcode_libdir_flag_spec='-R$libdir'
404
448
      ;;
427
471
        ld_shlibs=yes
428
472
      fi
429
473
      ;;
430
 
    sysv4.2uw2*)
431
 
      hardcode_direct=yes
432
 
      hardcode_minus_L=no
433
 
      ;;
434
 
    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
435
 
      ;;
436
 
    sysv5*)
437
 
      hardcode_libdir_flag_spec=
 
474
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
475
      ;;
 
476
    sysv5* | sco3.2v5* | sco5v6*)
 
477
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
478
      hardcode_libdir_separator=':'
438
479
      ;;
439
480
    uts4*)
440
481
      hardcode_libdir_flag_spec='-L$libdir'
471
512
    ;;
472
513
  kfreebsd*-gnu)
473
514
    ;;
474
 
  freebsd*)
 
515
  freebsd* | dragonfly*)
475
516
    ;;
476
517
  gnu*)
477
518
    ;;
478
519
  hpux9* | hpux10* | hpux11*)
479
 
    case "$host_cpu" in
 
520
    case $host_cpu in
480
521
      ia64*)
481
522
        shrext=.so
482
523
        ;;
488
529
        ;;
489
530
    esac
490
531
    ;;
 
532
  interix3*)
 
533
    ;;
491
534
  irix5* | irix6* | nonstopux*)
492
535
    case "$host_os" in
493
536
      irix5* | nonstopux*)
523
566
    ;;
524
567
  osf3* | osf4* | osf5*)
525
568
    ;;
526
 
  sco3.2v5*)
527
 
    ;;
528
569
  solaris*)
529
570
    ;;
530
571
  sunos4*)
531
572
    ;;
532
 
  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
573
  sysv4 | sysv4.3*)
533
574
    ;;
534
575
  sysv4*MP*)
535
576
    ;;
 
577
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
578
    ;;
536
579
  uts4*)
537
580
    ;;
538
581
esac