(file) Return to configure CVS log (file) (dir) Up to [Pegasus] / pegasus

  1 karl  1.1 #!/bin/sh
  2           #set -x
  3           #//%LICENSE////////////////////////////////////////////////////////////////
  4           #//
  5           #// Licensed to The Open Group (TOG) under one or more contributor license
  6           #// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  7           #// this work for additional information regarding copyright ownership.
  8           #// Each contributor licenses this file to you under the OpenPegasus Open
  9           #// Source License; you may not use this file except in compliance with the
 10           #// License.
 11           #//
 12           #// Permission is hereby granted, free of charge, to any person obtaining a
 13           #// copy of this software and associated documentation files (the "Software"),
 14           #// to deal in the Software without restriction, including without limitation
 15           #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
 16           #// and/or sell copies of the Software, and to permit persons to whom the
 17           #// Software is furnished to do so, subject to the following conditions:
 18           #//
 19           #// The above copyright notice and this permission notice shall be included
 20           #// in all copies or substantial portions of the Software.
 21           #//
 22 karl  1.1 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 23           #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 24           #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 25           #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 26           #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 27           #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 28           #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29           #//
 30           #//////////////////////////////////////////////////////////////////////////
 31           
 32           ##==============================================================================
 33           ##
 34           ## Check for existence of pegasus config.mak. If this does not exist, it means
 35           ## that the distribution is incomplete or that the configure file has been run
 36           ## from the wrong directory.
 37           ##
 38           ##==============================================================================
 39           tiny=0
 40           prefix=""
 41           test_option=0
 42           disable_tests=0
 43 karl  1.1 disable_tests=0
 44           interop_name=""
 45           enable_pertinst=0
 46           dis_wsman=0
 47           config=mak/config.mak
 48           
 49           if [ ! -f "$config" ]; then
 50               echo "$0: Error: ./configure must be run from root of Pegasus distribution."
 51               echo
 52               exit 1
 53           fi
 54           
 55           ##==============================================================================
 56           ##
 57           ## Collection command line options.
 58           ##
 59           ##==============================================================================
 60           
 61           help=
 62           
 63           for opt
 64 karl  1.1 do
 65           
 66             optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
 67           
 68             case $opt in
 69           
 70               -h | --help)
 71                 help=1
 72                 ;;
 73           
 74               --prefix=*)
 75                 prefix=$optarg
 76                 ;;
 77           
 78               --test)
 79                 test_option=1
 80                 ;;
 81           
 82               --tiny)
 83                 tiny=1
 84                 disable_trace=1
 85 karl  1.1       disable_tests=1
 86                 interop_name=interop
 87                 enable_perinst=1
 88                 ;;
 89           
 90               --flavor=*)
 91                 flavor=$optarg
 92                 ;;
 93            
 94               --disable-wsman)
 95                 dis_wsman=1
 96                 ;;
 97           
 98               *)
 99                 echo "$0: unknown option:  $opt"
100                 exit 1
101                 ;;
102           
103             esac
104           done
105           
106 karl  1.1 ##==============================================================================
107           ##
108           ## Print help message if --help given on command line.
109           ##
110           ##==============================================================================
111           
112           if [ "$help" = "1" ]; then
113           cat<<END
114           
115           Usage: ./configure [OPTION]...
116           
117           Configures OpenPegasus build options.
118           
119           Configure examples.
120               $ ./configure
121               $ make
122           
123           Options:
124               --help
125                   Print this help message.
126               --prefix=DIR
127 karl  1.1         Install under DIR
128               --test
129                   Build with test options included.
130               --tiny
131                   Build tiny version of pegasus with support to SSL,SLP,ICU and PAM all disabled.
132               --flavor
133                   Building pegasus with the given flavor tag.
134           END
135           fi
136           
137           
138           
139           ##==============================================================================
140           ##
141           ## Guess the platform.
142           ##
143           ##==============================================================================
144           if [ "$help" != "1" ]; then
145           if [ -z "$platform" ]; then
146           
147             machine=`(uname -m) 2>/dev/null` || machine=unknown
148 karl  1.1   system=`(uname -s) 2>/dev/null`  || system=unknown
149             token="$machine:$system"
150           
151             case "$token" in
152           
153               i686:Linux)
154                 platform=LINUX_IX86_GNU
155                 libbase=lib
156                 ;;
157           
158               x86_64:Linux)
159                 platform=LINUX_X86_64_GNU
160                 libbase=lib64
161                 ;;
162           
163               sun*:SunOS)
164                 platform=SOLARIS_SPARC_64_CC
165                 libbase=lib/64
166                 ;;
167           
168               i86pc:SunOS)
169 karl  1.1       platform=SOLARIS_X86_64_CC
170                 libbase=lib/64
171                 ;;
172               
173               ia64:HP-UX)
174                 platform=HPUX_IA64_ACC
175                 libbase=lib/64
176                 ;;
177            
178               9000/800:HP-UX)
179                 platform=HPUX_PARISC_ACC
180                 libbase=lib
181                 ;;
182           
183               ia64:Linux)
184                 platform=LINUX_IA64_GNU
185                 libbase=lib/64
186                 ;;
187               
188               ppc:Linux)
189                 platform=LINUX_PPC_GNU
190 karl  1.1       libbase=lib
191                 ;;
192              
193               ppc64:Linux)
194                 platform=LINUX_PPC64_GNU
195                 libbase=lib/64
196                 ;;
197           
198               s390x:Linux)
199                 platform=LINUX_ZSERIES64_GNU
200                 libbase=lib/64
201                 ;;
202           
203               s390:Linux)
204                 platform=LINUX_ZSERIES_GNU
205                 libbase=lib/64
206                 ;;
207           
208           
209               *)
210                   
211 karl  1.1      unresolved=1
212                ;;
213           
214             esac
215           
216             if [ "unresolved" = "1" ]; then
217                 Machine=`(Uname -m) 2>/dev/null`||Machine=unknown
218                 System=`(Uname -s) 2>/dev/null`||System=unknown
219                 Token="$Machine:$System"  
220             
221           
222                 case "$Token" in
223           
224                 alpha:VMS)
225                    platform=VMS_ALPHA_DECCXX
226                    libbase=lib
227                    ;;
228           
229                 IA64:OpenVMS)
230                    platform=VMS_IA64_DECCXX
231                    libbase=lib/64
232 karl  1.1          ;;
233           
234                 *)
235                   echo "$0: Failed to guess platform"
236                   echo "  machine=$machine"
237                   echo "  system=$system"
238                   exit 1
239                   ;;
240              
241                 esac
242              fi
243           fi
244           
245           ##==============================================================================
246           ##
247           ## Resolve default directory names.
248           ##
249           ##==============================================================================
250           
251           # --prefix:
252           
253 karl  1.1 if [ -z "$prefix" ]; then
254             prefix=`pwd`
255           fi
256           
257           # --bindir:
258           
259           if [ -z "$bindir" ]; then
260             bindir=$prefix/bin
261           fi
262           
263           # --sbindir:
264           
265           if [ -z "$sbindir" ]; then
266             sbindir=$prefix/sbin
267           fi
268           
269           # --libdir:
270           
271           if [ -z "$libdir" ]; then
272             libdir=$prefix/$libbase
273           fi
274 karl  1.1 
275           # --includedir:
276           
277           if [ -z "$includedir" ]; then
278             includedir=$prefix/include
279           fi
280           
281           if [ -z "$with_pam" ]; then
282             with_pam=/etc/pam.d
283           fi
284           
285           ##=============================================================================
286           ##
287           ##Check for Pre-Requsite
288           ##
289           ##============================================================================
290           
291           path="$PATH"
292           IFS=":"
293           ccYes=0
294           missing=0
295 karl  1.1 cmdlist="cc:gcc:g++:make"
296           for cc in $cmdlist
297           do
298           echo "checking for $cc"
299           for i in $path
300           do
301             if test -f $i/$cc; then
302                ccYes=1
303                break
304             fi
305           done
306           
307           if [ "$ccYes" = "1" ];
308           then
309              echo "$cc :yes"
310           else
311              echo "$cc :no"
312              missing=1
313              break
314           fi
315           done
316 karl  1.1 
317           if [ "missing" = "1" ]; then
318              echo "$0: missing dependency $cc"
319              exit 1;
320           fi    
321           
322           ##==============================================================================
323           ##
324           ## Detect openssl.
325           ##
326           ##==============================================================================
327           enable_ssl=0
328           with_ssl=""
329           if [ "$tiny" != "1" ] ;then
330           sslcmd="openssl"
331           sslYes=0
332           echo "checking for $sslcmd"
333           for i in $path
334           do
335             if test -f $i/$sslcmd; then
336                sslYes=1
337 karl  1.1      withssl=$i
338                break
339             fi
340           done
341           if [ "$sslYes" = "1" ]; then
342              echo "ssl: Yes = $withssl/$sslcmd"
343              with_ssl=${withssl%/*}
344           else
345              echo "ssl: No"
346           fi
347           
348           if [ ! -z "$with_ssl" ]; then
349           
350             if [ ! -d "$with_ssl" ]; then
351               echo "$0: Error: No such directory: --with-ssl=$with_ssl"
352               exit 1;
353             fi
354           
355             if [ ! -f "$with_ssl/include/openssl/ssl.h" ]; then
356               echo "$0: missing dependency: \$with_ssl/include/openssl/ssl.h"
357               missing=1
358 karl  1.1   fi
359           
360             if [ ! -f "$with_ssl/$libbase/libssl.so" ]; then
361 karl  1.4     echo "$0: missing dependency: \$with_ssl/$libbase/libssl.so"
362 karl  1.1     missing=1
363             fi
364           
365             if [ "$missing" = "1" ]; then
366               echo "$0: where --with-ssl=$with_ssl"
367               unset with_ssl
368             else
369               enable_ssl=1
370             fi
371           
372           fi
373           fi
374           ##==============================================================================
375           ##
376           ## Detect openslp.
377           ## Note that if openslp is not found it should use pegasus slp.
378           ##
379           ##==============================================================================
380           enable_slp=0
381           with_openslp=""
382           enable_openslp=0
383 karl  1.1 if [ "$tiny" != "1" ] ;then
384           slpcmd="slptool"
385           slpYes=0
386           echo "checking for openslp"
387           for i in $path
388           do
389             if test -f $i/$slpcmd; then
390                slpYes=1
391                withslp=$i
392                break
393             fi
394           done
395           if [ "$slpYes" = "1" ]; then
396               echo "slp: Yes = $withslp/$slpcmd"
397               with_openslp=${withslp%/*}
398           else
399               echo "slp: No"
400           fi
401           
402           
403           
404 karl  1.1 if [ ! -z "$with_openslp" ]; then
405           
406             if [ ! -d "$with_openslp" ]; then
407               echo "$0: Error: No such directory: --with-openslp=$with_openslp"
408               exit 1;
409             fi
410           
411             if [ ! -f "$with_openslp/include/slp.h" ]; then
412               echo "$0: missing dependency: \$with_openslp/include/slp.h"
413               missing=1
414             fi
415           
416             if [ ! -f "$with_openslp/$libbase/libslp.so" ]; then
417               echo "$0: missing dependency: \$with_openslp/$libbase/libslp.so"
418               missing=1
419             fi
420           
421             if [ "$missing" = "1" ]; then
422               echo "$0: where --with-openslp=$with_openslp"
423               enable_slp=1
424             else
425 karl  1.1     enable_openslp=1  
426             fi
427           
428           fi
429           fi
430           
431           ##==============================================================================
432           ##
433           ## Detect sqlite.
434           ##
435           ##==============================================================================
436           enable_sql=0
437           
438           if [ "$tiny" != "1" ] ;then
439           sqlcmd="sqlite3"
440           sqlYes=0
441           echo "checking for sql"
442           for i in $path
443           do
444             if test -f $i/$sqlcmd; then
445                sqlYes=1
446 karl  1.1      withsql=$i
447                break
448             fi
449           done
450           if [ "$sqlYes" = "1" ]; then
451               echo "sql: Yes = $withsql/$sqlcmd"
452               with_sql=${withsql%/*}
453           else
454               echo "sql: No"
455           fi
456           
457           
458           
459           if [ ! -z "$with_sql" ]; then
460           
461             if [ ! -d "$with_sql" ]; then
462               echo "$0: Error: No such directory: $with_sql"
463               exit 1;
464             fi
465           
466             if [ ! -f "$with_sql/lib64/libsqlite3.so" ]; then
467 karl  1.1     echo "$0: missing dependency: \$with_sql/lib64/libsqlite3.so"
468               missing=1
469             fi
470             if [ ! -f "$with_sql/include/sqlite3.h" ]; then
471               echo "$0:missing dependency :\$with_sql/include/sqlite3.h"
472               missing=1
473             fi
474             if [ "$missing" = "1" ]; then
475               echo "$0: sql not installed properly at $with_sql"
476             else
477               enable_sql=1
478             fi
479           
480           fi
481           fi
482           
483           ##==============================================================================
484           ##
485           ## Detect net-snmp.
486           ##
487           ##==============================================================================
488 karl  1.1 
489           enable_snmp=0
490           if [ "$tiny" != "1" ]; then
491           snmpcmd="net-snmp-config"
492           snmpYes=0
493           echo "checking for net-snmp"
494           for i in $path
495           do
496             if test -f $i/$snmpcmd; then
497                snmpYes=1
498                withsnmp=$i
499                break
500             fi
501           done
502           if [ "$snmpYes" = "1" ]; then
503               echo "snmp: Yes = $withsnmp/$snmpcmd"
504               with_snmp=${withsnmp%/*}
505           else
506               echo "snmp: No"
507           fi
508           
509 karl  1.1 
510           
511           if [ ! -z "$with_snmp" ]; then
512           
513             if [ ! -d "$with_snmp" ]; then
514               echo "$0: Error: No such directory: $with_snmp"
515               exit 1;
516             fi
517           
518             if [ ! -f "$with_snmp/lib64/libnetsnmp.so" ]; then
519               echo "$0: missing dependency: "
520               missing=1
521             fi
522           
523             if [ "$missing" = "1" ]; then
524               echo "$0: snmp not installed properly at $with_snmp"
525             else
526               enable_snmp=1
527             fi
528           
529           fi
530 karl  1.1 fi
531           
532           ##=============================================================================
533           ##
534           ##Detect icu ( Currently supported till 3.6)
535           ##
536           ##=============================================================================
537           supporticu=0
538           if [ "$tiny" != "1" ] ;then
539           icucmd="icu-config"
540           gencmd="genrb"
541           icuYes=0
542           echo "checking for icu"
543           for i in $path
544           do
545             if test -f $i/$icucmd ;then
546                if test -f $i/$gencmd ; then
547                    icuYes=1
548                    withicu=$i
549                    break
550                fi
551 karl  1.1   fi
552           done
553           if [ "$icuYes" = "1" ]; then
554               echo "icu: Yes = $withicu/$icucmd"
555               with_icu=${withicu%/*}
556           else
557               echo "icu: No"
558           fi
559           
560 karl  1.2 if [ "$icuYes" = "1" ]; then
561 karl  1.1    icuversion=$(icu-config --version)
562           
563              echo $icuversion
564              IFS='.'
565              op=0
566              for i in $icuversion
567              do
568                 if [ "$op" = "0" ]; then
569                    icumajor=$i
570                 fi
571                 if [ "$op" = "1" ]; then
572                    icuminor=$i
573                 fi
574                 if [ "$op" -gt "1" ]; then
575                    break
576                 fi
577                 op=$((op+1))
578              done
579              IFS='@@@'
580              supporticu=0
581           
582 karl  1.1    if [ "$icumajor" -le "3" -a "$icuminor" -le "6" ]; then
583                 supporticu=1
584              fi
585           
586              if [ "$supporticu" = "1" ]; then
587                 
588                 if test -f $with_icu/$libbase/libicul18n.so; then
589                   echo " missing dependency "
590                   missing=1
591                   supporticu=0
592                 fi
593              fi
594           
595           fi
596           
597           fi
598           
599           ##=============================================================================
600           ##
601           ##Detect libz 
602           ##
603 karl  1.1 ##=============================================================================
604           libzpath=/usr
605           enable_libz=1
606           if [ ! -f "$libzpath/$libbase/libz.so" ]; then
607               echo " libz not found"
608               enable_libz=0
609           fi
610           if [ ! -f "$libzpath/include/zlib.h" ]; then
611               echo " libz not found"
612               enable_libz=0
613           fi
614           
615           if [ "$libbase" = "lib64" ]; then
616              enable_32bit=1
617           fi
618           
619           ##==============================================================================
620           ##
621           ## These options (if non-empty) must denote absolute directory names.
622           ##
623           ##==============================================================================
624 karl  1.1 
625           for i in \
626             prefix \
627             bindir \
628             sbindir \
629             libdir \
630             includedir \
631             datadir
632           do
633           
634             eval v=$`echo $i`
635           
636             case $v in
637               /* | "")
638                 ;;
639           
640               *)
641                 echo "$0: Error: Must be an absolute directory name: --$i=$v"
642                 exit 1;
643                 ;;
644             esac
645 karl  1.1 
646           done
647           if [ "$tiny" != "1" ] ;then
648           for i in \
649             with_ssl \
650             with_pam 
651           do
652           
653             eval v=$`echo $i`
654           
655             case $v in
656               /* | "")
657                 ;;
658           
659               *)
660                 echo "$0: Error: Must be an absolute directory name: --$i=$v"
661                 exit 1;
662                 ;;
663             esac
664           
665           done
666 karl  1.1 fi 
667                
668           ##==============================================================================
669           ##
670           ## Check whether the test user will be able to access pegasus home.
671           ##
672           ##==============================================================================
673           if [ "$test_option" = "-1" ] ; then
674           with_test_user=guest
675           with_test_user_pass=guest
676           uid=`id -u`
677           cwd=`/bin/pwd`
678           
679           if [ "$uid" = "0" -a "$disable_tests" != "1" ]; then
680           
681             if [ "$enable_pam" = "1" -o "$enable_pam_standalone" = "1" ]; then
682           
683               su $with_test_user -c "/bin/true"
684           
685               if [ "$?" != "0" ]; then
686                 echo "$0: The test user account ($with_test_user) does not exist on this system. Please create a test user with this name or designate an existing one with the --with-test-user option."
687 karl  1.1       exit 1
688               fi
689           
690               su $with_test_user -c "cd $cwd 2> /dev/null"
691           
692               if [ "$?" != "0" ]; then
693                 echo "$0: The test user account ($with_test_user) has insufficient privileges to access the pegasus root directory ($cwd), which will cause the user-context tests to fail. Please configure from a different directory."
694                 exit 1
695               fi
696             else
697                echo "Warning: Using --with-test-user without --enable_pam or --enable-pam-standalone"
698             fi
699           
700           
701           fi
702           fi
703           ##==============================================================================
704           ##
705           ## Detect pam
706           ##
707           ##==============================================================================
708 karl  1.1 enable_pam=0
709           if [ "$tiny" != "1" ] ;then
710           pamcmd="pam_console_apply"
711           pamYes=0
712           IFS=':'
713           echo "checking for pam"
714           for i in $path
715           do
716             if test -f $i/$pamcmd; then
717                pamYes=1
718                withpam=$i
719                break
720             fi
721           done
722           if [ "$pamYes" = "1" ]; then
723               echo "pam: Yes = $withpam/$pamcmd"
724               with_pam=${withpam%/*}
725 karl  1.3     if [ "$with_pam" = "" ]; then
726 karl  1.1        with_pam=/
727               fi
728           else
729               echo "pam: No"
730           fi
731           
732           
733           if [ ! -z "$with_pam" ]
734           then
735           
736             if [ ! -f "/usr/include/security/pam_appl.h" -a \
737                  ! -f "/usr/local/include/security/pam_appl.h" ]
738             then
739                 echo "$0: <security/pam_appl.h> is missing (required by --enable_pam)"
740                 exit 1
741             else
742                 enable_pam=1
743             fi
744           
745           fi
746           fi
747 karl  1.1 
748           
749           ##==============================================================================
750           ##
751           ## Create options.mak
752           ##
753           ##==============================================================================
754           
755           options=options.mak
756           rm -f $options
757           echo "# This file was generated by configure." >> $options
758           echo "# ./configure $*" >> $options
759           PEGASUS_HOME=$prefix
760           PEGASUS_ROOT=$prefix
761           PEGASUS_PLATFORM=$platform
762           echo "export ROOT=$prefix" >> $options
763           #echo "export PATH=$PATH:$cwd/$platform/bin" >> $options
764           #echo "export LD_LIBRARY_PATH=$cwd/$platform/lib:$libdir" >> $options
765           echo "export PEGASUS_PLATFORM=$platform" >> $options
766           echo "export PEGASUS_ROOT=$prefix" >> $options
767           echo "export PEGASUS_HOME=$prefix" >> $options
768 karl  1.1 
769           if [ "$tiny" != "1" ]; 
770           then
771           enable_debug=1
772           interop_name=root/PG_InterOp
773           echo "export PEGASUS_ENABLE_AUDIT_LOGGER=true" >> $options
774           echo "export PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT=true" >> $options
775           echo "export PEGASUS_ENABLE_EMAIL_HANDLER=true" >> $options
776           echo "export PEGASUS_ENABLE_INDICATION_COUNT=true" >> $options
777           echo "export PEGASUS_ENABLE_INTEROP_PROVIDER=true" >> $options
778           if [ "$dis_wsman" != "1" ]; then
779           echo "export PEGASUS_ENABLE_PROTOCOL_WSMAN=true" >> $options
780           fi
781           echo "export PEGASUS_ENABLE_SYSTEM_LOG_HANDLER=true" >> $options
782           echo "export PEGASUS_ENABLE_USERGROUP_AUTHORIZATION=true" >> $options
783           #echo "export PEGASUS_ENABLE_PRIVILEGE_SEPARATION=true" >>$options
784           fi
785           
786           
787           if [ "$disable_oop" = "1" ]
788           then
789 karl  1.1   echo "export PEGASUS_DEFAULT_ENABLE_OOP=false" >> $options
790             echo "export PEGASUS_DISABLE_PROV_USERCTXT=1" >> $options
791             echo "export PEGASUS_DISABLE_PRIVILEGED_TESTS=true" >> $options
792           fi
793           
794             echo "export PEGASUS_ENABLE_CQL=true" >> $options
795             echo "export PEGASUS_ENABLE_WQL=true" >> $options
796           
797           if [ "$disable_ipv6" = "1" ];
798           then
799             echo "export PEGASUS_ENABLE_IPV6=false" >> $options
800           else
801             echo "export PEGASUS_ENABLE_IPV6=true" >> $options
802           fi
803           
804           echo "export PEGASUS_INTEROP_NAMESPACE=$interop_name" >> $options
805           if [ "$disable_trace" = "1" ];
806           then
807             echo "export PEGASUS_REMOVE_TRACE=1" >> $options
808           fi
809           
810 karl  1.1 if [ "$disable_tests" = "1" ];
811           then
812             echo "export PEGASUS_SKIP_MOST_TEST_DIRS=true" >> $options
813           fi
814           if [ "$enable_perinst" = "1" ];
815           then 
816             echo "export PEGASUS_DISABLE_PERFINST=true" >> $options
817             echo "export PEGASUS_INDICATION_PERFINST=true" >> $options
818           fi
819           
820           if [ "$enable_debug" = 1 ]
821           then
822             echo "export PEGASUS_DEBUG=1" >> $options
823           fi
824           
825           if [ "$enable_mrr_generation" = 1 ]
826           then
827             echo "export PEGASUS_ENABLE_MRR_GENERATION=1" >> $options
828           fi
829           
830           if [ "$enable_mrr" = 1 ]
831 karl  1.1 then
832             echo "export PEGASUS_ENABLE_MRR=1" >> $options
833           fi
834           if [ "$enable_pam" = "1" ]; then
835             echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options
836 karl  1.4   echo "export PEGASUS_USE_PAM_STANDALONE_PROC=false" >> $options
837 karl  1.1    \cp -f $PEGASUS_ROOT/rpm/wbem /etc/pam.d
838              chmod 0644 /etc/pam.d/wbem
839           fi
840           
841           if [ "$enable_pam_standalone" = "1" ]; then
842             echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options
843             echo "export PEGASUS_USE_PAM_STANDALONE_PROC=true" >> $options
844             \cp -f $PEGASUS_ROOT/rpm/wbem /etc/pam.d
845             chmod 0644 /etc/pam.d/wbem
846           fi
847           
848           if [ "$enable_binary_repository" = "1" ]; then
849             echo "export PEGASUS_REPOSITORY_MODE=BIN" >> $options
850           fi
851           
852           if [ "$enable_libz" = "1" ]; then
853             echo "export PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1" >> $options
854           fi
855           
856           if [ "$enable_ssl" = "1" ]; then
857             echo "export PEGASUS_HAS_SSL=true" >> $options
858 karl  1.1   echo "export PEGASUS_ENABLE_SSL_CRL_VERIFICATION=true" >> $options
859           fi
860           
861           if [ ! -z "$with_ssl" ]; then
862             echo "export OPENSSL_HOME=$with_ssl" >> $options
863           fi
864           
865           if [ "$enable_slp" = "1" ]; then
866               echo "export PEGASUS_ENABLE_SLP=true" >> $options
867           fi
868           
869           if [ "$enable_sql" = "1" ]; then
870               echo "export PEGASUS_USE_SQLITE_REPOSITORY=true" >> $options
871               echo "export SQLITE_HOME=$with_sql">> $options
872           fi
873           if [ "$enable_snmp" = "1" ]; then
874               echo "export PEGASUS_ENABLE_NET_SNMPV3=true" >> $options
875               echo "export PEGASUS_USE_NET_SNMP=true" >> $options
876           fi
877           
878           if [ "$enable_openslp" = "1" ]; then
879 karl  1.1     echo "export PEGASUS_ENABLE_SLP=true" >> $options
880               echo "export PEGASUS_USE_EXTERNAL_SLP=openslp" >> $options
881           fi
882           
883           #if [ ! -z "$with_external_slp" ]; then
884           #    echo "export PEGASUS_ENABLE_SLP=true" >> $options
885           #    echo "export PEGASUS_USE_EXTERNAL_SLP=$with_external_slp" >> $options
886           #fi
887           
888           if [ ! -z "$with_external_slp_dir" ]; then
889             echo "export PEGASUS_EXTERNAL_SLP_HOME=$with_external_slp_dir" >> $options
890           fi
891           
892           if [ ! -z "$with_openslp" ]; then
893             echo "export PEGASUS_EXTERNAL_SLP_HOME=$with_openslp" >> $options
894           fi
895           
896           if [ "$disable_cmpi" != "1" ]; then
897             echo "export PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER=true" >> $options
898           fi
899           
900 karl  1.1 if [ ! -z "$flavor" ]; then
901             echo "export PEGASUS_FLAVOR=tog">>$options
902           fi
903           
904           if [ "$supporticu" = "1" ]; then
905             echo "export PEGASUS_HAS_MESSAGES=true">>$options
906             echo "export PEGASUS_HAS_ICU=true">>$options
907             echo "export PEGASUS_USE_DEFAULT_MESSAGES=true">>$options
908           # echo "export ICU_INSTALL=$with_icu">>$options
909           fi
910           
911           if [ "$enable_32bit" = "1" ]; then
912             #echo "export PEGASUS_INTERNAL_ENABLE_32BIT_PROVIDER_SUPPORT=true" >> $options
913             echo "export PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT=$platform" >> $options
914           fi
915           
916           if [ "$test_option" = "1" ]; then
917              echo "export PEGASUS_CCOVER=true" >> $options
918              echo "export PEGASUS_DISABLE_PRIVILEGED_TESTS=false" >> $options
919              echo "export PEGASUS_ENABLE_GCOV=true" >> $options
920              echo "export PEGASUS_ENABLE_SORTED_DIFF=true" >> $options
921 karl  1.1    echo "export PEGASUS_TEST_ENABLE_DEBUG_TRACE=true" >> $options
922              echo "export PEGASUS_TEST_ISGROUP_GROUP=root" >> $options
923              echo "export PEGASUS_TEST_ISGROUP_USER_FAILURE=test" >> $options
924              echo "export PEGASUS_TEST_ISGROUP_USER_SUCCESS=root" >> $options
925              echo "export PEGASUS_TEST_SDK=true" >> $options
926              echo "export PEGASUS_TEST_USER_DEFINED=false" >> $options
927              echo "#export PEGASUS_TEST_USER_ID=" >> $options
928              echo "#export PEGASUS_TEST_USER_PASS=" >> $options
929              echo "export PEGASUS_TEST_VALGRIND_LOG_DIR=." >> $options
930              echo "export PEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT=true" >> $options
931              echo "export PEGASUS_TMP=." >> $options
932              echo "export PLATFORM_CORE_PATTERN=true" >> $options
933           fi 
934              echo "export PATH=$bindir:$PATH" >> $options
935              echo "export LD_LIBRARY_PATH=$libdir:$LD_LIBRARY_PATH" >> $options
936           
937           IFS="@@@"
938           export PATH=$bindir:$PATH 
939           export LD_LIBRARY_PATH=$libdir:$LD_LIBRARY_PATH
940           export PEGASUS_HOME PEGASUS_ROOT PEGASUS_PLATFORM
941           
942 karl  1.1 echo "created $options"
943           
944           ## if the output file exists, make a backup
945           if [ -f $options ]; then
946               echo backup $options to $options.bak
947               cp -f $options $options.bak
948           fi
949           
950 karl  1.2 . ./$options
951 karl  1.1 ##==============================================================================
952           ##
953           ## Create GNUmakefile
954           ##
955           ##==============================================================================
956           
957           cat > GNUmakefile << END
958           include options.mak
959           
960           export PATH := \$(PATH):\$(PEGASUS_HOME)/bin
961           export LD_LIBRARY_PATH := \$(LD_LIBRARY_PATH):\$(PEGASUS_HOME)/bin
962           
963           include Makefile
964           
965           distclean:
966           	rm -f GNUmakefile
967           	rm -f options.mak
968           END
969           
970           echo "created GNUmakefile"
971           
972 karl  1.1 ##==============================================================================
973           ##
974           ## Print final message:
975           ##
976           ##==============================================================================
977           
978           echo "configured for $platform"
979           echo
980           fi
981           #set +x

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2